Share via


AuthorizationClient.CreateRoleAssignment Method

Definition

Overloads

CreateRoleAssignment(FilterRoleAssignmentsOptions)
CreateRoleAssignment(FilterRoleAssignmentsOptions, Guid)

Creates new role assignment.

CreateRoleAssignment(FilterRoleAssignmentsOptions)

public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment CreateRoleAssignment (Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions parameters);
member this.CreateRoleAssignment : Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment
Public Function CreateRoleAssignment (parameters As FilterRoleAssignmentsOptions) As PSRoleAssignment

Parameters

Returns

Applies to

CreateRoleAssignment(FilterRoleAssignmentsOptions, Guid)

Creates new role assignment.

public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment CreateRoleAssignment (Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions parameters, Guid roleAssignmentId = default);
member this.CreateRoleAssignment : Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions * Guid -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment
Public Function CreateRoleAssignment (parameters As FilterRoleAssignmentsOptions, Optional roleAssignmentId As Guid = Nothing) As PSRoleAssignment

Parameters

parameters
FilterRoleAssignmentsOptions

The create parameters

roleAssignmentId
Guid

The name of the role assignment. It can be any valid GUID.

Returns

The created role assignment object

Applies to