Share via


IRoleAssignmentOperations.CreateAsync Method

Definition

Create role assignment.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult> CreateAsync (string scope, Guid roleAssignmentName, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Guid * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateResult>
Public Function CreateAsync (scope As String, roleAssignmentName As Guid, parameters As RoleAssignmentCreateParameters, cancellationToken As CancellationToken) As Task(Of RoleAssignmentCreateResult)

Parameters

scope
String

Scope.

roleAssignmentName
Guid

Role assignment name.

parameters
RoleAssignmentCreateParameters

Role assignment.

cancellationToken
CancellationToken

Cancellation token.

Returns

Role assignments creation results

Applies to