microsoft/agents/agents-sdk-provision
Claude Code and agent skill by microsoft/agents
- vendor
Checking that the SKILL.md file is still in the repository.
Use when provisioning Azure resources for a Microsoft Agents SDK application — including creating an Azure Bot Service resource, setting up Entra app registrations, configuring identity credentials (UserManagedIdentity, FederatedCredentials, or ClientSecret), adding a Teams channel, running Bicep deployments for SSO, or setting up OAuth user sign-in connections via az CLI. Trigger even if the user doesn't say "provision" — use on requests like "set up my bot on Azure", "deploy my bot", "configure Azure for my bot", or "get Teams SSO working." Applies to all languages (dotnet, Node.js, Python).
Install
npx vskill@latest install microsoft/agents/agents-sdk-provisionSKILL.md
The same SKILL.md was published earlier as microsoft/agents/agents-sdk-provision.
Azure Agents SDK Provisioning
Overview
Provisions Azure Bot resources for M365 Agents SDK apps using az CLI commands. Three auth types available; each produces a config block for appsettings.json (dotnet) or env vars (Node.js/Python).
Prerequisites
Auth Type Selection
| Auth Type | No Secret | Works Off-Azure | App Registration | |
|---|---|---|---|---|
UserManagedIdentity | ✅ | ❌ | ❌ | |
FederatedCredentials | ✅ | ✅ | ✅ | |
ClientSecret | ❌ | ✅ | ✅ |
UserManagedIdentity
The bot authenticates as an Azure Managed Identity — a system-managed credential that Azure rotates automatically. No app registration, no secrets, no expiry management.
Use when: The bot is hosted on Azure (App Service, Container Apps, AKS, Azure Functions). The hosting platform injects the identity token; it cannot work outside Azure.
Implies:
- Azure assigns a
clientIdfor the identity; no secret is ever stored or transmitted - The identity is scoped to the resource group where it's created
- Simplest operational model — nothing to rotate, nothing to leak
- If the host is compromised, the attacker can only act as that identity (blast radius limited to assigned roles)
Not suitable for: Local dev (no Azure runtime to inject tokens), cross-tenant scenarios, off-Azure CI/CD pipelines.
FederatedCredentials
The bot has an App Registration (for a stable clientId and tenant-scoped identity), but instead of a secret, it uses a Managed Identity to prove ownership via a federated credential. The MSI's principalId is registered as a trusted subject on the app — Azure AD accepts the MSI's token as proof that the app is authorized.
Use when: You need an App Registration (e.g. for OAuth scopes, Graph API access, cross-tenant identity) but don't want to manage a client secret. Common for production workloads still hosted on Azure.
Implies:
- Still requires Azure hosting (MSI token still injected by the platform)
- Two Azure resources: a Managed Identity + an App Registration linked by the federated credential
- No secret ever exists — the FIC relationship is the credential
- Slightly more setup complexity than pure MSI, but unlocks app-registration capabilities (API permissions, OAuth connections, service principal)
- If the MSI or app registration is deleted, the trust breaks — both must be managed together
Not suitable for: Local dev, off-Azure deployments.
ClientSecret
The bot has an App Registration with a generated client secret. The secret is stored in config and sent to Azure AD to obtain tokens. Classic service principal authentication.
Use when: The bot runs outside Azure (local dev, on-prem, other cloud), or you need the quickest path to a working bot without MSI infrastructure. How to execute: Use Option C in Step 1 below, which runs two Bicep deployments to create the app registration with Teams SSO support, then generates a client secret.
Implies:
- A secret exists and must be protected — store in Key Vault, GitHub Secrets, or environment secret manager; never in source control
- Secrets expire (default 1–2 years) and must be rotated before expiry, or the bot stops authenticating
- Widest attack surface: a leaked secret allows anyone to authenticate as the bot from anywhere
- Easiest to use in CI/CD and local dev (just set env vars)
az ad app credential reset --appendadds a new secret without invalidating existing ones — always use--append, then remove the old secret key ID after deploying
Not suitable for: High-security production environments where secret management overhead is unacceptable.
Step 1: Create Identity & Credentials
Option A: UserManagedIdentity
Config output — dotnet (`appsettings.json`):
Config output — Node.js (`.env`):
Run with:node --env-file .env dist/index.js(Node 20+)
Option B: FederatedCredentials
Config output — dotnet (`appsettings.json`):
Config output — Node.js (`.env`):
Run with:node --env-file .env dist/index.js(Node 20+)
Option C: ClientSecret
Uses two Bicep deployments to create a Teams SSO-capable app registration, then generates a client secret.
Prerequisites: Bicep CLI 0.26.0+ (az bicep install) with the Microsoft Graph Bicep extension. Account requires Application Administrator or Global Administrator role.
Step 0 — Verify active tenant matches the intended tenant:
Run this before collecting any other inputs. If the user specified a tenant domain (e.g. asdkt3.onmicrosoft.com), confirm it matches before proceeding.
If the active tenant does not match the intended tenant, switch first:
Ask the user for:
APP_NAME— display name for the Entra app registration (must be unique in the tenant)RESOURCE_GROUP— run the command below to show available resource groups, then ask the user to pick one:
- Config format — ask: "Which config format do you need — dotnet (`appsettings.json`) or Node.js (`.env`)?"
Step 1 — Check if app already exists (handle re-run after partial failure):
Phase 1 — Create app registration with `access_as_user` scope and identifier URI:
Skip this phase if APP_ID and OAUTH_SCOPE_ID are already set from the resume block above — the app registration already exists.
Phase 2 — Pre-authorize Teams/Office host clients for SSO:
Phase 2b — Verify deployment:
Run after Phase 2 completes. All three checks must pass before generating a secret.
If any check fails, do not proceed. Re-run the failed phase before continuing.
Phase 3 — Register service principal and create client secret:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 6 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-plugins/agents-sdk-common/skills/agents-sdk-provision/SKILL.md
Popularity
- Repository stars
- 1,023
- Repository forks
- 329
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/agents/agents-sdk-provision)