PIM PowerShell for Azure Resources Migration Guidance
The following table provides guidance on using the new PowerShell cmdlts in the newer Azure PowerShell module.
New cmdlts in the Azure PowerShell module
Old AzureADPreview cmd | New Az cmd equivalent | Description |
---|---|---|
Get-AzureADMSPrivilegedResource | Get-AzResource | Get resources |
Get-AzureADMSPrivilegedRoleDefinition | Get-AzRoleDefinition | Get role definitions |
Get-AzureADMSPrivilegedRoleSetting | Get-AzRoleManagementPolicy | Get the specified role management policy for a resource scope |
Set-AzureADMSPrivilegedRoleSetting | Update-AzRoleManagementPolicy | Update a rule defined for a role management policy |
Open-AzureADMSPrivilegedRoleAssignmentRequest | New-AzRoleAssignmentScheduleRequest | Used for Assignment Requests Create role assignment schedule request |
Open-AzureADMSPrivilegedRoleAssignmentRequest | New-AzRoleEligibilityScheduleRequest | Used for Eligibility Requests Create role eligibility schedule request |
Next steps
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for