question

TylerMorris-3204 avatar image
0 Votes"
TylerMorris-3204 asked learn2skills commented

How to set Location on resource group lock

My company currently has a policy in place that requires all resources to be deployed in South Central US or North Central US. I'm trying to add a 'Microsoft.Authorization/locks@2016-09-01' resource (via BICEP). I cannot find any documentation that states there is a location property to a resource group lock, or how to set it. The custom policy is failing due to location not being in one of those regions.

Is there anyway to set the resource group locks region/location? Are they a resource with no 'location'?

azure-policy
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

To follow-up, Please let us know if you have further query on this.
Please don’t forget to Accept the answer

0 Votes 0 ·

1 Answer

learn2skills avatar image
0 Votes"
learn2skills answered

@TylerMorris-3204

Try using with Tag names
Parameter block of an Azure Policy, defining Tag Name and Tag Value

Azure lock resources and Use tags to organize your Azure resources

Please don’t forget to Accept the answer and up-vote wherever the information provided helps you, this can be beneficial to other community members.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.