EntraIdApplicationResource Properties

ClassProperties17 members
A resource that represents a Microsoft Entra ID application registration.
AllowWebApiToBeAuthorizedByACLSection titled AllowWebApiToBeAuthorizedByACLbool
Gets or sets whether to allow ACL-based authorization for daemon-to-API calls.
public bool AllowWebApiToBeAuthorizedByACL { get; set; }
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.
ApplicationIdUriSection titled ApplicationIdUrinullablestring?
Gets the application ID URI that identifies this registration as an API, when one was set explicitly.
public string? ApplicationIdUri { get; }
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.
ApplicationIdUriOutputReferenceSection titled ApplicationIdUriOutputReferenceBicepOutputReference
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; }
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.
ClientIdSection titled ClientIdnullablestring?
Gets or sets a fixed client ID value.
public string? ClientId { get; set; }
ClientIdOutputReferenceSection titled ClientIdOutputReferenceBicepOutputReference
Gets the application (client) ID produced when the registration is provisioned.
public BicepOutputReference ClientIdOutputReference { get; }
This output is available for applications created by Aspire. Existing applications use EntraIdApplicationResource.ClientIdParameter or EntraIdApplicationResource.ClientId instead.
ClientIdParameterSection titled ClientIdParameternullableParameterResource?
Gets or sets the parameter resource for the client ID.
public ParameterResource? ClientIdParameter { get; set; }
EnableIdTokenIssuanceSection titled EnableIdTokenIssuancebool
Gets or sets whether a created registration can issue ID tokens through implicit and hybrid flows.
public bool EnableIdTokenIssuance { get; set; }
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; }
Defaults to https://login.microsoftonline.com/. Override for sovereign clouds (e.g., https://login.microsoftonline.us/ for Azure Government).
RedirectUriParametersSection titled RedirectUriParametersIReadOnlyList<ParameterResource>
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; }
The values are supplied at deployment time and split on commas in the generated infrastructure.
RedirectUrisSection titled RedirectUrisIReadOnlyList<string>
Gets the literal web redirect URIs to register for an application created by Aspire.
public IReadOnlyList<string> RedirectUris { get; }
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; }
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; }
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.
TenantIdSection titled TenantIdnullablestring?
Gets or sets a fixed ID of the app's home tenant.
public string? TenantId { get; set; }

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.onmicrosoft.com.

When both EntraIdApplicationResource.TenantIdParameter and EntraIdApplicationResource.TenantId are set, EntraIdApplicationResource.TenantIdParameter takes precedence.

TenantIdOutputReferenceSection titled TenantIdOutputReferenceBicepOutputReference
Gets the home tenant ID produced when the registration is provisioned.
public BicepOutputReference TenantIdOutputReference { get; }
Registrations are created in the tenant of the Azure subscription used for provisioning. Existing applications use EntraIdApplicationResource.TenantIdParameter or EntraIdApplicationResource.TenantId instead.
TenantIdParameterSection titled TenantIdParameternullableParameterResource?
Gets or sets the parameter resource for the ID of the app's home tenant.
public ParameterResource? TenantIdParameter { get; set; }
The home tenant is the directory where the app is registered, shown as "Directory (tenant) ID" on the app registration's Overview page.