azure-identity-msi

azure-identity-msi is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 19 tokens per session (1,086 once invoked), scanned A, original, MIT.

A guide to Azure managed identities, which let cloud resources access other services without storing passwords or keys. It explains how these identities relate to Entra ID service principals and role assignments.

In plain words
What is it for?
Use it to configure role-based access control for VMs, Functions, Container Apps, and other Azure resources, and to troubleshoot identity permissions.
Why use it?
It clears up confusing identity and identifier names that often lead to incorrect access permissions or failed Azure deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure role-based access control for VMs, Functions, Container Apps, and other Azure resources, and to troubleshoot identity permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/azure-identity-msi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabioc-aloha/Alex_Skill_Mall --skill azure-identity-msi
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-identity-msi

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-identity-msi

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-identity-msi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,086 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01086
Opus 5.5 $0.00008 $0.00434
Sonnet 5.5 $0.00004 $0.00217
Haiku 4.5 $0.00002 $0.00109

Measured 2mo ago against content hash 13a756c5f739, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

azure-identity-msi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cloud-infrastructure/azure-identity-msi/skills/azure-identity-msi/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Managed Identity (MSI) Concepts

Category: Azure Time Saved: 1-2 hours debugging identity and RBAC Battle-tested: Yes — multiple Azure deployments


The Problem

You're configuring RBAC for an Azure resource's managed identity. You see principalId in one place, servicePrincipal in another, and objectId elsewhere. Documentation uses these terms interchangeably and you're not sure if they're the same thing.

Why It's Confusing

A Managed Identity is a Service Principal — they're the same object viewed from different angles:

  • Managed Identity: The Azure resource perspective ("my VM has an identity")
  • Service Principal: The Entra ID perspective ("there's an app registration")
  • Principal ID / Object ID: The unique identifier (same value, different names)

The Rule

A Managed Identity IS a Service Principal in Entra ID. The principalId from the resource matches the Service Principal's Object ID in role assignments.

Identity Flow

Azure Resource (VM, Function, Container App)
        │
        ▼ creates
Managed Identity
        │
        ▼ which IS
Service Principal in Entra ID
        │
        ▼ gets assigned
RBAC Role on Target Resource

Verification Pattern

When debugging RBAC issues, verify the chain:

Step 1: Get principalId from Source Resource

# For a Container App
az containerapp show \
  --name myapp \
  --resource-group myrg \
  --query identity.principalId

# For a Function App
az functionapp show \
  --name myfunc \
  --resource-group myrg \
  --query identity.principalId

# For a VM
az vm show \
  --name myvm \
  --resource-group myrg \
  --query identity.principalId

Step 2: Verify Service Principal Exists

# The principalId should match an SP's objectId
az ad sp show --id <principalId> --query objectId

Step 3: Check Role Assignments on Target

# List role assignments on the target resource
az role assignment list \
  --scope /subscriptions/{sub}/resourceGroups/{rg}/providers/{provider}/{resource} \
  --query "[].{principal:principalId,role:roleDefinitionName}"

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 169 lines · 19 tokens per session scan A 13a756c5f739

Subscribe to this mod's changes

azure-identity-msi is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (6 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 1,086 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

azure-identity-msi compared with skills from other repositories

azure-identity-msi next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
azure-identity-msifabioc-aloha/Alex_Skill_MallSkill6yesterdayMITA19Claude Code, Codex
deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A10Claude Code, Codex
chaos-experimentrjmurillo/ai-agentsSkill50todayApache-2.0A42Claude Code
apex-azure-bicep-patternsjonathan-vella/apex-acceleratorSkill51yesterdayMITA100Claude Code
apex-azure-governance-discoveryjonathan-vella/apex-acceleratorSkill51yesterdayMITA89Claude Code
apex-azure-reliabilityjonathan-vella/apex-acceleratorSkill51yesterdayMITA96Claude Code
apex-azure-defaultsjonathan-vella/apex-acceleratorSkill51yesterdayMITA89Claude Code