Scope issue with "Microsoft.Authorization/policyDefinitions" #12583
sergey-netdev
started this conversation in
Authoring Help
Replies: 2 comments
-
You need to add the following line: targetScope = 'managementGroup' By default the |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is so misleading. Why do I have to duplicate the scope if I already specified it with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bicep version
Bicep CLI version 0.23.1 (b02de2d)
Describe the bug
I'm trying to deploy a custom policy definition to a specific management group using Azure CLI and getting this:
To Reproduce
Run
az deployment mg create --name ${DeploymentName} --location $LOCATION --template-file $TEMPLATEFILE --management-group-id $MGEnvironmentId
withTEMPLATEFILE
like this:Additional context
If I add
scope
like this:I get
Beta Was this translation helpful? Give feedback.
All reactions