我正在尝试为所有订阅中的所有虚拟机获取发布者、报价、计划和 ID。
任何人都可以为相同或相同的任何其他方式建议任何自定义 powershell 脚本。
谢谢
答案 0 :(得分:0)
az vm list --query '[].{id: id, name: name, plan: plan, publisher: storageProfile.imageReference.publisher, offer: storageProfile.imageReference.offer}' -o json