-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use a symbolic name of Microsoft.Management/managementGroups as scope of an MG module #1833
Comments
Some implementation info - here's where we do this for bicep/src/Bicep.Core/Emit/ScopeHelper.cs Lines 151 to 170 in 6e85607
|
I've encountered this problem too. I declare an existing MG as a resource and cannot use it as a managemenGroup scope to other modules and resources. |
Bicep version
Latest in
main
Describe the bug
We allow a resource of type
Microsoft.Resources/resourceGroup
to be used as a scope of an RG module. We should support using a resources of typeMicrosoft.Management/managementGroups
as scopes of MG modules.Currently, the error you get is the following:
Scope "resource" is not valid for this module. Permitted scopes: "managementGroup".
To Reproduce
main.bicep:
managementGroup.bicep:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: