Skip to content
Docs Try Aspire

RoleAssignmentAnnotation Constructors

Class Constructors 1 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)
{
// ...
}
}
target AzureProvisioningResource The Azure resource that the current resource will interact with.
roles IReadOnlySet<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.