EntraIdApplicationResource

Classnet10.0
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
A resource that represents a Microsoft Entra ID application registration.
namespace Aspire.Hosting.Azure;
public class EntraIdApplicationResource
: Aspire.Hosting.Azure.AzureProvisioningResource,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithCustomWithReference<Aspire.Hosting.Azure.EntraIdApplicationResource>
{
// ...
}
AzureProvisioningResourceIResourceIResourceWithCustomWithReference<EntraIdApplicationResource>

Entra ID application registrations define the identity configuration for services in a distributed application. Each application registration includes a tenant ID, client ID, and optionally client credentials and API scopes.

Aspire creates new registrations using a resource-group-scoped Microsoft Graph Bicep deployment. Use AddExistingEntraIdApplication to reference an existing registration without deploying infrastructure. Registration-only builder APIs throw on existing references. Converting a resource with AsExistingApplication also throws if registration-only configuration was already applied. Consumer configuration and explicit metadata describing existing API URIs and scopes remain supported.

References to this resource inject configuration as environment variables. .NET program references default to names such as AzureAd__TenantId and AzureAd__ClientId, compatible with Microsoft.Identity.Web. Other references default to an uppercase resource-name prefix and a single underscore separator, and can configure their own prefix and separator.

The properties align with MicrosoftEntraApplicationOptions from Microsoft.Identity.Abstractions.

View all constructors
View all properties
View all methods