Migratiewijzigingen in Azure AD naar Microsoft Graph in Azure PowerShell

De Az.Resources PowerShell-module versie 5.1.0 van Azure PowerShell introduceert wijzigingen in de identiteitsgerelateerde cmdlets. De cmdlets die afhankelijk zijn van Azure AD Graph, worden overgestapt op Microsoft Graph. Deze wijziging vindt plaats om een soepele overgang te garanderen in het licht van de aankondiging van de buitengebruikstelling van Azure AD Graph. Zie Azure AD naar Microsoft Graph-migratie voor Azure-opdrachtregelprogramma's voor meer informatie.

In het volgende voorbeeld wordt de nieuwste versie van de Az.Resources Azure PowerShell-module geïnstalleerd.

Install-Module -Name Az.Resources -Repository PSGallery -Scope CurrentUser

Zie de volgende informatie voor een lijst met wijzigingen.

Toepassing

Get-AzAdApplication

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Parameter IncludeTotalCount wordt niet ondersteund en is verwijderd

New-AzAdApplication

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Parameter Password is verwijderd, aangepast wachtwoord wordt niet meer ondersteund, server wijst geheime tekst toe bij het maken

Remove-AzAdApplication

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Update-AzAdApplication

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in System.Boolean

Wijzigingen in toepassingsobject

  • ObjectId is vervangen door Id

  • HomePage is vervangen door HomepageUrl het Web element

  • ApplicationId is vervangen door AppId

  • AvailableToOtherTenants (Booleaanse waarde) is vervangen door SignInAudience (tekenreeks met 4 waarden: 'AzureADMyOrg', 'AzureADMultipleOrgs', 'AzureADandPersonalMicrosoftAccount', 'PersonalMicrosoftAccount')

    • AzureADMultipleOrgs is gelijk aan AvailableToOtherTenants:$true

    • AzureAdMyOrg is gelijk aan AvailableToOtherTenants:$false of $null

  • ApiPermissions is vervangen door RequiredResourceAccess

  • ReplyUrls is vervangen door RedirectUris het Web element

  • ObjectType is vervangen door OdataType

Toepassingsreferenties

Get-AzAdAppCredential

  • Invoertype van parameter ApplicationObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory. PSADCredential in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential en Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdAppCredential

  • Invoertype van parameter ApplicationObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory. PSADCredential in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential en Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

  • Parameter Password is verwijderd, aangepast wachtwoord wordt niet meer ondersteund, server wijst geheime tekst toe bij het maken

Remove-AzAdAppCredential

  • Invoertype van parameter ApplicationObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Wijzigingen in app-referentieobject

Wachtwoordreferenties

  • Password is vervangen door SecretText

Sleutelreferentie

  • CertValue Verwijderd

ServicePrincipal

Get-AzAdServicePrincipal

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Parameter IncludeTotalCount wordt niet ondersteund en is verwijderd.

New-AzAdServicePrincipal

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • De parameterset ApplicationWithoutCredentialParameterSet, , ApplicationWithPasswordPlainParameterSet, DisplayNameWithoutCredentialParameterSetDisplayNameWithPasswordPlainParameterSet is verwijderd omdat deze oorspronkelijke parametersets niet werken.

  • De rol contributor wordt niet als standaard toegewezen wanneer de parameter -Role niet wordt opgegeven vanwege beveiligingsoverweging.

  • Parameter SkipAssignment is verwijderd.

Remove-AzAdServicePrincipal

  • Invoertype van parameter ApplicationObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADApplication in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Update-AzAdServicePrincipal

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in System.Boolean

Wijzigingen in service-principal-object

  • ApplicationId is vervangen door AppId

  • ObjectType is vervangen door OdataType

ServicePrincipal Credential

Get-AzAdSpCredential

  • Invoertype van parameter ServicePrincipalObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory. PSADCredential in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential en Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdSpCredential

  • Invoertype van parameter ServicePrincipalObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory. PSADCredential in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential en Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

Remove-AzAdSpCredential

  • Invoertype van parameter ServicePrincipalObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Wijzigingen in ServicePrincipal Credential Object

Wachtwoordreferenties

  • Password is vervangen door SecretText

Sleutelreferentie

  • CertValue Verwijderd

User

Get-AzAdUser

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADUser in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Parameter IncludeTotalCount wordt niet ondersteund en is verwijderd

New-AzAdUser

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADUser in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Remove-AzAdUser

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADUser in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Update-AzAdUser

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADUser in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADUser in System.Boolean

Wijzigingen in gebruikersobject

  • ObjectType is vervangen door OdataType

  • ImmutableId is vervangen door OnpremisesImmutableId

Groep

Get-AzAdGroup

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

  • Parameter IncludeTotalCount wordt niet ondersteund en is verwijderd

New-AzAdGroup

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroup

  • Invoertype van parameter InputObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Wijzigingen van groepsobject

  • ObjectType is vervangen door OdataType

Groepslid

Get-AzAdGroupMember

  • Het uitvoertype is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADObject in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject

  • Parameter IncludeTotalCount is verwijderd

  • Invoertype van parameter GroupObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Belangrijk

Vanwege beperkingen met de huidige Graph API worden service-principals niet geretourneerd in Get-AzAdGroupMember Az 7.x. Zie Probleemoplossing voor de Az PowerShell-module voor een tijdelijke oplossing.

Add-AzAdGroupMember

  • Invoertype van parameter GroupObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroupMember

  • Invoertype van parameter GroupObject is gewijzigd van Microsoft.Azure.Commands.ActiveDirectory.PSADGroup in Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup