简体   繁体   中英

Azure Resource Manager Deployment Name

I want to start an Azure VM attached to a resource group programmatically.

However, the ComputeManagementClient.VirtualMachines.Restart requires a "deploymentName" Parameter, I cannot find in the new portal. Does anybody have a clue where the deploymentName can be found?

As I know, we have two types of libraries to management our Azure VM, I have install these two libraries in my console application like following screenshoot: 在此处输入图片说明

where the deploymentName can be found?

在此处输入图片说明 In the second library (Microsoft. WindowsAzure .Management.Compute), we can control Azure VM(classic). And the deployment name is the cloud service deployment name. We can find it in Azure portal. Cloud service (classic) -> the specific Cloud service (the same name with your Azure VM) -> settings -> deployment name

If you create a VM under a resource group, please use the first Library (Microsoft. Azure .Management.Computer). In this library, we only need to provide the resource group name and Azure VM name, see detailed here:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM