-
Notifications
You must be signed in to change notification settings - Fork 394
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
[AVM Question/Feedback]: RBAC Interface #4282
Comments
The formatted Role Assign does a Else where is will do a resource ID look up but this does not accept a "Name"
|
Good day @Grant-Rc, Now, when using the module you have a few options how you can specify the role assignments: bicep-registry-modules/avm/res/resources/resource-group/tests/e2e/max/main.test.bicep Lines 56 to 77 in ff8c44e
In words:
Processing this logic happens in the part you posted above bicep-registry-modules/avm/res/resources/resource-group/modules/nested_roleAssignments.bicep Lines 38 to 47 in ff8c44e
All that being said - there's a catch. You will only be able to use the names of roles that have been implemented in the module - and you'll have a hard time knowing which roles are supported without looking at the code. In case of the resource group module these roles would be bicep-registry-modules/avm/res/resources/resource-group/modules/nested_roleAssignments.bicep Lines 4 to 36 in ff8c44e
I guess we can both agree that this is not a great experience. We unfortunately cannot use an In general, I hope the above provided some context on how to use the inferface for most modules and why it is designed in the way it is. The good news is that the ARM PG is working on a feature that would make it possible to fetch role definition ids on the fly. I don't know 'when' this feature will come, but they did call it out in one of their recent community calls. Once it does, we can massively simplify our logic in the modules as most of what I described above is really nothing else than a 'patch' for a more fundamental language restriction. |
Hello @AlexanderSehr Thank you for the response and looking forward to the role definition id fetch. Ill keep an eye on the updates, i was able to just the ID of the role I wanted with no issues hence just a question. Thank you |
Check for previous/existing GitHub issues
Description
Hey
I'm confused as to why avm/res/resources/resource-group/modules/nested_roleAssignments.bicep only contains limited built in role names but there is no mention as to why in the notes. It only says you can provide the display name
Then nested_roleAssignments.bicep does a lookup
If the display name is not listed it throws you the error
The text was updated successfully, but these errors were encountered: