Scale Windows Azure Roles Programmatically

I am looking for some code that will scale the role in a given number of instances, given the role I want to scale. I am looking for someone to implement this method.

Private Shared Sub DoScaleOperation(RoleID As String, InstanceCount As Integer) 'TODO: 'Check if the current number of instances in the role RoleID matches InstanctCount 'and if the numbers don't match then scale down or scale up as appropriate. End Sub 

This method should work for both the dev environment and the cloud environment. Does anyone know how to do this?

In addition, I want to know what the names of the instance of the roles will look like and what names will be deleted during scaling. I hope the instance names will be similar to RoleID_ (0 to InstanceCount - 1).

+4
source share
2 answers

There is an API that you want to call to programmatically change the instance account in Azure: http://msdn.microsoft.com/en-us/library/windowsazure/ee460809.aspx This API does not work in the local environment. You will need to provide a certificate to manage your call. You can also use Azure cmdlets to change the number of instances.

+7
source

I assume you looked at WASABi, a block of applications for startup ?

What were your findings for the P&P product in your scenario?

+2
source

Source: https://habr.com/ru/post/1388225/


All Articles