After authenticating as the service principal, enumerate its assigned Azure RBAC role. Which role does it have?
A. Reader B. Contributor C. Storage Account Contributor D. Owner
Detailed Solution:
Resolve the service principal object ID:
az ad sp show --id c5fba7db-5e61-45bc-8944-3cd457bb19c2 --query id --output tsv
Then list role assignments:
SP_OBJECT_ID=$(az ad sp show --id c5fba7db-5e61-45bc-8944-3cd457bb19c2 --query id --output tsv) az role assignment list --assignee '$SP_OBJECT_ID' --all --output table
Expected output:
Principal Role Scope ------------------------------------ ----------- ---------------------------------------- <sp-object-id> Contributor /subscriptions/5d8e44ac-...
Correct answer:
Glory
1 day agoRuby
6 days agoTrina
11 days agoDallas
17 days agoShenika
22 days agoErasmo
27 days agoNovella
1 month agoNohemi
1 month agoYoko
1 month ago