# 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/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/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/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/RoleAssignmentAnnotation.cs#L21)

The Azure resource that the current resource will interact with.

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