entra-agent-id
Skill1.6k starsChanged 18 days agoMITView on GitHub
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmi_path, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmi_path token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
- Installs packages
6 other projects use a version of this, 4 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- microsoft/GitHub-Copilot-for-Azureedited, first seen Oct 13, 2026
- microsoft/skillsword for word, first seen Oct 13, 2026
- ChatisTech/skillsedited, first seen Oct 11, 2026
- microsoft/agent-skillsword for word, first seen Oct 8, 2026
- jorgeasaurus/agent-skillsedited, first seen May 11, 2026
- fabioc-aloha/alex-cognitive-architectureedited, first seen Apr 26, 2026
Who's talking about microsoft/azure-skills
- microsoft/apm“Fold marketplace authoring config into apm.yml as the single APM surface”GitHub · Apr 29, 2026 · 2 reactions
- salaboy/skills-oci“Support for Skill Collections”GitHub · Jul 3, 2026 · 1 reactions
- Azure/azure-dev“Add `azd tool install/upgrade azure-skills` with per-host selection”GitHub · Jun 18, 2026 · 1 reactions
- microsoft/apm“feat(pack): unify 'apm pack' to produce bundle and marketplace.json (closes #722)”GitHub · Apr 29, 2026 · 1 reactions
- microsoft/GitHub-Copilot-for-Azure“Update CHANGELOG.md when syncing plugin content”GitHub · Apr 16, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Apr 29, 2026Fold marketplace authoring config into apm.yml as the single APM surface — microsoft/apm2 reactions
- Jul 3, 2026Support for Skill Collections — salaboy/skills-oci1 reaction
- Jun 18, 2026Add `azd tool install/upgrade azure-skills` with per-host selection — Azure/azure-dev1 reaction · 1 comment
- Apr 29, 2026feat(pack): unify 'apm pack' to produce bundle and marketplace.json (closes #722) — microsoft/apm1 reaction · 1 comment
- Apr 16, 2026Update CHANGELOG.md when syncing plugin content — microsoft/GitHub-Copilot-for-Azure1 reaction · 2 comments
45 more on GitHub
- Nov 7, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.114 → 1.2.115 — sudosubin/agents.nix0 reactions
- Nov 6, 2026agent-skills.github.microsoft.azure-skills: 1.2.114 → 1.2.115 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.114 → 1.2.115 — sudosubin/agents.nix0 reactions
- Nov 6, 2026agent-plugins.github.microsoft.azure-skills: 1.2.114 → 1.2.115 — sudosubin/agents.nix0 reactions
- Nov 6, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.114 → 1.2.115 — sudosubin/agents.nix0 reactions
- Nov 6, 2026agent-skills.github.microsoft.azure-skills: 1.2.113 → 1.2.114 — sudosubin/agents.nix0 reactions
- Nov 5, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.113 → 1.2.114 — sudosubin/agents.nix0 reactions
- Nov 5, 2026agent-plugins.github.microsoft.azure-skills: 1.2.113 → 1.2.114 — sudosubin/agents.nix0 reactions
- Nov 5, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.113 → 1.2.114 — sudosubin/agents.nix0 reactions
- Nov 5, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.113 → 1.2.114 — sudosubin/agents.nix0 reactions
- Nov 5, 2026agent-plugins.github.microsoft.azure-skills: init at 1.2.113 — sudosubin/agents.nix0 reactions
- Nov 4, 2026agent-skills.github.microsoft.azure-skills: 1.2.111 → 1.2.113 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.111 → 1.2.113 — sudosubin/agents.nix0 reactions
- Nov 4, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.111 → 1.2.113 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.111 → 1.2.113 — sudosubin/agents.nix0 reactions
- Nov 4, 2026agent-skills.github.microsoft.azure-skills: 1.2.110 → 1.2.111 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.110 → 1.2.111 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.110 → 1.2.111 — sudosubin/agents.nix0 reactions
- Nov 3, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.110 → 1.2.111 — sudosubin/agents.nix0 reactions
- Nov 2, 2026agent-skills.github.microsoft.azure-skills: 1.2.109 → 1.2.110 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.109 → 1.2.110 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.109 → 1.2.110 — sudosubin/agents.nix0 reactions
- Nov 2, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.109 → 1.2.110 — sudosubin/agents.nix0 reactions
- Nov 2, 2026chore: bump external skill pins — jthiruveedula/agentkit0 reactions
- Oct 30, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.108 → 1.2.109 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.108 → 1.2.109 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.microsoft.azure-skills: 1.2.108 → 1.2.109 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.108 → 1.2.109 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.106 → 1.2.108 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-marketplaces.github.microsoft.azure-skills: 1.2.106 → 1.2.108 — sudosubin/agents.nix0 reactions
- Oct 29, 2026agent-skills.github.microsoft.azure-skills: 1.2.106 → 1.2.108 — sudosubin/agents.nix0 reactions
- Oct 29, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.106 → 1.2.108 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-skills.github.microsoft.azure-skills: 1.2.103 → 1.2.106 — sudosubin/agents.nix0 reactions
- Oct 28, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.103 → 1.2.106 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.103 → 1.2.106 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.microsoft.azure-skills: init at 1.2.106 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.microsoft.azure-skills: 1.2.100 → 1.2.103 — sudosubin/agents.nix0 reactions
- Oct 27, 2026claude-code-plugins.github.microsoft.azure-skills: 1.2.100 → 1.2.103 — sudosubin/agents.nix0 reactions
- Oct 27, 2026copilot-plugins.github.microsoft.azure-skills: 1.2.100 → 1.2.103 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.microsoft.azure-skills: 1.2.99 → 1.2.100 — sudosubin/agents.nix0 reactions
- Oct 23, 2026agent-skills.github.microsoft.azure-skills: 1.2.98 → 1.2.99 — sudosubin/agents.nix0 reactions
- Oct 22, 2026agent-skills.github.microsoft.azure-skills: 1.2.97 → 1.2.98 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.microsoft.azure-skills: 1.2.96 → 1.2.97 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.microsoft.azure-skills: 1.2.95 → 1.2.96 — sudosubin/agents.nix0 reactions
- Oct 20, 2026[New Skill]: azure-mysql — microsoft/GitHub-Copilot-for-Azure0 reactions · 1 comment
Other versions6 projects use a version of this.
Word for word · 2
- microsoft/agent-skills★ 3.2k100% same
- microsoft/skills★ 3.2k100% same
Edited · 4
- microsoft/GitHub-Copilot-for-Azure★ 262100% same
- ChatisTech/skills★ 1734% same
- jorgeasaurus/agent-skills★ 1499% same
- fabioc-aloha/alex-cognitive-architecture★ 033% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository87 other files it gives its agents.
- aks-cost-optimizationSkill
- aks-gpu-inferenceSkill
- aks-known-issuesSkill
- aks-network-captureSkill
- aks-troubleshootingSkill
- azure-search-navSkill
- azure-advisor-actionabilitySkill
- azure-advisorSkill
- cost-analysisSkill
- cost-estimationSkill
- cost-governanceSkill
- cost-optimizationSkill
- azure-kusto-graphSkill
- azure-kusto-irql-graphSkill
- azure-kusto-irqlSkill
- azure-local-multi-rackSkill
- azure-localSkill
- airunway-aks-setupSkill
- appinsights-instrumentationSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-app-onboard-prereqSkill
- azure-app-onboardSkill
- azure-cloud-migrateSkill
- azure-complianceSkill
- azure-computeSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-enterprise-infra-plannerSkill
- azure-kubernetes-app-deploySkill
- azure-kubernetes-automatic-readinessSkill
- azure-kubernetesSkill
- azure-kustoSkill
- azure-messagingSkill
- azure-prepareSkill
- azure-quotasSkill
- azure-reliabilitySkill
- azure-resource-lookupSkill
- azure-resource-visualizerSkill
- azure-storageSkill
- azure-upgradeSkill
- azure-validateSkill
- discover-azure-skillsSkill
- entra-app-registrationSkill
- finetuningSkill
- capacitySkill
- customizeSkill
- presetSkill
- deploy-modelSkill
- microsoft-foundrySkill
- python-appservice-deploySkill
- foundry-iqSkill
- airunway-aks-setupSkill
- appinsights-instrumentationSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-app-onboard-prereqSkill
- azure-app-onboardSkill
- azure-cloud-migrateSkill
- azure-complianceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create and manage OAuth 2.0-capable identities for AI agents using Microsoft Graph.
- Very specific: line 47
Use the mcp_azure_mcp_documentation tool to search Microsoft Learn for current Agent ID documentation:
- Distinctive: line 51
Verify request bodies and endpoints against the installed SDK version — Graph API shapes evolve.
- Very specific: line 130
Use the typed endpoint. Sponsors must be Users at Blueprint creation.
- Distinctive: line 307
After admin consent, tokens may not include new claims for 30–120 seconds — retry with exponential backoff.
- Very specific: line 316
Set
identifierUris: ["api://{appId}"]on the Blueprint: before OAuth2 scope resolution.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Microsoft Entra Agent ID
Create and manage OAuth 2.0-capable identities for AI agents using Microsoft Graph. Every agent instance gets a distinct identity, audit trail, and independently-scoped permission grants.
Quick Reference
| Property | Value |
| Service | Microsoft Entra Agent ID |
| API | Microsoft Graph (https://graph.microsoft.com/v1.0) |
| Required role | Agent Identity Developer, Agent Identity Administrator, or Application Administrator |
| Object model | Blueprint (application) → BlueprintPrincipal (SP) → Agent Identity (SP) |
| Runtime exchange | Two-step fmi_path exchange (autonomous and OBO) |
| .NET helper | Microsoft.Identity.Web.AgentIdentities |
| Polyglot helper | Microsoft Entra SDK for AgentID (sidecar container) |
When to Use This Skill
- Provisioning a new Agent Identity Blueprint and BlueprintPrincipal
- Creating per-instance Agent Identities under a Blueprint
- Configuring credentials (FIC, Managed Identity, or client secret) on the Blueprint
- Implementing the two-step
fmi_pathruntime token exchange (autonomous or OBO) - Cross-tenant agent token flows
- Deploying the Microsoft Entra SDK for AgentID sidecar for polyglot agents (Python, Node, Go, Java)
- Granting per-Agent-Identity application (
appRoleAssignments) or delegated (oauth2PermissionGrants) permissions - Diagnosing Agent ID errors such as
AADSTS82001,AADSTS700211, orPropertyNotCompatibleWithAgentIdentity
MCP Tools
| Tool | Use |
mcp_azure_mcp_documentation | Search Microsoft Learn for current Agent ID setup, Graph API shapes, and SDK configuration |
There is no dedicated Agent Identity MCP server today. This skill guides direct Microsoft Graph API calls (PowerShell or Python requests). Use mcp_azure_mcp_documentation to verify request bodies and endpoints against current docs before running.
Before You Start
Use the mcp_azure_mcp_documentation tool to search Microsoft Learn for current Agent ID documentation:
- "Microsoft Entra Agent ID setup instructions"
- "Microsoft Entra SDK for AgentID"
Verify request bodies and endpoints against the installed SDK version — Graph API shapes evolve.
Conceptual Model
Agent Identity Blueprint (application) ← one per agent type/project
└── BlueprintPrincipal (service principal) ← MUST be created explicitly
├── Agent Identity (SP): agent-1 ← one per agent instance
├── Agent Identity (SP): agent-2
└── Agent Identity (SP): agent-3| Concept | Description |
| Blueprint | Application object that defines a type/class of agent. Holds credentials (secret, certificate, federated identity). |
| BlueprintPrincipal | Service principal for the Blueprint in the tenant. Not auto-created. |
| Agent Identity | Service-principal-only identity for a single agent instance. Cannot hold its own credentials. |
| Sponsor | A User (or Group, for Agent Identity) who is responsible for the identity. Required on creation. |
Prerequisites
Required Entra Roles
One of: Agent Identity Developer, Agent Identity Administrator, or Application Administrator.
PowerShell (interactive setup)
# PowerShell 7+
Install-Module Microsoft.Graph.Applications -Scope CurrentUser -ForcePython (programmatic provisioning)
pip install azure-identity requestsAuthentication
DefaultAzureCredentialis not supported. Azure CLI tokens carryDirectory.AccessAsUser.All, which Agent Identity APIs hard-reject (403). Use a dedicated app registration withclient_credentials, orConnect-MgGraphwith explicit delegated scopes.
PowerShell (delegated)
Connect-MgGraph -Scopes @(
"AgentIdentityBlueprint.Create",
"AgentIdentityBlueprint.ReadWrite.All",
"AgentIdentityBlueprintPrincipal.Create",
"AgentIdentity.Create.All",
"User.Read"
)Python (application)
import os, requests
from azure.identity import ClientSecretCredential
credential = ClientSecretCredential(
tenant_id=os.environ["AZURE_TENANT_ID"],
client_id=os.environ["AZURE_CLIENT_ID"],
client_secret=os.environ["AZURE_CLIENT_SECRET"],
)
token = credential.get_token("https://graph.microsoft.com/.default")
GRAPH = "https://graph.microsoft.com/v1.0"
headers = {
"Authorization": f"Bearer {token.token}",
"Content-Type": "application/json",
"OData-Version": "4.0",
}Core Workflow
Step 1: Create Agent Identity Blueprint
Use the typed endpoint. Sponsors must be Users at Blueprint creation. This snippet assumes the requests client and headers dict from the Python authentication block above.
import subprocess
import requests
user_id = subprocess.run(
["az", "ad", "signed-in-user", "show", "--query", "id", "-o", "tsv"],
capture_output=True, text=True, check=True,
).stdout.strip()
blueprint_body = {
"displayName": "My Agent Blueprint",
"sponsors@odata.bind": [
f"https://graph.microsoft.com/v1.0/users/{user_id}"
],
}
resp = requests.post(
f"{GRAPH}/applications/microsoft.graph.agentIdentityBlueprint",
headers=headers, json=blueprint_body,
)
resp.raise_for_status()
blueprint = resp.json()
app_id = blueprint["appId"]
blueprint_obj_id = blueprint["id"]Step 2: Create BlueprintPrincipal
Mandatory. Creating a Blueprint does NOT auto-create its service principal. Skipping this step produces:
400: The Agent Blueprint Principal for the Agent Blueprint does not exist.
sp_body = {"appId": app_id}
resp = requests.post(
f"{GRAPH}/servicePrincipals/microsoft.graph.agentIdentityBlueprintPrincipal",
headers=headers, json=sp_body,
)
resp.raise_for_status()Make your provisioning scripts idempotent — always check for the BlueprintPrincipal even when the Blueprint already exists.
Step 3: Create Agent Identities
Sponsors for an Agent Identity may be Users or Groups.
agent_body = {
"displayName": "my-agent-instance-1",
"agentIdentityBlueprintId": app_id,
"sponsors@odata.bind": [
f"https://graph.microsoft.com/v1.0/users/{user_id}"
],
}
resp = requests.post(
f"{GRAPH}/servicePrincipals/microsoft.graph.agentIdentity",
headers=headers, json=agent_body,
)
resp.raise_for_status()
agent = resp.json()
agent_sp_id = agent["id"]Runtime Authentication
Agents authenticate at runtime using credentials configured on the Blueprint (not on the Agent Identity — Agent Identities can't hold credentials).
| Option | Use case | Credential on Blueprint |
| Managed Identity + WIF | Production (Azure-hosted) | Federated Identity Credential |
| Client secret | Local dev / testing | Password credential |
| Microsoft Entra SDK for AgentID | Polyglot / 3P agents | Sidecar container acquires tokens over HTTP |
For the two-step fmi_path exchange (parent token → per-Agent-Identity Graph token) that gives each agent instance a distinct sub claim and audit trail, see references/runtime-token-exchange.md.
For OBO (agent acting on behalf of a user), see references/obo-blueprint-setup.md.
For the containerized polyglot auth sidecar (Python, Node, Go, Java — no SDK embedding), see references/sdk-sidecar.md.
For MI+WIF and client-secret setup details, see references/oauth2-token-flow.md.
.NET quick path
For .NET services, use Microsoft.Identity.Web.AgentIdentities — it handles Federated Identity Credential management and the two-step exchange for you. See the package README at github.com/AzureAD/microsoft-identity-web under src/Microsoft.Identity.Web.AgentIdentities/.
Granting Permissions (Per Agent Identity)
Agent Identities support both application permissions (autonomous) and delegated permissions (OBO). Grants are scoped per Agent Identity, not to the BlueprintPrincipal.
Application permissions (autonomous)
graph_sp = requests.get(
f"{GRAPH}/servicePrincipals?$filter=appId eq '00000003-0000-0000-c000-000000000000'",
headers=headers,
).json()["value"][0]
user_read_all = next(r for r in graph_sp["appRoles"] if r["value"] == "User.Read.All")
requests.post(
f"{GRAPH}/servicePrincipals/{agent_sp_id}/appRoleAssignments",
headers=headers,
json={
"principalId": agent_sp_id,
"resourceId": graph_sp["id"],
"appRoleId": user_read_all["id"],
},
).raise_for_status()Delegated permissions (OBO)
from datetime import datetime, timedelta, timezone
expiry = (datetime.now(timezone.utc) + timedelta(days=3650)).strftime("%Y-%m-%dT%H:%M:%SZ")
requests.post(
f"{GRAPH}/oauth2PermissionGrants",
headers=headers,
json={
"clientId": agent_sp_id,
"consentType": "AllPrincipals",
"resourceId": graph_sp["id"],
"scope": "User.Read Tasks.ReadWrite Mail.Send",
"expiryTime": expiry,
},
).raise_for_status()Browser-based admin consent URLs do not work for Agent Identities — use oauth2PermissionGrants for programmatic delegated consent.
Cross-Tenant Agent Identities
Blueprints can be multi-tenant (signInAudience: AzureADMultipleOrgs). When exchanging tokens cross-tenant:
Step 1 of the parent token exchange MUST target the Agent Identity's home tenant, not the Blueprint's. Wrong tenant →
AADSTS700211: No matching federated identity record found.
See references/runtime-token-exchange.md for full cross-tenant examples.
API Reference
| Operation | Method | Endpoint |
| Create Blueprint | POST | /applications/microsoft.graph.agentIdentityBlueprint |
| Create BlueprintPrincipal | POST | /servicePrincipals/microsoft.graph.agentIdentityBlueprintPrincipal |
| Create Agent Identity | POST | /servicePrincipals/microsoft.graph.agentIdentity |
| Add FIC to Blueprint | POST | /applications/{id}/microsoft.graph.agentIdentityBlueprint/federatedIdentityCredentials |
| List Agent Identities | GET | /servicePrincipals/microsoft.graph.agentIdentity |
| Grant app permission | POST | /servicePrincipals/{id}/appRoleAssignments |
| Grant delegated permission | POST | /oauth2PermissionGrants |
| Delete Agent Identity | DELETE | /servicePrincipals/{id} |
| Delete Blueprint | DELETE | /applications/{id} |
Base URL: https://graph.microsoft.com/v1.0.
Required Graph Permissions
| Permission | Purpose |
AgentIdentityBlueprint.Create | Create Blueprints |
AgentIdentityBlueprint.ReadWrite.All | Read/update Blueprints |
AgentIdentityBlueprintPrincipal.Create | Create BlueprintPrincipals |
AgentIdentity.Create.All | Create Agent Identities |
AgentIdentity.ReadWrite.All | Read/update Agent Identities |
Application.ReadWrite.All | Blueprint CRUD on application objects |
AppRoleAssignment.ReadWrite.All | Grant application permissions |
DelegatedPermissionGrant.ReadWrite.All | Grant delegated permissions |
Grant admin consent (required for application permissions):
az ad app permission admin-consent --id <client-id>After admin consent, tokens may not include new claims for 30–120 seconds — retry with exponential backoff.
Best Practices
- Always create BlueprintPrincipal after Blueprint — not auto-created.
- Use typed endpoints (
/applications/microsoft.graph.agentIdentityBlueprint) instead of raw/applicationswith@odata.type. - Credentials live on the Blueprint — Agent Identities can't hold secrets/certs (
PropertyNotCompatibleWithAgentIdentity). - Include
OData-Version: 4.0on every Graph request. - Use Workload Identity Federation for production — client secrets only for local dev.
- Set
identifierUris: ["api://{appId}"]on the Blueprint before OAuth2 scope resolution. - Never use Azure CLI tokens for Agent Identity APIs —
Directory.AccessAsUser.Allcauses hard 403. - Use
fmi_pathwithclient_credentials— NOT RFC 8693urn:ietf:params:oauth:grant-type:token-exchange(returnsAADSTS82001). - Always use
/.defaultscope in both steps of the exchange — individual scopes fail. - Step 1 targets the Agent Identity's home tenant in cross-tenant flows.
- Grant permissions per Agent Identity, not to the BlueprintPrincipal.
- Handle permission-propagation delays — retry 403s with 30–120s backoff after admin consent.
- Keep the Entra SDK for AgentID on localhost — never expose via LoadBalancer or Ingress.
Troubleshooting
| Error | Cause | Fix |
AADSTS82001 | Used RFC 8693 token-exchange grant | Use client_credentials with fmi_path |
AADSTS700211 | Step 1 parent token targeted wrong tenant | Target Agent Identity's home tenant |
AADSTS50013 | OBO user token targets Graph, not Blueprint | Use api://{blueprint_app_id}/access_as_user |
AADSTS65001 | Missing grant or used individual scopes | Use /.default and verify oauth2PermissionGrants |
403 Authorization_RequestDenied | No grant on this Agent Identity | Add via appRoleAssignments or oauth2PermissionGrants |
PropertyNotCompatibleWithAgentIdentity | Tried to add credential to Agent Identity SP | Put credentials on the Blueprint |
Agent Blueprint Principal does not exist | BlueprintPrincipal not created | Step 2 of the Core Workflow |
AADSTS650051 on admin consent | SP already exists from partial consent | Grant directly via appRoleAssignments |
References
| File | Contents |
| references/runtime-token-exchange.md | Two-step fmi_path exchange: autonomous + OBO, cross-tenant |
| references/oauth2-token-flow.md | MI + WIF (production) and client secret (local dev) |
| references/obo-blueprint-setup.md | Configuring the Blueprint as an OAuth2 API for OBO |
| references/sdk-sidecar.md | Microsoft Entra SDK for AgentID — architecture, configuration, endpoints |
| references/sdk-sidecar-deployment.md | SDK code patterns (Python/TypeScript), Docker/Kubernetes manifests, security, troubleshooting |
| references/known-limitations.md | Documented gaps organized by category |
External Links
| Resource | URL |
| Agent ID Setup Guide | https://learn.microsoft.com/en-us/entra/agent-id/identity-platform/agent-id-setup-instructions |
| AI-Guided Setup | https://learn.microsoft.com/en-us/entra/agent-id/identity-platform/agent-id-ai-guided-setup |
| Microsoft Entra SDK for AgentID | https://learn.microsoft.com/en-us/entra/msidweb/agent-id-sdk/overview |
| Microsoft.Identity.Web.AgentIdentities (.NET) | https://github.com/AzureAD/microsoft-identity-web/blob/master/src/Microsoft.Identity.Web.AgentIdentities/README.AgentIdentities.md |
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.

