Aspire.Hosting.Azure.Provisioning.EntraId
17.0.0-preview.1.26567.5
Prefix Reserved
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
<PackageReference Include="Aspire.Hosting.Azure.Provisioning.EntraId" Version="17.0.0-preview.1.26567.5" />
<PackageVersion Include="Aspire.Hosting.Azure.Provisioning.EntraId" Version="17.0.0-preview.1.26567.5" />
<PackageReference Include="Aspire.Hosting.Azure.Provisioning.EntraId" />
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"
#:package Aspire.Hosting.Azure.Provisioning.EntraId@17.0.0-preview.1.26567.5
#addin nuget:?package=Aspire.Hosting.Azure.Provisioning.EntraId&version=17.0.0-preview.1.26567.5&prerelease
#tool nuget:?package=Aspire.Hosting.Azure.Provisioning.EntraId&version=17.0.0-preview.1.26567.5&prerelease
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
- https://aspire.dev/integrations/gallery/
- Shared Azure Provisioning expression APIs
- https://learn.microsoft.com/graph/templates/bicep/reference/applications
- https://learn.microsoft.com/graph/templates/bicep/reference/serviceprincipals
Feedback & contributing
| Product | Versions 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. |
-
net10.0
- Aspire.Hosting.Azure.EntraId (>= 17.0.0-preview.1.26567.5)
- Aspire.Hosting.Azure.Provisioning (>= 17.0.0-preview.1.26567.5)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Azure.Core (>= 1.63.0)
- Azure.Identity (>= 1.21.0)
- Azure.Provisioning (>= 1.6.0)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.ResourceManager.Authorization (>= 1.1.7)
- Azure.ResourceManager.KeyVault (>= 1.4.0)
- Azure.ResourceManager.Resources.Deployments (>= 1.0.0)
- Azure.Security.KeyVault.Secrets (>= 4.11.1)
- Google.Protobuf (>= 3.36.1)
- Grpc.AspNetCore (>= 2.83.0)
- Grpc.Net.ClientFactory (>= 2.83.0)
- Grpc.Tools (>= 2.83.0)
- Hex1b (>= 0.173.0)
- KubernetesClient (>= 19.0.2)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.15)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.15)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.15)
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options (>= 10.0.15)
- Microsoft.Extensions.Primitives (>= 10.0.15)
- ModelContextProtocol (>= 1.4.1)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.18.0)
- OpenTelemetry.Extensions.Hosting (>= 1.18.0)
- Polly.Core (>= 8.7.0)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.25.29)
- System.IO.Hashing (>= 10.0.15)
- YamlDotNet (>= 18.1.0)
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 |