# IAppIdentityResource

- Kind: `interface`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/IAppIdentityResource.cs)

An Azure resource that represents an application's managed identity.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public interface IAppIdentityResource
{
    // ...
}
```

## Properties

- [ClientId](/reference/api/csharp/aspire.hosting.azure/iappidentityresource/properties.md#clientid) : [BicepOutputReference](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference.md) `abstract` `get` -- Gets the unique identifier for the application client associated with the managed identity.
- [Id](/reference/api/csharp/aspire.hosting.azure/iappidentityresource/properties.md#id) : [BicepOutputReference](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference.md) `abstract` `get` -- Gets the unique identifier for the managed identity resource.
- [PrincipalId](/reference/api/csharp/aspire.hosting.azure/iappidentityresource/properties.md#principalid) : [BicepOutputReference](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference.md) `abstract` `get` -- Gets the unique identifier for the security principal associated with the managed identity.
- [PrincipalName](/reference/api/csharp/aspire.hosting.azure/iappidentityresource/properties.md#principalname) : [BicepOutputReference](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference.md) `abstract` `get` -- Gets the name of the security principal associated with the managed identity.
