Partager via


AuthorizationClient.CreateRoleDefinition Method

Definition

Overloads

CreateRoleDefinition(PSRoleDefinition)
CreateRoleDefinition(PSRoleDefinition, Guid)

Creates a new role definition.

CreateRoleDefinition(PSRoleDefinition)

public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition CreateRoleDefinition (Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition);
member this.CreateRoleDefinition : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition
Public Function CreateRoleDefinition (roleDefinition As PSRoleDefinition) As PSRoleDefinition

Parameters

roleDefinition
PSRoleDefinition

Returns

Applies to

CreateRoleDefinition(PSRoleDefinition, Guid)

Creates a new role definition.

public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition CreateRoleDefinition (Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition, Guid roleDefinitionId = default);
member this.CreateRoleDefinition : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition * Guid -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition
Public Function CreateRoleDefinition (roleDefinition As PSRoleDefinition, Optional roleDefinitionId As Guid = Nothing) As PSRoleDefinition

Parameters

roleDefinition
PSRoleDefinition

The role definition to create.

roleDefinitionId
Guid

The role definition id to create.

Returns

The created role definition.

Applies to