你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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