How to programatically set the instance count for an Azure compute service

Viewed 2898

I read here that it is possible to programmatically set the instance count of an Azure compute service role using the Rest API method Change Deployment Configuration.

However the docs for that method don't mention role instances, just some cryptic extension properties. Does anyone know how this is done and can perhaps provide some pointers or a code snippet?

It's not the AutoScaling that I'm interested in, but being able to set the exact number of instances in response to custom events.

2 Answers
Related