RoleAssignmentAnnotation Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the roles that the current resource should be assigned to the target Azure resource.
public RoleAssignmentAnnotation(Aspire.Hosting.Azure.AzureProvisioningResource target, System.Collections.Generic.IReadOnlySet<Aspire.Hosting.Azure.RoleDefinition> roles);
new Aspire.Hosting.Azure.RoleAssignmentAnnotation : Aspire.Hosting.Azure.AzureProvisioningResource * System.Collections.Generic.IReadOnlySet<Aspire.Hosting.Azure.RoleDefinition> -> Aspire.Hosting.Azure.RoleAssignmentAnnotation
Public Sub New (target As AzureProvisioningResource, roles As IReadOnlySet(Of RoleDefinition))
Parameters
- 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
.
Remarks
This annotation is applied to compute resources (e.g., Projects or Containers) that need to interact with Azure resources.