Freigeben über


Azure AD zu Microsoft Graph-Migrationsänderungen in Azure PowerShell

Das Az.Resources PowerShell-Modul, Version 5.1.0 von Azure PowerShell, führt Änderungen an den identitätsbezogenen Cmdlets ein. Die Cmdlets, die auf Azure AD Graph basieren, wechseln zu Microsoft Graph. Diese Änderung erfolgt, um einen reibungslosen Übergang im Lichte der Ankündigung der Einstellung von Azure AD Graph sicherzustellen. Weitere Informationen finden Sie unter Azure AD zu Microsoft Graph-Migration für Azure-Befehlszeilentools.

Im folgenden Beispiel wird die neueste Version des Az.Resources Azure PowerShell-Moduls installiert.

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

Eine Liste der Änderungen finden Sie in den folgenden Informationen.

Application

Get-AzAdApplication

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Der Parameter IncludeTotalCount wird nicht unterstützt und wurde entfernt.

New-AzAdApplication

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Parameter Password wurde entfernt, angepasstes Kennwort wird nicht mehr unterstützt, Server weist beim Erstellen geheimen Text zu

Remove-AzAdApplication

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Update-AzAdApplication

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADApplicationSystem.Boolean

Änderungen am Application-Objekt

  • ObjectId wurde ersetzt durch Id

  • HomePage wurde durch HomepageUrl das Web Element ersetzt.

  • ApplicationId wurde ersetzt durch AppId

  • AvailableToOtherTenants (boolean) wurde durch (Zeichenfolge mit 4 Werten: 'AzureADMyOrg', 'AzureADMultipleOrgs', 'AzureADandPersonalMicrosoftAccount', 'PersonalMicrosoftAccount') ersetzt SignInAudience .

    • AzureADMultipleOrgs entspricht "AvailableToOtherTenants:$true

    • AzureAdMyOrg entspricht availableToOtherTenants:$false oder $null

  • ApiPermissions wurde ersetzt durch RequiredResourceAccess

  • ReplyUrls wurde durch RedirectUris das Web Element ersetzt.

  • ObjectType wurde ersetzt durch OdataType

Anwendungsanmeldeinformationen

Get-AzAdAppCredential

  • Der Eingabetyp des Parameters ApplicationObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory. PSADCredential Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential und Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdAppCredential

  • Der Eingabetyp des Parameters ApplicationObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory. PSADCredential Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential und Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

  • Parameter Password wurde entfernt, angepasstes Kennwort wird nicht mehr unterstützt, Server weist beim Erstellen geheimen Text zu.

Remove-AzAdAppCredential

  • Der Eingabetyp des Parameters ApplicationObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Änderungen am App-Anmeldeinformationsobjekt

Kennwortanmeldeinformationen

  • Password wurde ersetzt durch SecretText

Schlüsselanmeldeinformationen

  • CertValue wurde entfernt.

ServicePrincipal

Get-AzAdServicePrincipal

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipalMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Der Parameter IncludeTotalCount wird nicht unterstützt und wurde entfernt.

New-AzAdServicePrincipal

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipalMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Parametersatz ApplicationWithoutCredentialParameterSet, ApplicationWithPasswordPlainParameterSet, DisplayNameWithoutCredentialParameterSet, DisplayNameWithPasswordPlainParameterSet wurden entfernt, da diese ursprünglichen Parametersätze nicht funktionieren.

  • Die Rolle contributor wird nicht als Standard zugewiesen, wenn der Parameter -Role aufgrund der Sicherheitsüberlegung nicht bereitgestellt wird.

  • Der Parameter SkipAssignment wurde entfernt.

Remove-AzAdServicePrincipal

  • Der Eingabetyp des Parameters ApplicationObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADApplication zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Update-AzAdServicePrincipal

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipalSystem.Boolean

Änderungen am Dienstprinzipalobjekt

  • ApplicationId wurde ersetzt durch AppId

  • ObjectType wurde ersetzt durch OdataType

ServicePrincipal-Anmeldeinformationen

Get-AzAdSpCredential

  • Der Eingabetyp des Parameters ServicePrincipalObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory. PSADCredential Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential und Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdSpCredential

  • Der Eingabetyp des Parameters ServicePrincipalObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory. PSADCredential Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential und Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

Remove-AzAdSpCredential

  • Der Eingabetyp des Parameters ServicePrincipalObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Änderungen am ServicePrincipal-Anmeldeinformationsobjekt

Kennwortanmeldeinformationen

  • Password wurde ersetzt durch SecretText

Schlüsselanmeldeinformationen

  • CertValue wurde entfernt.

Benutzer

Get-AzAdUser

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADUserMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Der Parameter IncludeTotalCount wird nicht unterstützt und wurde entfernt.

New-AzAdUser

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADUserMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Remove-AzAdUser

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADUser zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Update-AzAdUser

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADUser zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADUserSystem.Boolean

Änderungen am Benutzerobjekt

  • ObjectType wurde ersetzt durch OdataType

  • ImmutableId wurde ersetzt durch OnpremisesImmutableId

Gruppe

Get-AzAdGroup

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADGroupMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

  • Der Parameter IncludeTotalCount wird nicht unterstützt und wurde entfernt.

New-AzAdGroup

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADGroupMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroup

  • Der Eingabetyp des Parameters InputObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADGroup zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Änderungen des Group-Objekts

  • ObjectType wurde ersetzt durch OdataType

Mitglied der Gruppe

Get-AzAdGroupMember

  • Der Ausgabetyp wurde von "In" in "Geändert"Microsoft.Azure.Commands.ActiveDirectory.PSADObjectMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject

  • Parameter IncludeTotalCount wurde entfernt

  • Der Eingabetyp des Parameters GroupObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADGroup zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Von Bedeutung

Aufgrund von Einschränkungen mit der aktuellen Graph-API werden Dienstprinzipale in Az 7.x nicht zurückgegeben Get-AzAdGroupMember . Eine Problemumgehung finden Sie unter Problembehandlung für das Az PowerShell-Modul.

Add-AzAdGroupMember

  • Der Eingabetyp des Parameters GroupObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADGroup zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroupMember

  • Der Eingabetyp des Parameters GroupObject wurde von Microsoft.Azure.Commands.ActiveDirectory.PSADGroup zu Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup