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).
source share