Aspire.Hosting.Azure.Provisioning.EntraId 17.0.0-preview.1.26567.5

Prefix Reserved
This is a prerelease version of Aspire.Hosting.Azure.Provisioning.EntraId.
dotnet add package Aspire.Hosting.Azure.Provisioning.EntraId --version 17.0.0-preview.1.26567.5
                    
NuGet\Install-Package Aspire.Hosting.Azure.Provisioning.EntraId -Version 17.0.0-preview.1.26567.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspire.Hosting.Azure.Provisioning.EntraId" Version="17.0.0-preview.1.26567.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting.Azure.Provisioning.EntraId" Version="17.0.0-preview.1.26567.5" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting.Azure.Provisioning.EntraId" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspire.Hosting.Azure.Provisioning.EntraId --version 17.0.0-preview.1.26567.5
                    
#r "nuget: Aspire.Hosting.Azure.Provisioning.EntraId, 17.0.0-preview.1.26567.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspire.Hosting.Azure.Provisioning.EntraId@17.0.0-preview.1.26567.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspire.Hosting.Azure.Provisioning.EntraId&version=17.0.0-preview.1.26567.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting.Azure.Provisioning.EntraId&version=17.0.0-preview.1.26567.5&prerelease
                    
Install as a Cake Tool

Microsoft Graph provisioning hosting integration

This package is experimental and emits ASPIREAZUREPROVISIONING001.

Use this integration to customize Microsoft Entra ID registration infrastructure from a polyglot Aspire AppHost.

Getting started

Prerequisites

The Entra ID integration's prerequisites apply.

Add the integration

From your AppHost directory, add the Aspire.Hosting.Azure.Provisioning.EntraId integration with the Aspire CLI:

aspire add Aspire.Hosting.Azure.Provisioning.EntraId

Usage example

Then, in a TypeScript AppHost, customize the Graph application and service principal created by Aspire:

import { createBuilder } from "./.aspire/modules/aspire.mjs";

const builder = await createBuilder();
const serviceReference = await builder.addParameter("service-reference");
const entra = await builder.addEntraIdApplication("entra");

await entra.configureInfrastructure(async infrastructure => {
    const application = await infrastructure.getMicrosoftGraphApplicationByIdentifier("application");
    await application.serviceManagementReference.set(infrastructure.bicep().parameter(serviceReference));
    const tags = await application.tags.get();
    await tags.add("department:engineering");

    const principal = await infrastructure.getMicrosoftGraphServicePrincipalByIdentifier("servicePrincipal");
    const principalTags = await principal.tags.get();
    await principalTags.add("department:engineering");
});

Graph declarations use the Bicep identifiers application and servicePrincipal, not the Aspire resource name, so look them up by identifier. Properties accept literals or shared Bicep values. Graph tags are strings; add to the service principal's tags rather than replacing them. See Customize the generated infrastructure for the C# API and details.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
17.0.0-preview.1.26567.5 0 11/18/2026