Skip to content
DocsTry Aspire
DocsTry

RoleAssignmentAnnotation Constructors

ClassConstructors1 member
Specifies the roles that the current resource should be assigned to the target Azure resource.
Constructor(AzureProvisioningResource, IReadOnlySet<RoleDefinition>)Section titled Constructor(AzureProvisioningResource, IReadOnlySet<RoleDefinition>)
Specifies the roles that the current resource should be assigned to the target Azure resource.
public class RoleAssignmentAnnotation
{
public RoleAssignmentAnnotation(
AzureProvisioningResource target,
IReadOnlySet<RoleDefinition> roles)
{
// ...
}
}
targetAzureProvisioningResourceThe Azure resource that the current resource will interact with.
rolesIReadOnlySet<RoleDefinition>The roles that the current resource should be assigned to target.
This annotation is applied to compute resources (e.g., Projects or Containers) that need to interact with Azure resources.