Skip to content

Azure Policy on ManagementGroups #5816

Answered by azMantas
pattisanta asked this question in Q&A
Discussion options

You must be logged in to vote

I believe that the error is hidden in policyDefinitionId under policyAssignment resource. You already have a variable with policy definitionid called policyDefinition

resource policyAssignment 'Microsoft.Authorization/policyAssignments@2020-03-01' = {
  name: policyAssignmentName
  properties: {
    scope: mgScope
    policyDefinitionId: policyDefinition
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pattisanta
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants