Set-AzureADMSRoleDefinition

Update an existing Azure AD role definition.

Syntax

Set-AzureADMSRoleDefinition
   -Id <String>
   [-Description <String>]
   [-DisplayName <String>]
   [-ResourceScopes <System.Collections.Generic.List`1[System.String]>]
   [-IsEnabled <Boolean>]
   [-RolePermissions <System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RolePermission]>]
   [-TemplateId <String>]
   [-Version <String>]
   [<CommonParameters>]

Description

The Set-AzureADMSRoleDefinition cmdlet sets a role definition in Azure Active Directory (Azure AD).

Examples

Example 1

PS C:\> Set-AzureADMSRoleDefinition -ID c466024e-f789-4409-a897-d220916814b1 -DisplayName 'UpdatedDisplayName'

This command updates the specified role definition in Azure AD.

Parameters

-Description

Specifies a description for the role definition.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Specifies a display name for the role definition.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Specifies the ID for the role definition.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-IsEnabled

Specifies whether the role definition is enabled.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceScopes

Specifies the resource scopes for the role definition.

Type:List<T>[String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RolePermissions

Specifies permissions for the role definition.

Type:List<T>[Microsoft.Open.MSGraph.Model.RolePermission]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TemplateId

Specifies template id for the role definition.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Version

Specifies version for the role definition.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

string

Notes

See the migration guide for Set-AzureADMSRoleDefinition to the Microsoft Graph PowerShell.