How can I create an Azure policy that validates Resource Group Names

前端 未结 2 1039
轻奢々
轻奢々 2021-01-20 04:35

I am trying to create an Azure policy which I can assign at the subscription level, and control the naming of the resource groups in the subscription.

Policies need

2条回答
  •  自闭症患者
    2021-01-20 04:51

    The resource groups are Microsoft.Resources/subscriptions/resourcegroups type. You can kinda infer that from the resource provider operations:

    Get-AzureRmProviderOperation 'Microsoft.Resources/*'
    

提交回复
热议问题