Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定 Azure 订阅 ID 和资源组名称,我如何获取构成该组中资源的所有提供者的列表?例如,如果 RG 包含网站和虚拟机,我会得到["Microsoft.Website", "Microsoft.Compute"].
["Microsoft.Website", "Microsoft.Compute"]
显然,这样做的唯一方法是使用List By Resource Group API,然后手动解析资源 ID。