View Fault and Update Domains of virtual machine in Azure through Python Script

我只是一个虾纸丫 提交于 2019-12-02 14:03:20

问题


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:


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



来源:https://stackoverflow.com/questions/41606832/view-fault-and-update-domains-of-virtual-machine-in-azure-through-python-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!