# EntraIdApplicationResource Properties

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [EntraIdApplicationResource](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Kind: `Properties`
- Members: `17`

A resource that represents a Microsoft Entra ID application registration.

<a id="allowwebapitobeauthorizedbyacl"></a>

## AllowWebApiToBeAuthorizedByACL

- Name: `AllowWebApiToBeAuthorizedByACL`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets whether to allow ACL-based authorization for daemon-to-API calls.

```csharp
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.

<a id="applicationiduri"></a>

## ApplicationIdUri

- Name: `ApplicationIdUri`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets the application ID URI that identifies this registration as an API, when one was set explicitly.

```csharp
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(string)](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/methods.md#getscopeuri-string) to refer to a scope's full URI in either case.

<a id="applicationidurioutputreference"></a>

## ApplicationIdUriOutputReference

- Name: `ApplicationIdUriOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L974)

Gets the application ID URI produced when the registration is provisioned with an application ID URI.

```csharp
public BicepOutputReference ApplicationIdUriOutputReference { get; }
```

<a id="approles"></a>

## AppRoles

- Name: `AppRoles`
- Modifiers: `get`
- Returns: [IReadOnlyList<EntraIdAppRole>](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapprole.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L826)

Gets the application roles to declare on an application created by Aspire.

```csharp
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.

<a id="clientid"></a>

## ClientId

- Name: `ClientId`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets a fixed client ID value.

```csharp
public string? ClientId { get; set; }
```

## Remarks

When both [EntraIdApplicationResource.ClientIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#clientidparameter) and [EntraIdApplicationResource.ClientId](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#clientid) are set, [EntraIdApplicationResource.ClientIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#clientidparameter) takes precedence.

<a id="clientidoutputreference"></a>

## ClientIdOutputReference

- Name: `ClientIdOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L206)

Gets the application (client) ID produced when the registration is provisioned.

```csharp
public BicepOutputReference ClientIdOutputReference { get; }
```

## Remarks

This output is available for applications created by Aspire. Existing applications use [EntraIdApplicationResource.ClientIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#clientidparameter) or [EntraIdApplicationResource.ClientId](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#clientid) instead.

<a id="clientidparameter"></a>

## ClientIdParameter

- Name: `ClientIdParameter`
- Modifiers: `nullable` `get; set`
- Returns: `ParameterResource?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the parameter resource for the client ID.

```csharp
public ParameterResource? ClientIdParameter { get; set; }
```

<a id="enableidtokenissuance"></a>

## EnableIdTokenIssuance

- Name: `EnableIdTokenIssuance`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets whether a created registration can issue ID tokens through implicit and hybrid flows.

```csharp
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.

<a id="instance"></a>

## Instance

- Name: `Instance`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the Entra ID instance URL.

```csharp
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).

<a id="redirecturiparameters"></a>

## RedirectUriParameters

- Name: `RedirectUriParameters`
- Modifiers: `get`
- Returns: `IReadOnlyList<ParameterResource>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L806)

Gets the parameters whose values are comma-separated lists of web redirect URIs to register for an application created by Aspire.

```csharp
public IReadOnlyList<ParameterResource> RedirectUriParameters { get; }
```

## Remarks

The values are supplied at deployment time and split on commas in the generated infrastructure.

<a id="redirecturis"></a>

## RedirectUris

- Name: `RedirectUris`
- Modifiers: `get`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L798)

Gets the literal web redirect URIs to register for an application created by Aspire.

```csharp
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](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#redirecturiparameters) for URIs supplied at deployment time.

<a id="scopes"></a>

## Scopes

- Name: `Scopes`
- Modifiers: `get`
- Returns: [IReadOnlyList<EntraIdScope>](/reference/api/csharp/aspire.hosting.azure.entraid/entraidscope.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L961)

Gets the delegated permission scopes that this registration exposes.

```csharp
public IReadOnlyList<EntraIdScope> Scopes { get; }
```

<a id="sendx5c"></a>

## SendX5C

- Name: `SendX5C`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets whether to send the `x5c` claim (the public key of the certificate) with the token request.

```csharp
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()`.

<a id="signinaudience"></a>

## SignInAudience

- Name: `SignInAudience`
- Modifiers: `get; set`
- Returns: [EntraIdSignInAudience](/reference/api/csharp/aspire.hosting.azure.entraid/entraidsigninaudience.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets which accounts can sign in to the application.

```csharp
public EntraIdSignInAudience SignInAudience { get; set; }
```

## Remarks

Defaults to [EntraIdSignInAudience.AzureADMyOrg](/reference/api/csharp/aspire.hosting.azure.entraid/entraidsigninaudience/fields.md), which allows only accounts in the home tenant. The value must match the "Supported account types" setting of the app registration.

<a id="tenantid"></a>

## TenantId

- Name: `TenantId`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets a fixed ID of the app's home tenant.

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

When both [EntraIdApplicationResource.TenantIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#tenantidparameter) and [EntraIdApplicationResource.TenantId](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#tenantid) are set, [EntraIdApplicationResource.TenantIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#tenantidparameter) takes precedence.

<a id="tenantidoutputreference"></a>

## TenantIdOutputReference

- Name: `TenantIdOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs#L215)

Gets the home tenant ID produced when the registration is provisioned.

```csharp
public BicepOutputReference TenantIdOutputReference { get; }
```

## Remarks

Registrations are created in the tenant of the Azure subscription used for provisioning. Existing applications use [EntraIdApplicationResource.TenantIdParameter](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#tenantidparameter) or [EntraIdApplicationResource.TenantId](/reference/api/csharp/aspire.hosting.azure.entraid/entraidapplicationresource/properties.md#tenantid) instead.

<a id="tenantidparameter"></a>

## TenantIdParameter

- Name: `TenantIdParameter`
- Modifiers: `nullable` `get; set`
- Returns: `ParameterResource?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs)

Gets or sets the parameter resource for the ID of the app's home tenant.

```csharp
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.
