使用发布者详细信息获取 Vm 详细信息

时间:2021-07-19 15:43:38

标签: azure azure-virtual-machine

我正在尝试为所有订阅中的所有虚拟机获取发布者、报价、计划和 ID。

任何人都可以为相同或相同的任何其他方式建议任何自定义 powershell 脚本。

谢谢

1 个答案:

答案 0 :(得分:0)

az vm list --query '[].{id: id, name: name, plan: plan, publisher: storageProfile.imageReference.publisher, offer: storageProfile.imageReference.offer}' -o json