为智能体快速配置 Microsoft Entra 身份蓝图、实例身份与 OAuth 令牌交换。
该技能材料显示其为开源的提示型技能,本身未声明内置密钥、远程端点或本地执行能力,整体风险较低。但其面向 Microsoft Graph 上的身份与权限配置,若按指引实际操作,可能涉及高权限目录对象与 OAuth 配置变更,需谨慎核验最小权限与官方文档。
材料顶部标注无需密钥/环境变量,但 README 明确涉及为 Blueprint 配置凭据(FIC、Managed Identity 或 client secret)及 OAuth 令牌交换流程;说明技能本体不自带凭证,但实际使用场景会处理敏感身份配置,存在误配或泄露后的滥用面。
README 指向已知官方端点 Microsoft Graph(https://graph.microsoft.com/v1.0),并建议通过 Microsoft Learn/MCP 文档工具核对接口;未见向不明第三方外发数据的迹象,但若照此执行将把身份配置请求发送到微软服务。
系统客观检查项已标注为 prompt-only,且文档仅描述指导直接调用 Graph API(如 PowerShell 或 Python requests),未声明该技能自身会在本机启动进程、执行脚本或授予额外系统能力。
材料未声明可直接读写本地文件,但其目标是创建和管理 Entra Blueprint、Service Principal、Agent Identity、权限授予与跨租户/OBO 令牌流,属于对租户身份与授权资源的敏感管理面;README 还列出需要 Agent Identity Developer/Administrator 或 Application Administrator 角色,应关注是否超出业务所需。
来源为 GitHub 上的微软仓库,且系统标注 open-source,源码可审计,这是明显的降风险因素。负面点是许可证未声明、star 为 0、维护状态未知,因此可信度并非最佳,但基于现有材料未见闭源外传、恶意注入或明显失维红旗。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "entra-agent-id" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md 2. 保存为 ~/.claude/skills/entra-agent-id/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为一个企业内部 AI 智能体设计 Microsoft Entra Agent Identity Blueprint,包含 BlueprintPrincipal、所需权限范围、命名规范,以及通过 Microsoft Graph 进行创建的步骤示例。
返回可实施的身份蓝图设计、主体配置建议与 Graph 创建流程示例。
帮我为一个多服务智能体配置 OAuth 2.0 OBO 令牌交换流程,说明前置条件、Microsoft Entra 配置项、令牌流转步骤,以及常见错误排查要点。
给出完整的 OBO 配置说明、流程图式步骤与排障清单。
请说明如何在一个 polyglot 智能体系统中集成 Microsoft Entra SDK for AgentID sidecar,实现每实例身份与跨租户令牌交换,并提供部署与配置建议。
输出 sidecar 集成方案、身份分配方式、跨租户交换配置重点与部署建议。
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.
| 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) |
fmi_path runtime token exchange (autonomous or OBO)appRoleAssignments) or delegated (oauth2PermissionGrants) permissionsAADSTS82001, AADSTS700211, or PropertyNotCompatibleWithAgentIdentity| 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.
Use the mcp_azure_mcp_documentation tool to search Microsoft Learn for current Agent ID documentation:
Verify request bodies and endpoints against the installed SDK version — Graph API shapes evolve.
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. |
One of: Agent Identity Developer, Agent Identity Administrator, or Application Administrator.
# PowerShell 7+
Install-Module Microsoft.Graph.Applications -Scope CurrentUser -Force
pip install azure-identity requests
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.
Connect-MgGraph -Scopes @(
"AgentIdentityBlueprint.Create",
"AgentIdentityBlueprint.ReadWrite.All",
"AgentIdentityBlueprintPrincipal.Create",
"AgentIdentity.Create.All",
"User.Read"
)
…
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
帮助你编写、审查并规范符合 agentskills.io 规范的技能文档
帮助你跨区域与项目查询 Azure OpenAI 容量配额并推荐最佳部署位置
帮助你编写、校验并运行基于 eval.yaml 的智能体评测套件
使用 KQL 查询和分析 Azure Data Explorer 中的日志、遥测与时序数据。
评估 AKS 集群与工作负载对 Automatic 的兼容性并提供迁移修复建议
指导完成 Microsoft Entra ID 应用注册、OAuth 配置与 MSAL 接入。
帮助用户检索微软 Entra ID 与 Graph 权限及一方应用信息。
帮助你端到端部署、评估、微调并持续优化 Microsoft Foundry 智能体与模型。
通过 Microsoft Graph 管理 Entra ID 用户、权限、设备与安全策略。
帮助团队安全运维长期运行的智能体任务,并管理监控与生命周期。
为 AI 代理提供企业级认证鉴权、令牌校验与访问控制能力