Skip to content
DocsTry Aspire
DocsTry

IAddRoleAssignmentsContext Properties

InterfaceProperties6 members
Context for adding role assignments to an Azure resource.
ExecutionContextSection titled ExecutionContextabstractDistributedApplicationExecutionContext
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; }
PrincipalIdSection titled PrincipalIdabstractBicepValue<Guid>
Gets the principal ID to use in the role assignment.
public abstract BicepValue<Guid> PrincipalId { get; }
PrincipalNameSection titled PrincipalNameabstractBicepValue<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.
PrincipalTypeSection titled PrincipalTypeabstractBicepValue<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; }