[FEATURE REQ] App role assignment
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m automating applications setup and role assignments.
Currently I can do most of it via az
, but there’s no .NET or the CLI alternative to PowerShell’s App Role Assignment.
Describe the solution you’d like
I’d like to be able to create app role assignments w/o introducing PowerShell into the mix, preferrably via IAuthorizationManagementClient
or similar interface.
Describe alternatives you’ve considered
az
CLI feature request for this already exists, but not addressed: https://github.com/MicrosoftDocs/azure-docs/issues/33494
PowerShell is not an option, given this is a small new part of a large infrastruture setup that’s already being managed from Linux w/o it.
I considered importing PowerShell’s AzureAD DLLs for this, but it looks too complicated for a single task.
Additional context N/A
Information Checklist
- Description Added
- Expected solution specified
Issue Analytics
- State:
- Created 4 years ago
- Reactions:53
- Comments:5 (1 by maintainers)
Top GitHub Comments
Similarly I would like to create service principal app role assignments. This is nearly identical to the user flow requested, please add this at the same time. New-AzureADServiceAppRoleAssignment
For completeness, you could also support groups as well, but this is not required for me yet. New-AzureADGroupAppRoleAssignment
Example powershell script for background:
az ad
CLI would indeed be good place for this functionality and since it has special relationship with AAD avoid the headache of setting up the correct permissions. This is SDK repo, so not really suitable foraz
cli discussions, but here’s the workaround you could use:az rest
to make calls to graph APIs. For example: