# DefaultRoleAssignmentsAnnotation Constructors

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [DefaultRoleAssignmentsAnnotation](/reference/api/csharp/aspire.hosting.azure/defaultroleassignmentsannotation.md)
- Kind: `Constructors`
- 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.

## DefaultRoleAssignmentsAnnotation(IReadOnlySet<RoleDefinition>)

- Name: `Constructor(IReadOnlySet<RoleDefinition>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/DefaultRoleAssignmentsAnnotation.cs#L13-L18)

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.

```csharp
public class DefaultRoleAssignmentsAnnotation
{
    public DefaultRoleAssignmentsAnnotation(
        IReadOnlySet<RoleDefinition> roles)
    {
        // ...
    }
}
```

## Parameters

- `roles` ([IReadOnlySet<RoleDefinition>](/reference/api/csharp/aspire.hosting.azure/roledefinition.md))
  The default set of roles for an Azure resource.
