entra-id-aspire-provisioning

Provision Entra ID app registrations for .NET Aspire and update appsettings.json.

785|271|Updated Feb 18, 2020
One-click install
npx skills add https://github.com/AzureAD/microsoft-identity-web --skill entra-id-aspire-provisioning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entra-id-aspire-provisioning
Source: https://github.com/AzureAD/microsoft-identity-web/tree/main/.github/skills/entra-id-aspire-provisioning
Command: npx skills add https://github.com/AzureAD/microsoft-identity-web --skill entra-id-aspire-provisioning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provision Entra ID (Azure AD) app registrations for .NET Aspire applications and update configuration to streamline authentication, authorization, and deployment workflows.

Core Features & Use Cases

  • Provision API and Web App registrations in Entra ID, including App ID URIs, scopes, and service principals.
  • Discover and configure redirect URIs from launch settings and update downstream appsettings.json files.
  • Store API secrets securely in user secrets and update app settings for seamless sign-in and API access.

Quick Start

Run the Aspire Entra ID provisioning flow after integrating Microsoft.Identity.Web authentication code in your projects. The skill will guide you through detecting eligible projects, provisioning API and Web App registrations, updating appsettings.json files, and storing secrets securely.

Frequently Asked Questions about entra-id-aspire-provisioning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Entra ID app registration provisioning for .NET Aspire applications?

Automate Entra ID provisioning by running this Skill after integrating Microsoft.Identity.Web authentication into your Aspire projects. It detects eligible projects, creates API and Web App registrations, configures scopes and redirect URIs from launch settings, stores secrets securely in user secrets, and updates appsettings.json files automatically.

What prerequisites do I need to provision Entra ID app registrations with PowerShell?

You need the Microsoft Graph PowerShell SDK installed and configured for interactive authentication. The Skill requires existing .NET Aspire projects with Microsoft.Identity.Web integrated, plus appropriate permissions in Entra ID to create app registrations and manage service principals.

Can I use this Skill to update redirect URIs across multiple Aspire projects?

Yes. The Skill discovers redirect URIs from launch settings across all eligible projects in your Aspire application, automatically configures them in the Entra ID app registrations, and updates appsettings.json files in each project with the correct configuration values.

How does the Skill handle API secrets and secure storage?

The Skill generates API secrets in Entra ID and stores them securely using .NET user secrets instead of plain-text configuration. It updates app settings to reference these secrets, enabling seamless sign-in and API access without exposing credentials in appsettings.json files.

Can I reuse existing Entra ID app registrations instead of creating new ones?

Yes. The Skill uses interactive prompts to let you choose between creating new Entra ID app registrations or linking to existing ones. This flexibility supports scenarios where you already have registrations configured and want to update configuration across your Aspire projects.

What does the Skill configure for API and Web App registrations?

For API registrations, the Skill configures App ID URIs and scopes. For Web App registrations, it sets redirect URIs and service principals. Both registration types are updated with configuration details needed for authentication and authorization in your Aspire applications.