Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I have create App Registration than I given access to various resources on azure to this service principal,
When running
az role assignment list --assignee "{clientId}"
it returns me empty roles assigned to this app registration and it doesnt authorize access to the service
can you help ?
I think, the Reader role is missing for reading the list
Assign a Reader
role to application at the scope of Subscription Level using the following command
az role assignment create --assignee <APP_ID> --role "Reader" --scope /subscriptions/<SUBSCRIPTION_ID>
After that, check if the issues is resolved
az role assignment list --assignee <Application-id or Object-Id of application>
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--