How to set Location on resource group lock

Tyler Morris 1 Reputation point
2021-01-15T13:13:36.833+00:00

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
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
883 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,051 Reputation points MVP
    2021-01-16T01:37:54.44+00:00

    @Tyler Morris

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.