質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top