EntraIdApplicationResource Properties
ClassProperties17 members
A resource that represents a Microsoft Entra ID application registration.
Gets or sets whether to allow ACL-based authorization for daemon-to-API calls.
public bool AllowWebApiToBeAuthorizedByACL { get; set; }Remarks
When
true, the web API will not require roles or scopes in the token, allowing client credentials flow callers to be authorized by an Access Control List. Gets the application ID URI that identifies this registration as an API, when one was set explicitly.
public string? ApplicationIdUri { get; }Remarks
This is
null when the registration uses the default api://{clientId} URI, which is known only after the registration is created. Use EntraIdApplicationResource.GetScopeUri to refer to a scope's full URI in either case. Gets the application ID URI produced when the registration is provisioned with an application ID URI.
public BicepOutputReference ApplicationIdUriOutputReference { get; } Gets the application roles to declare on an application created by Aspire.
public IReadOnlyList<EntraIdAppRole> AppRoles { get; }Remarks
Application roles are distinct from delegated scopes and from Azure RBAC roles. Declaring a role does not assign it to any user, group, or application, and existing registrations are not modified.
Gets or sets a fixed client ID value.
public string? ClientId { get; set; }Remarks
When both
EntraIdApplicationResource.ClientIdParameter and EntraIdApplicationResource.ClientId are set, EntraIdApplicationResource.ClientIdParameter takes precedence. Gets the application (client) ID produced when the registration is provisioned.
public BicepOutputReference ClientIdOutputReference { get; }Remarks
This output is available for applications created by Aspire. Existing applications use
EntraIdApplicationResource.ClientIdParameter or EntraIdApplicationResource.ClientId instead. Gets or sets the parameter resource for the client ID.
public ParameterResource? ClientIdParameter { get; set; } Gets or sets whether a created registration can issue ID tokens through implicit and hybrid flows.
public bool EnableIdTokenIssuance { get; set; }Remarks
Defaults to
false. This does not enable implicit access-token issuance and is not required for authorization-code-only flows. Existing registrations are not modified; configure their Authentication settings manually. Gets or sets the Entra ID instance URL.
public string Instance { get; set; }Remarks
Defaults to
https://login.microsoftonline.com/ . Override for sovereign clouds (e.g., https://login.microsoftonline.us/ for Azure Government). Gets the parameters whose values are comma-separated lists of web redirect URIs to register for an application created by Aspire.
public IReadOnlyList<ParameterResource> RedirectUriParameters { get; }Remarks
The values are supplied at deployment time and split on commas in the generated infrastructure.
Gets the literal web redirect URIs to register for an application created by Aspire.
public IReadOnlyList<string> RedirectUris { get; }Remarks
These URIs are written directly into the generated infrastructure. Endpoints are not discovered automatically, and existing registrations are not modified. Use
EntraIdApplicationResource.RedirectUriParameters for URIs supplied at deployment time. Gets the delegated permission scopes that this registration exposes.
public IReadOnlyList<EntraIdScope> Scopes { get; } Gets or sets whether to send the
x5c claim (the public key of the certificate) with the token request. public bool SendX5C { get; set; }Remarks
Sending
x5c enables easy certificate rollover, but it is only meaningful for certificate-based credentials and increases request size, so it is opt-in via WithSendX5C() . Gets or sets which accounts can sign in to the application.
public EntraIdSignInAudience SignInAudience { get; set; }Remarks
Defaults to
EntraIdSignInAudience.AzureADMyOrg , which allows only accounts in the home tenant. The value must match the "Supported account types" setting of the app registration. Gets or sets a fixed ID of the app's home tenant.
public string? TenantId { get; set; }Remarks
The home tenant is the directory where the app is registered, shown as "Directory (tenant) ID" on the app registration's Overview page. It can be a GUID or a domain such as contoso..
When both Entra and Entra are set, Entra takes precedence.
Gets the home tenant ID produced when the registration is provisioned.
public BicepOutputReference TenantIdOutputReference { get; }Remarks
Registrations are created in the tenant of the Azure subscription used for provisioning. Existing applications use
EntraIdApplicationResource.TenantIdParameter or EntraIdApplicationResource.TenantId instead. Gets or sets the parameter resource for the ID of the app's home tenant.
public ParameterResource? TenantIdParameter { get; set; }Remarks
The home tenant is the directory where the app is registered, shown as "Directory (tenant) ID" on the app registration's Overview page.