CosmosDBAccountProxy.createRoleAssignment

Method
📦 Aspire.Hosting.Azure.Provisioning.CosmosDB v17.0.0-preview.1.26567.5
interface CosmosDBAccountProxy {
// ... omitted for brevity
createRoleAssignment(
role: CosmosDBBuiltInRoleProxy,
principalType: BicepValueProxy | RoleManagementPrincipalType,
principalId: BicepValueProxy | guid,
bicepIdentifierSuffix: string): CosmosDBRoleAssignmentProxy;
}

Signature

methodcreateRoleAssignment
Invokes CreateRoleAssignment on the CosmosDBAccount provisioning model.
createRoleAssignment(
role: CosmosDBBuiltInRoleProxy,
principalType: BicepValueProxy | RoleManagementPrincipalType,
principalId: BicepValueProxy | guid,
bicepIdentifierSuffix: string): CosmosDBRoleAssignmentProxy
roleCosmosDBBuiltInRoleProxyThe role value.
principalTypeBicepValueProxy | RoleManagementPrincipalTypeThe principalType value.
principalIdBicepValueProxy | guidThe principalId value.
bicepIdentifierSuffixstringThe bicepIdentifierSuffix value.
CosmosDBRoleAssignmentProxy

Defined on

This method is defined on the following type: