Edit

Share via


Remove-AzureADMSRoleAssignment

Removes an Azure AD role assignment.

Syntax

Default (Default)

Remove-AzureADMSRoleAssignment
    -Id <String>
    [<CommonParameters>]

Description

The Remove-AzureADMSRoleAssignment cmdlet removes a role assignment from Azure Active Directory (Azure AD).

Examples

Example 1

PS C:\> Remove-AzureADMSRoleAssignment -Id Y1vFBcN4i0e3ngdNDocmngJAWGnAbFVAnJQyBBLv1lM-1

Removes the specified role assignment from Azure AD.

Parameters

-Id

Specifies the ID for role assignment.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

string

Notes

See the migration guide for Remove-AzureADMSRoleAssignment to the Microsoft Graph PowerShell.