Set-AzureADMSPrivilegedRoleAssignmentRequest

Update a role assignment request

Syntax

Set-AzureADMSPrivilegedRoleAssignmentRequest
   -ProviderId <String>
   -Id <String>
   [-Reason <String>]
   [-Decision <String>]
   [-Schedule <AzureADMSPrivilegedSchedule>]
   [-AssignmentState <String>]
   [<CommonParameters>]

Description

Update a role assignment request

Examples

Example 1

PS C:\> Set-AzureADMSPrivilegedRoleAssignmentRequest -ProviderId AzureResources -Id 8d28fcb3-1373-4810-8e84-75adea9a18be -Reason "{'RequestorReason':'test','AdminReason':'gg'}" -Decision "AdminDenied"

Update a role assignment request by setting to denied

Parameters

-AssignmentState

The state of assignment, and the values can be Eligible or Active. For decision of AdminApproved, it is required.

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

The administrator decision of the role assignment request. The value should be updated as AdminApproved or AdminDenied.

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

The unique identifier of the specific role assignment request

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-ProviderId

The unique identifier of the specific provider

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Reason

The reason provided by the administrator for his decision.

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

The schedule of the role assignment request. For status of AdminApproved, it is required.

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

Inputs

String

Outputs

Object