I want to scale the instance count of a cloud service worker role up and down programmatically via the .NET Azure SDK. How do I do this? All I have found up to this point is doing this via PowerShell.
Asked
Active
Viewed 650 times
4
-
Did you ever find a Good resource for accomplishing this? We have a similar use case – lucuma Apr 21 '17 at 12:31
-
Unfortunately no. – kspearrin Apr 21 '17 at 12:32
-
While I'm waiting for a call back check this out https://blogs.msdn.microsoft.com/arunrakwal/2012/05/10/azure-scale-application-increase-or-decrease-the-number-of-role-instance/ and this although I don't see the queue stuff in the auto scale https://github.com/Azure/azure-content-nlnl/blob/master/articles/cloud-services/cloud-services-how-to-scale.md – lucuma Apr 21 '17 at 13:09
-
I chatted with MS for a couple hours about this and the possible solutions. The best approach for this today is to use the Azure Batch Service which allows you to create a pool with 0 nodes in it and you can programatically change the TargetDedicated count to whatever you want. The only difference is you need to create an app that can run as a task or as a pool app. I created a working prototype, it runs pretty well on Batch. – lucuma Apr 25 '17 at 23:41
1 Answers
-1
This seems to be a step by step on how to auto-scale azure applications: http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-autoscaling-application-block/

Bogdan
- 484
- 2
- 7
-
I don't want autoscaling. I was hoping to get an answer to the question. Also, the link is broken. – Jan 19 '18 at 21:45