# AppIdentityAnnotation

- Kind: `class`
- 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/AppIdentityAnnotation.cs)
- Implements: `IResourceAnnotation`

An annotation for an application's identity resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AppIdentityAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Remarks

The identity resource represents the Azure managed identity associated with the application.

## Constructors

- [AppIdentityAnnotation(IAppIdentityResource)](/reference/api/csharp/aspire.hosting.azure/appidentityannotation/constructors.md#constructor-iappidentityresource) -- An annotation for an application's identity resource.

## Properties

- [IdentityResource](/reference/api/csharp/aspire.hosting.azure/appidentityannotation/properties.md#identityresource) : [IAppIdentityResource](/reference/api/csharp/aspire.hosting.azure/iappidentityresource.md) `get` -- Gets the identity resource associated with an application.
