Share via


RoleAssignmentAnnotation Class

Definition

Specifies the roles that the current resource should be assigned to the target Azure resource.

public class RoleAssignmentAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type RoleAssignmentAnnotation = class
    interface IResourceAnnotation
Public Class RoleAssignmentAnnotation
Implements IResourceAnnotation
Inheritance
RoleAssignmentAnnotation
Implements

Remarks

This annotation is applied to compute resources (e.g., Projects or Containers) that need to interact with Azure resources.

Constructors

RoleAssignmentAnnotation(AzureProvisioningResource, IReadOnlySet<RoleDefinition>)

Specifies the roles that the current resource should be assigned to the target Azure resource.

Properties

Roles

Gets the set of roles the current resource should be assigned to the target Azure resource.

Target

The Azure resource that the current resource will interact with.

Applies to