Skip to content
Docs Try Aspire

IAddRoleAssignmentsContext Properties

Interface Properties 6 members
Context for adding role assignments to an Azure resource.
ExecutionContext Section titled ExecutionContext abstract DistributedApplicationExecutionContext
Gets the execution context for distributed application.
public abstract DistributedApplicationExecutionContext ExecutionContext { get; }
Gets the Azure resource infrastructure to add the role assignments into.
public abstract AzureResourceInfrastructure Infrastructure { get; }
PrincipalId Section titled PrincipalId abstract BicepValue<Guid>
Gets the principal ID to use in the role assignment.
public abstract BicepValue<Guid> PrincipalId { get; }
PrincipalName Section titled PrincipalName abstract BicepValue<string>
Gets the principal name to use in the role assignment.
public abstract BicepValue<string> PrincipalName { get; }
Not all role assignments require/use a principal name.
PrincipalType Section titled PrincipalType abstract BicepValue<RoleManagementPrincipalType>
Gets the principal type to use in the role assignment.
public abstract BicepValue<RoleManagementPrincipalType> PrincipalType { get; }
Gets the roles to be assigned.
public abstract IEnumerable<RoleDefinition> Roles { get; }