agentleFS
ENFEX-makerENFEX-maker/azure-worker-skillset/skills/devops/azure-identity-rbac/SKILL.md

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.

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
  1. Distinctive:

    Do not print secrets. For Key Vault or app credentials, report presence/metadata only unless the user explicitly asks and policy allows.

    line 34
  2. Distinctive:

    Check deny assignments, Azure Policy, locks, and provider registration if relevant.

    line 51
  3. Distinctive:

    Ask before applying role assignments.

    line 53
  4. Distinctive:

    Verify access after propagation delay.

    line 54

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 json

Troubleshooting Pattern

  1. Capture exact failing principal, action, and scope.
  2. Confirm tenant/subscription.
  3. List existing role assignments at resource, resource group, subscription, and inherited scopes.
  4. Check deny assignments, Azure Policy, locks, and provider registration if relevant.
  5. Propose least-privilege role and smallest scope.
  6. Ask before applying role assignments.
  7. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.