# RoleAssignmentAnnotation Properties

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [RoleAssignmentAnnotation](/reference/api/csharp/aspire.hosting.azure/roleassignmentannotation.md)
- Kind: `Properties`
- Members: `2`

Specifies the roles that the current resource should be assigned to the target Azure resource.

## Roles

- Name: `Roles`
- Modifiers: `get`
- Returns: [IReadOnlySet<RoleDefinition>](/reference/api/csharp/aspire.hosting.azure/roledefinition.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting.Azure/RoleAssignmentAnnotation.cs#L26)

Gets the set of roles the current resource should be assigned to the target Azure resource.

```csharp
public IReadOnlySet<RoleDefinition> Roles { get; }
```

## Target

- Name: `Target`
- Modifiers: `get`
- Returns: [AzureProvisioningResource](/reference/api/csharp/aspire.hosting.azure/azureprovisioningresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting.Azure/RoleAssignmentAnnotation.cs#L21)

The Azure resource that the current resource will interact with.

```csharp
public AzureProvisioningResource Target { get; }
```
