AzOps - Deploy custom Policy to inherit tags to resource groups and resources

Sachin Thapan 1 Reputation point

We are trying to use Enterprise Scale AzOps to deploy custom policy to inherit tags from Subscription to Resource Groups and resources.

We have used the build-in policy "b27a0cbd-a167-4dfa-ae64-4337be671140" and changed the mode to "All" instead of "Indexed".

We are getting below error while creating the custom policy definition using AzOps.63219-policydef-inherittag-tenantparameters.txt63320-policydef-inherittag-tenant.txt

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed.
"details":[{"code":"InvalidTemplate","message":"Unable to process template language expressions for resource '/providers/Microsoft.Management/managementGroups/mg-interikeapreprod/providers/Microsoft.Authorization/policyDefinitions/InheritTag-Tenant' at line '25' and column '9'. 'The deployment metadata 'SUBSCRIPTION' is not valid.'"}]}

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,406 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.2K Reputation points MVP

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments