EntraIdApplicationResource
namespace Aspire.Hosting.Azure;
public class EntraIdApplicationResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithCustomWithReference<Aspire.Hosting.Azure.EntraIdApplicationResource>{ // ...}Remarks
Section titled RemarksEntra 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 Add to reference an existing registration without deploying infrastructure. Registration-only builder APIs throw on existing references. Converting a resource with As 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 Azure and Azure, 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 Microsoft from Microsoft..
Constructors1
Section titled ConstructorsEntraIdApplicationResource class. Properties17
Section titled PropertiesAllowWebApiToBeAuthorizedByACL get; setboolstring?BicepOutputReference AppRoles getBicepOutputReference EnableIdTokenIssuance get; setboolIReadOnlyList<ParameterResource> RedirectUris getIReadOnlyList<string> ScopesgetSendX5C get; setboolx5c claim (the public key of the certificate) with the token request. SignInAudience get; setBicepOutputReference TenantIdParameter get; setParameterResource? Methods3
Section titled MethodsBicepTemplateFile ReferenceExpression api://{clientId}/access_as_user .