Pergunta

I want to shut down a specified cloud service role instance.

Microsoft provides API VirtualMachineOperations.beginShutdown(serviceName, deploymentName, virtualMachineName, parameters, callback).

I know the serviceName and deploymentName, and the virtualMachineName is specified in ServiceConfiguration.Cloud.cscfg vmName attribute(which is hostName property of roleInstance).

But it reports 'Role instance name is not valid.'.

Any suggestions?

Thanks a lot

Foi útil?

Solução

That API manages IaaS Virtual Machines, but it sounds like you are interested in a PaaS instance. To delete a specific PaaS instance (ie. WebRole1_IN_2) you can use Delete Role Instances API - http://msdn.microsoft.com/en-us/library/azure/dn469418.aspx.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top