Freigeben über


RoleAssignmentsOperationsExtensions.CreateByIdAsync Methode

Definition

Erstellen oder aktualisieren Sie eine Rollenzuweisung nach ID.

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

Parameter

operations
IRoleAssignmentsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

roleAssignmentId
String

Die vollqualifizierte ID der Rollenzuweisung, einschließlich Bereich, Ressourcenname und Ressourcentyp. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Beispiel: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>

parameters
RoleAssignmentCreateParameters

Parameter für die Rollenzuweisung.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: