azure-identity-rbac
Skill0 starsChanged 5 months agoMITView on GitHub
Use when working with Azure Entra ID, RBAC, managed identities, app registrations, service principals, role assignments, or identity-related access troubleshooting.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- azure-ai-openai-mlSkill
- azure-aksSkill
- azure-app-service-functionsSkill
- azure-computeSkill
- azure-cost-finopsSkill
- azure-databasesSkill
- azure-devops-github-actionsSkill
- azure-iac-bicep-terraformSkill
- azure-monitoring-observabilitySkill
- azure-networkingSkill
- azure-security-keyvault-defenderSkill
- azure-storageSkill
- azure-workerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Do not print secrets. For Key Vault or app credentials, report presence/metadata only unless the user explicitly asks and policy allows.
- Distinctive: line 51
Check deny assignments, Azure Policy, locks, and provider registration if relevant.
- Distinctive: line 53
Ask before applying role assignments.
- Distinctive: line 54
Verify access after propagation delay.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Identity and RBAC
Overview
Covers Azure identity and authorization workflows: Entra ID, service principals, app registrations, managed identities, role definitions, and role assignments.
When to Use
Use for:
AuthorizationFailed,LinkedAuthorizationFailed, or permission denied errors- managed identity setup/troubleshooting
- app registrations and service principals
- RBAC role assignment planning/review
- least-privilege access design
- OIDC/federated identity for CI/CD
Safety Rules
RBAC and identity changes are high-risk. Never assign Owner/User Access Administrator, create credentials, rotate secrets, delete service principals, or change federated credentials without explicit approval.
Do not print secrets. For Key Vault or app credentials, report presence/metadata only unless the user explicitly asks and policy allows.
Discovery Commands
az account show --query '{tenantId:tenantId, subscriptionId:id, name:name, user:user.name}' -o json
az role assignment list --scope <scope> -o table
az role definition list --name '<role name>' -o json
az ad sp show --id <app-or-sp-id> -o json
az identity show -g <resource-group> -n <identity-name> -o jsonTroubleshooting Pattern
- Capture exact failing principal, action, and scope.
- Confirm tenant/subscription.
- List existing role assignments at resource, resource group, subscription, and inherited scopes.
- Check deny assignments, Azure Policy, locks, and provider registration if relevant.
- Propose least-privilege role and smallest scope.
- Ask before applying role assignments.
- Verify access after propagation delay.
Professional Runbooks
Load references/runbooks.md for production-oriented scenario runbooks. Each runbook includes preflight commands, diagnosis path, safe action gate, verification, and documentation lookup query. For risky operations, use the master azure-worker safety baseline before executing changes.
Common Pitfalls
- Assigning at subscription scope when resource-group scope is enough.
- Confusing app registration object ID, service principal object ID, client ID, and principal ID.
- Forgetting RBAC propagation delay.
- Missing secondary permissions such as network join/action for private endpoint scenarios.
- Using long-lived client secrets where OIDC/federated credentials would be safer.
Verification Checklist
- Principal ID and type confirmed.
- Target scope confirmed.
- Least-privilege role selected.
- Existing assignments checked.
- Change approved before execution.
- Access verified after propagation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

