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

Sachin Thapan 1 Reputation point
2021-02-03T03:45:54.94+00:00

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
    2021-02-03T13:08:35.547+00:00

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

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

    0 comments No comments