Delen via


RoleAssignmentsOperationsExtensions.CreateAsync Methode

Definitie

Een roltoewijzing maken of bijwerken op bereik en naam.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment> CreateAsync (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string scope, string roleAssignmentName, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment>
<Extension()>
Public Function CreateAsync (operations As IRoleAssignmentsOperations, scope As String, roleAssignmentName As String, parameters As RoleAssignmentCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RoleAssignment)

Parameters

operations
IRoleAssignmentsOperations

De bewerkingsgroep voor deze extensiemethode.

scope
String

Het bereik van de bewerking of resource. Geldige bereiken zijn: abonnement (indeling: '/subscriptions/{subscriptionId}'), resourcegroep (indeling: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' of resource (indeling: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'

roleAssignmentName
String

De naam van de roltoewijzing. Dit kan elke geldige GUID zijn.

parameters
RoleAssignmentCreateParameters

Parameters voor de roltoewijzing.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Van toepassing op