Migration von Azure AD zu Microsoft Graph: Änderungen in Azure PowerShell
In der Version 5.1.0 des PowerShell-Moduls Az.Resources
von Azure PowerShell werden die identitätsbezogenen Cmdlets geändert. Die auf Azure AD Graph basierenden Cmdlets werden zu Microsoft Graph migriert. Diese Änderung dient dazu, vor dem Hintergrund der angekündigten Einstellung von Azure AD Graph eine reibungslose Umstellung zu gewährleisten.
Weitere Informationen finden Sie unter Migration von Azure AD zu Microsoft Graph für Azure-Befehlszeilentools.
Im folgenden Beispiel wird die neueste Version des Azure PowerShell-Moduls Az.Resources
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
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Parameter
IncludeTotalCount
wird nicht unterstützt und wurde entfernt.
New-AzAdApplication
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Parameter
Password
wurde entfernt. Es wird kein angepasstes Kennwort mehr unterstützt. Der Server weist bei der Erstellung geheimen Text zu.
Remove-AzAdApplication
- Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.
Update-AzAdApplication
Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
inSystem.Boolean
geändert.
Änderungen für das Anwendungsobjekt
ObjectId
wurde durchId
ersetzt.HomePage
wurde im ElementWeb
durchHomepageUrl
ersetzt.ApplicationId
wurde durchAppId
ersetzt.AvailableToOtherTenants
(boolescher Wert) wurde durchSignInAudience
(Zeichenfolge mit vier Werten: „AzureADMyOrg“, „AzureADMultipleOrgs“, „AzureADandPersonalMicrosoftAccount“ und „PersonalMicrosoftAccount“) ersetzt.„AzureADMultipleOrgs“ entspricht „AvailableToOtherTenants:$true“.
„AzureAdMyOrg“ entspricht „AvailableToOtherTenants:$false“ oder „AvailableToOtherTenants:$null“
ApiPermissions
wurde durchRequiredResourceAccess
ersetzt.ReplyUrls
wurde im ElementWeb
durchRedirectUris
ersetzt.ObjectType
wurde durchOdataType
ersetzt.
Anwendungsanmeldeinformationen
Get-AzAdAppCredential
Der Eingabetyp des Parameters
ApplicationObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Ausgabetyp
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
wurde geändert inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
undMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdAppCredential
Der Eingabetyp des Parameters
ApplicationObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Ausgabetyp
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
wurde geändert inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
undMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
Der Parameter
Password
wurde entfernt. Es wird kein angepasstes Kennwort mehr unterstützt. Der Server weist bei der Erstellung geheimen Text zu.
Remove-AzAdAppCredential
- Der Eingabetyp des Parameters
ApplicationObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.
Änderungen am App-Anmeldeinformationsobjekt
Kennwort in den Anmeldeinformationen
Password
wurde durchSecretText
ersetzt.
Schlüsselanmeldeinformation
CertValue
wurde entfernt.
ServicePrincipal
Get-AzAdServicePrincipal
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.Der Parameter
IncludeTotalCount
wird nicht unterstützt und wurde entfernt.
New-AzAdServicePrincipal
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.Die Parametersätze
ApplicationWithoutCredentialParameterSet
,ApplicationWithPasswordPlainParameterSet
,DisplayNameWithoutCredentialParameterSet
undDisplayNameWithPasswordPlainParameterSet
wurde entfernt, da diese ursprünglichen Parametersätze nicht funktioniert haben.Die Rolle
contributor
wird aus Sicherheitsgründen nicht als Standard zugewiesen, wenn der Parameter-Role
nicht angegeben wird.Der Parameter
SkipAssignment
wurde entfernt.
Remove-AzAdServicePrincipal
Der Eingabetyp des Parameters
ApplicationObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
geändert.Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.
Update-AzAdServicePrincipal
Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inSystem.Boolean
geändert.
Änderungen für das Dienstprinzipalobjekt
ApplicationId
wurde durchAppId
ersetzt.ObjectType
wurde durchOdataType
ersetzt.
Dienstprinzipal-Anmeldeinformationen
Get-AzAdSpCredential
Der Eingabetyp des Parameters
ServicePrincipalObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.Der Ausgabetyp
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
wurde geändert inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
undMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdSpCredential
Der Eingabetyp des Parameters
ServicePrincipalObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.Der Ausgabetyp
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
wurde geändert inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
undMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
Remove-AzAdSpCredential
- Der Eingabetyp des Parameters
ServicePrincipalObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
geändert.
Änderungen am ServicePrincipal-Anmeldeinformationsobjekt
Kennwort in den Anmeldeinformationen
Password
wurde durchSecretText
ersetzt.
Schlüsselanmeldeinformation
CertValue
wurde entfernt.
Benutzer
Get-AzAdUser
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
geändert.Der Parameter
IncludeTotalCount
wird nicht unterstützt und wurde entfernt.
New-AzAdUser
- Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
geändert.
Remove-AzAdUser
- Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADUser
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
geändert.
Update-AzAdUser
Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADUser
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
geändert.Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
inSystem.Boolean
geändert.
Änderungen für das Benutzerobjekt
ObjectType
wurde durchOdataType
ersetzt.ImmutableId
wurde durchOnpremisesImmutableId
ersetzt.
Group
Get-AzAdGroup
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.Der Parameter
IncludeTotalCount
wird nicht unterstützt und wurde entfernt.
New-AzAdGroup
- Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.
Remove-AzAdGroup
- Der Eingabetyp des Parameters
InputObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.
Änderungen für das Gruppenobjekt
ObjectType
wurde durchOdataType
ersetzt.
Gruppenmitglied
Get-AzAdGroupMember
Der Ausgabetyp wurde von
Microsoft.Azure.Commands.ActiveDirectory.PSADObject
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject
geändert.Der Parameter
IncludeTotalCount
wurde entfernt.Der Eingabetyp des Parameters
GroupObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.
Wichtig
Aufgrund von Einschränkungen bei der aktuellen Graph-API werden Dienstprinzipale in Az 7.x nicht von Get-AzAdGroupMember
zurückgegeben. Eine Problemumgehung finden Sie unter Problembehandlung für das Az PowerShell-Modul.
Add-AzAdGroupMember
- Der Eingabetyp des Parameters
GroupObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.
Remove-AzAdGroupMember
- Der Eingabetyp des Parameters
GroupObject
wurde vonMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
inMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
geändert.
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für