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 |