-
Notifications
You must be signed in to change notification settings - Fork 453
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
[Bug Report]: Management Group Deployment not working #1342
Comments
Investigated this morning and came to the same conclusion as Alexander. I believe it's an issue with the implicit dependency and the RBAC is trying to deploy before the management group has been created, therefore not being able to find it. If you use a management group that already exists, everything works nicely. Bug raised on the Azure / Bicep Repo - Azure/bicep#6832 |
Is this duplicate of #1320 ? |
Is this issue on the Bicep team? Should we put it as blocked? |
Yeah maybe we should comment out the RBAC bit for now until we get a response back from the Bicep team. @MrMCake are you happy with this approach? |
RBAC has been removed from the module implementation which now deploys fine. I'd suggest to close this bug and open a feature request issue to add the RBAC option back in the module once the Azure/bicep#6832 bug is fixed. |
@eriqua, agreed. |
The feature request to add RBAC back is already open. Refer to #1543. Closing. |
Describe the bug
The current module implementation does not work as the RBAC deployment assumes that the (to be created) management group already exists when you start the deployment. This already happens with the
Test-AzManagementGroupDeployment
command.The error is:
ManagementGroupNotFound - The management group 'testMG' cannot be found.
The
testMG
is the one that is to be deployed as per the parameter file.The code snipped that produces the error:
The
nested_rbac.bicep
implementation seems fine and matches 1:1 theMicrosoft.Authorization/roleAssignments/managementGroup
(working) example.To reproduce
Run a
Test-AzManagementGroupDeployment
Code snippet
Relevant log output
No response
The text was updated successfully, but these errors were encountered: