View Fault and Update Domains of virtual machine i

2019-03-01 05:34发布

Is there any way i can get the update domain and fault domain of the particular vm through python script.

I don't want to use powershell commands.

<< In Power Shell we can do this >>

http://windowsitpro.com/azure/view-fault-and-update-domains-azure-resource-manager

<< /Power Shell >>

I am looking for azure python cli. which can do this task.

1条回答
手持菜刀,她持情操
2楼-- · 2019-03-01 05:59

Maybe you could use the following command

az vm show -g yourgroup -n vmname --expand instanceView

You could get your VM's platformFaultDomain and platformUpdateDomain

enter image description here

查看更多
登录 后发表回答