AuthorizationClient.CreateRoleDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.