# DefaultRoleAssignmentsAnnotation Properties

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

Specifies the default role assignments to be applied to an Azure resource when no specific role assignments (i.e., [RoleAssignmentAnnotation](/reference/api/csharp/aspire.hosting.azure/roleassignmentannotation.md)) are provided.

## 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/DefaultRoleAssignmentsAnnotation.cs#L18)

Gets the set of roles to use by default for an Azure resource.

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