RoleAssignmentOperationsExtensions.CreateAsync(IRoleAssignmentOperations, String, Guid, RoleAssignmentCreateParameters) Method

Definition

Create role assignment.

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

Parameters

operations
IRoleAssignmentOperations

Reference to the Microsoft.Azure.Management.Authorization.IRoleAssignmentOperations.

scope
String

Required. Scope.

roleAssignmentName
Guid

Required. Role assignment name.

parameters
RoleAssignmentCreateParameters

Required. Role assignment.

Returns

Task<RoleAssignmentCreateResult>

Role assignments creation results

Applies to