Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Az.Resources PowerShell module version 5.1.0 of Azure PowerShell introduces changes to
the identity-related cmdlets. The cmdlets that rely on Azure AD Graph are transitioning to Microsoft
Graph. This change is occurring to ensure a smooth transition in light of the
announcement of the retirement of Azure AD Graph.
For more information, see
Azure AD to Microsoft Graph migration for Azure command line tools.
The following example installs the latest version of the Az.Resources Azure PowerShell module.
Install-Module -Name Az.Resources -Repository PSGallery -Scope CurrentUser
See the following information for a list of changes.
Application
Get-AzAdApplication
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationParameter
IncludeTotalCountis not supported and has been removed
New-AzAdApplication
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationParameter
Passwordhas been removed, customized password is not supported anymore, server assigns secret text when creation
Remove-AzAdApplication
- Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Update-AzAdApplication
Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationtoSystem.Boolean
Changes to Application Object
ObjectIdhas been replaced byIdHomePagehas been replaced byHomepageUrlin theWebelementApplicationIdhas been replaced byAppIdAvailableToOtherTenants(boolean) has been replaced bySignInAudience(string with 4 values: 'AzureADMyOrg', 'AzureADMultipleOrgs', 'AzureADandPersonalMicrosoftAccount', 'PersonalMicrosoftAccount')AzureADMultipleOrgs is equivalent to AvailableToOtherTenants:$true
AzureAdMyOrg is equivalent to AvailableToOtherTenants:$false or $null
ApiPermissionshas been replaced byRequiredResourceAccessReplyUrlshas been replaced byRedirectUrisin theWebelementObjectTypehas been replaced byOdataType
Application Credential
Get-AzAdAppCredential
Input type of parameter
ApplicationObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory. PSADCredentialtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredentialandMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdAppCredential
Input type of parameter
ApplicationObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory. PSADCredentialtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredentialandMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredentialParameter
Passwordhas been removed, customized password is not supported anymore, server will assign secret text when creation
Remove-AzAdAppCredential
- Input type of parameter
ApplicationObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Changes to App Credential Object
Password Credential
Passwordhas been replaced bySecretText
Key Credential
CertValuehas been Removed
ServicePrincipal
Get-AzAdServicePrincipal
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipalParameter
IncludeTotalCountis not supported and has been removed.
New-AzAdServicePrincipal
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipalParameter set
ApplicationWithoutCredentialParameterSet,ApplicationWithPasswordPlainParameterSet,DisplayNameWithoutCredentialParameterSet,DisplayNameWithPasswordPlainParameterSethave been removed because those original parameter sets were not functioning.Role
contributoris not assigned as default when parameter-Roleis not provided due to security consideration.Parameter
SkipAssignmenthas been removed.
Remove-AzAdServicePrincipal
Input type of parameter
ApplicationObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADApplicationtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplicationInput type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Update-AzAdServicePrincipal
Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipalOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoSystem.Boolean
Changes to Service Principal Object
ApplicationIdhas been replaced byAppIdObjectTypehas been replaced byOdataType
ServicePrincipal Credential
Get-AzAdSpCredential
Input type of parameter
ServicePrincipalObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipalOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory. PSADCredentialtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredentialandMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdSpCredential
Input type of parameter
ServicePrincipalObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipalOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory. PSADCredentialtoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredentialandMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
Remove-AzAdSpCredential
- Input type of parameter
ServicePrincipalObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipaltoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Changes to ServicePrincipal Credential Object
Password Credential
Passwordhas been replaced bySecretText
Key Credential
CertValuehas been Removed
User
Get-AzAdUser
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADUsertoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUserParameter
IncludeTotalCountis not supported and has been removed
New-AzAdUser
- Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADUsertoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Remove-AzAdUser
- Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADUsertoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Update-AzAdUser
Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADUsertoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUserOutput type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADUsertoSystem.Boolean
Changes to User Object
ObjectTypehas been replaced byOdataTypeImmutableIdhas been replaced byOnpremisesImmutableId
Group
Get-AzAdGroup
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroupParameter
IncludeTotalCountis not supported and has been removed
New-AzAdGroup
- Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Remove-AzAdGroup
- Input type of parameter
InputObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Changes of Group Object
ObjectTypehas been replaced byOdataType
Group member
Get-AzAdGroupMember
Output type has been changed from
Microsoft.Azure.Commands.ActiveDirectory.PSADObjecttoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObjectParameter
IncludeTotalCountwas removedInput type of parameter
GroupObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Important
Due to limitations with the current Graph API, service principals are not returned by
Get-AzAdGroupMember in Az 7.x. For a workaround, see
Troubleshooting the Az PowerShell module.
Add-AzAdGroupMember
- Input type of parameter
GroupObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Remove-AzAdGroupMember
- Input type of parameter
GroupObjecthas been changed fromMicrosoft.Azure.Commands.ActiveDirectory.PSADGrouptoMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Azure PowerShell