Get-AzureRmResourceProvider -ListAvailable | Select-Object ProviderNamespace, RegistrationState
上面的PS查询可以获取所有资源提供者和注册状态。
现在,当我有添加了一些资源的资源组
是否可以编写PS / Cloud Shell查询脚本来获取仅用于特定资源组中资源的资源提供者?
答案 0 :(得分:1)
just do a Get-AzResource
and find all the resource types in that resource group, something like:
Get-AzResource -ResourceGroupName xxx | Select-Object ResourceType
答案 1 :(得分:1)