roleDefinitions() function should support both names and IDs
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 79
Description
**Is your feature request related to a problem? Please describe.**
It's great to finally see a `roleDefinitions()` function. However, most of the time when writing modules with support for role assignments, I import the `roleAssignmentType` from `br/public:avm/utl/types/avm-common-types:´.
Here, the type for roleDefinition is `roleDefinitionIdOrName`. Since the `roleDefinitions()` function currently only resolves role **names**, they cannot be used together.
**Describe the solution you'd like**
I would like the input parameter of the function to support all the common formats of writing a role definition. Name, id or guid.
Contributor guide
Research direction
Start by locating the roleDefinitions() function and compare its input with roleDefinitionIdOrName from br/public:avm/utl/types/avm-common-types:. Done means role definitions can be supplied as names, IDs, or GUIDs and work with role-assignment modules; verify the behavior against the existing roleDefinitions() coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100