entra-app-registration
Skill1.6k starsChanged 18 days agoMITView on GitHub
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
7 other projects use a version of this, 5 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
- microsoft/agent-skillsword for word, first seen Oct 8, 2026
- LiTianYun/claude-skillsedited, first seen Jul 22, 2026
- JustineDevs/premortemedited, first seen Jun 9, 2026
- jorgeasaurus/agent-skillsedited, first seen May 11, 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
Used with
Projects with it also use web-design-guidelines.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 2
- microsoft/skills★ 3.2k100% same
- microsoft/agent-skills★ 3.2k100% same
Edited · 5
- microsoft/GitHub-Copilot-for-Azure★ 26499% same
- jorgeasaurus/agent-skills★ 1498% same
- Tyler-R-Kendrick/agent-skills★ 1197% same
- JustineDevs/premortem★ 298% same
- LiTianYun/claude-skills★ 198% 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 repository88 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-advisor-cost-optimizationSkill
- 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-agent-idSkill
- 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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 6 are common, 0 are distinctive, and 2 are very specific to this project.
6
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 39
Create an app registration in the Azure portal or using Azure CLI.
- Common: line 56
Web Apps: Add redirect URIs, enable ID tokens if needed
- Common: line 57
SPAs: Add redirect URIs, enable implicit grant flow if necessary
- Very specific: line 58
Mobile/Desktop: Use http://localhost or custom URI scheme
- Common: line 59
Services: No redirect URI needed for client credentials flow
- Common: line 79
Create new client secret
- Very specific: line 111
Create a .NET/Python/Node.js console app that authenticates users.
- Common: line 129
Implementation: Use Client Credentials flow (see references/oauth-flows.md#client-credentials-flow)
“Common” is measured: kept by at least 6 in 10 of the 5 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
Overview
Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud-based identity and access management service. App registrations allow applications to authenticate users and access Azure resources securely.
Key Concepts
| Concept | Description |
| App Registration | Configuration that allows an app to use Microsoft identity platform |
| Application (Client) ID | Unique identifier for your application |
| Tenant ID | Unique identifier for your Azure AD tenant/directory |
| Client Secret | Password for the application (confidential clients only) |
| Redirect URI | URL where authentication responses are sent |
| API Permissions | Access scopes your app requests |
| Service Principal | Identity created in your tenant when you register an app |
Application Types
| Type | Use Case |
| Web Application | Server-side apps, APIs |
| Single Page App (SPA) | JavaScript/React/Angular apps |
| Mobile/Native App | Desktop, mobile apps |
| Daemon/Service | Background services, APIs |
Core Workflow
Step 1: Register the Application
Create an app registration in the Azure portal or using Azure CLI.
Portal Method:
- Navigate to Azure Portal → Microsoft Entra ID → App registrations
- Click "New registration"
- Provide name, supported account types, and redirect URI
- Click "Register"
CLI Method: See references/cli-commands.md IaC Method: See references/BICEP-EXAMPLE.bicep
It's highly recommended to use the IaC to manage Entra app registration if you already use IaC in your project, need a scalable solution for managing lots of app registrations or need fine-grained audit history of the configuration changes.
Step 2: Configure Authentication
Set up authentication settings based on your application type.
- Web Apps: Add redirect URIs, enable ID tokens if needed
- SPAs: Add redirect URIs, enable implicit grant flow if necessary
- Mobile/Desktop: Use
http://localhostor custom URI scheme - Services: No redirect URI needed for client credentials flow
Step 3: Configure API Permissions
Grant your application permission to access Microsoft APIs or your own APIs.
Common Microsoft Graph Permissions:
User.Read- Read user profileUser.ReadWrite.All- Read and write all usersDirectory.Read.All- Read directory dataMail.Send- Send mail as a user
Details: See references/api-permissions.md
Step 4: Create Client Credentials (if needed)
For confidential client applications (web apps, services), create a client secret, certificate or federated identity credential.
Client Secret:
- Navigate to "Certificates & secrets"
- Create new client secret
- Copy the value immediately (only shown once)
- Store securely (Key Vault recommended)
Certificate: For production environments, use certificates instead of secrets for enhanced security. Upload certificate via "Certificates & secrets" section.
Federated Identity Credential: For dynamically authenticating the confidential client to Entra platform.
Step 5: Implement OAuth Flow
Integrate the OAuth flow into your application code.
See:
- references/oauth-flows.md - OAuth 2.0 flow details
- references/console-app-example.md - Console app implementation
Common Patterns
Pattern 1: First-Time App Registration
Walk user through their first app registration step-by-step.
Required Information:
- Application name
- Application type (web, SPA, mobile, service)
- Redirect URIs (if applicable)
- Required permissions
Script: See references/first-app-registration.md
Pattern 2: Console Application with User Authentication
Create a .NET/Python/Node.js console app that authenticates users.
Required Information:
- Programming language (C#, Python, JavaScript, etc.)
- Authentication library (MSAL recommended)
- Required permissions
Example: See references/console-app-example.md
Pattern 3: Service-to-Service Authentication
Set up daemon/service authentication without user interaction.
Required Information:
- Service/app name
- Target API/resource
- Whether to use secret or certificate
Implementation: Use Client Credentials flow (see references/oauth-flows.md#client-credentials-flow)
MCP Tools and CLI
Azure CLI Commands
| Command | Purpose |
az ad app create | Create new app registration |
az ad app list | List app registrations |
az ad app show | Show app details |
az ad app permission add | Add API permission |
az ad app credential reset | Generate new client secret |
az ad sp create | Create service principal |
Complete reference: See references/cli-commands.md
Microsoft Authentication Library (MSAL)
MSAL is the recommended library for integrating Microsoft identity platform.
Supported Languages:
- .NET/C# -
Microsoft.Identity.Client - JavaScript/TypeScript -
@azure/msal-browser,@azure/msal-node - Python -
msal
Examples: See references/console-app-example.md
Security Best Practices
| Practice | Recommendation |
| Never hardcode secrets | Use environment variables, Azure Key Vault, or managed identity |
| Rotate secrets regularly | Set expiration, automate rotation |
| Use certificates over secrets | More secure for production |
| Least privilege permissions | Request only required API permissions |
| Enable MFA | Require multi-factor authentication for users |
| Use managed identity | For Azure-hosted apps, avoid secrets entirely |
| Validate tokens | Always validate issuer, audience, expiration |
| Use HTTPS only | All redirect URIs must use HTTPS (except localhost) |
| Monitor sign-ins | Use Entra ID sign-in logs for anomaly detection |
SDK Quick References
- Azure Identity: Python | .NET | TypeScript | Java | Rust
- Key Vault (secrets): Python | TypeScript
- Auth Events: .NET
References
- OAuth Flows - Detailed OAuth 2.0 flow explanations
- CLI Commands - Azure CLI reference for app registrations
- Console App Example - Complete working examples
- First App Registration - Step-by-step guide for beginners
- API Permissions - Understanding and configuring permissions
- Troubleshooting - Common issues and solutions
External Resources
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.

