We are trying to implement the CAF, using the CAF Terraform module provided by Microsoft. My issue is, what kind of RBAC roles, should developers of the code have. As it is now, I have a managed identity, and when I run the terraform code, there are Management Groups that get created. I can see them in the terraform state. But I can not see them in the portal. When I try to access them trough az, to verify:
az account management-group list
I get an access denied error:
(AuthorizationFailed) The client 'xapr@xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management' or the scope is invalid. If access was recently granted, please refresh your credentials.
I am already subscription owner, and I have asked our Global Administrator, but they also didnt know. We tried adding the "Management Group Contributor" role to my identity fore each subscription. Same error.
So the question is, what role / group assignment should devops engineers have, to verify that the correct ressources are created? It feels scary to run code, that you cant see the results of!