Udostępnij za pośrednictwem


RoleAssignmentsOperationsExtensions.Create Metoda

Definicja

Utwórz lub zaktualizuj przypisanie roli według zakresu i nazwy.

public static Microsoft.Azure.Management.Authorization.Models.RoleAssignment Create (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string scope, string roleAssignmentName, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters);
static member Create : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters -> Microsoft.Azure.Management.Authorization.Models.RoleAssignment
<Extension()>
Public Function Create (operations As IRoleAssignmentsOperations, scope As String, roleAssignmentName As String, parameters As RoleAssignmentCreateParameters) As RoleAssignment

Parametry

operations
IRoleAssignmentsOperations

Grupa operacji dla tej metody rozszerzenia.

scope
String

Zakres operacji lub zasobu. Prawidłowe zakresy to: subskrypcja (format: "/subscriptions/{subscriptionId}"), grupa zasobów (format: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}" lub zasób (format: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}"

roleAssignmentName
String

Nazwa przypisania roli. Może to być dowolny prawidłowy identyfikator GUID.

parameters
RoleAssignmentCreateParameters

Parametry przypisania roli.

Zwraca

Dotyczy