Skip to content
DocsTry Aspire
DocsTry

DefaultRoleAssignmentsAnnotation Constructors

ClassConstructors1 member
Specifies the default role assignments to be applied to an Azure resource when no specific role assignments (i.e., RoleAssignmentAnnotation) are provided.
Constructor(IReadOnlySet<RoleDefinition>)Section titled Constructor(IReadOnlySet<RoleDefinition>)
Specifies the default role assignments to be applied to an Azure resource when no specific role assignments (i.e., RoleAssignmentAnnotation) are provided.
public class DefaultRoleAssignmentsAnnotation
{
public DefaultRoleAssignmentsAnnotation(
IReadOnlySet<RoleDefinition> roles)
{
// ...
}
}
rolesIReadOnlySet<RoleDefinition>The default set of roles for an Azure resource.