Ändringar i Microsoft Graph-migreringen från Azure AD i Azure PowerShell
Az.Resources
PowerShell-modul version 5.1.0 av Azure PowerShell introducerar ändringar i de identitetsrelaterade cmdletarna. De cmdletar som förlitar sig på Azure AD Graph övergår till Microsoft Graph. Den här ändringen sker för att säkerställa en smidig övergång mot bakgrund av meddelande om tillbakadragandet av Azure AD Graph.
Mer information finns i Azure AD till Microsoft Graph-migrering för Azure-kommandoradsverktyg.
I följande exempel installeras den senaste versionen av Az.Resources
Azure PowerShell-modulen.
Install-Module -Name Az.Resources -Repository PSGallery -Scope CurrentUser
Se följande information för en lista över ändringar.
Applikation
Get-AzAdApplication
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Parameter
IncludeTotalCount
stöds inte och har tagits bort
New-AzAdApplication
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Parameter
Password
har tagits bort, anpassat lösenord stöds inte längre, servern tilldelar hemlig text när den skapas
Remove-AzAdApplication
- Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Update-AzAdApplication
Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
tillSystem.Boolean
Ändringar i programobjekt
ObjectId
har ersatts avId
HomePage
har ersatts avHomepageUrl
i elementetWeb
ApplicationId
har ersatts avAppId
AvailableToOtherTenants
(booleskt) har ersatts avSignInAudience
(sträng med 4 värden: "AzureADMyOrg", "AzureADMultipleOrgs", "AzureADandPersonalMicrosoftAccount", "PersonalMicrosoftAccount")AzureADMultipleOrgs motsvarar AvailableToOtherTenants:$true
AzureAdMyOrg motsvarar AvailableToOtherTenants:$false eller $null
ApiPermissions
har ersatts avRequiredResourceAccess
ReplyUrls
har ersatts avRedirectUris
i elementetWeb
ObjectType
har ersatts avOdataType
Programautentiseringsuppgifter
Get-AzAdAppCredential
Indatatypen för parametern
ApplicationObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
ochMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdAppCredential
Indatatypen för parametern
ApplicationObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
ochMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
Parametern
Password
har tagits bort, anpassat lösenord stöds inte längre, servern tilldelar hemlig text när den skapas
Remove-AzAdAppCredential
- Indatatypen för parametern
ApplicationObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Ändringar i appautentiseringsobjekt
Lösenordsuppgift
-
Password
har ersatts avSecretText
Nyckelautentiseringsuppgifter
-
CertValue
har tagits bort
ServicePrincipal
Get-AzAdServicePrincipal
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Parametern
IncludeTotalCount
stöds inte och har tagits bort.
New-AzAdServicePrincipal
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Parameteruppsättningen
ApplicationWithoutCredentialParameterSet
,ApplicationWithPasswordPlainParameterSet
,DisplayNameWithoutCredentialParameterSet
,DisplayNameWithPasswordPlainParameterSet
har tagits bort eftersom de ursprungliga parameteruppsättningarna inte fungerade.Roll
contributor
tilldelas inte som standard när parametern-Role
inte tillhandahålls på grund av säkerhetsöverväganden.Parametern
SkipAssignment
har tagits bort.
Remove-AzAdServicePrincipal
Indatatypen för parametern
ApplicationObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADApplication
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication
Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Update-AzAdServicePrincipal
Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillSystem.Boolean
Ändringar i tjänstehuvudobjektet
ApplicationId
har ersatts avAppId
ObjectType
har ersatts avOdataType
ServicePrincipal-referensuppgifter
Get-AzAdSpCredential
Indatatypen för parametern
ServicePrincipalObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
ochMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
New-AzAdSpCredential
Indatatypen för parametern
ServicePrincipalObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory. PSADCredential
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential
ochMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential
Remove-AzAdSpCredential
- Indatatypen för parametern
ServicePrincipalObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal
Ändringar i ServicePrincipal Credential Object
Lösenordsuppgifter
-
Password
har ersatts avSecretText
Nyckelautentiseringsuppgifter
-
CertValue
har tagits bort
Användare
Get-AzAdUser
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Parameter
IncludeTotalCount
stöds inte och har tagits bort
New-AzAdUser
- Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Remove-AzAdUser
- Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADUser
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Update-AzAdUser
Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADUser
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
tillSystem.Boolean
Ändringar i användarobjekt
ObjectType
har ersatts avOdataType
ImmutableId
har ersatts avOnpremisesImmutableId
Grupp
Get-AzAdGroup
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Parameter
IncludeTotalCount
stöds inte och har tagits bort
New-AzAdGroup
- Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Remove-AzAdGroup
- Indatatypen för parametern
InputObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Ändringar av gruppobjekt
-
ObjectType
har ersatts avOdataType
Gruppmedlem
Get-AzAdGroupMember
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADObject
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject
Parametern
IncludeTotalCount
har tagits bortIndatatypen för parametern
GroupObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Viktig
På grund av begränsningar med det aktuella Graph-API:et returneras inte tjänstens huvudnamn av Get-AzAdGroupMember
i Az 7.x. En lösning finns i Felsöka Az PowerShell-modulen.
Add-AzAdGroupMember
- Indatatypen för parametern
GroupObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Remove-AzAdGroupMember
- Indatatypen för parametern
GroupObject
har ändrats frånMicrosoft.Azure.Commands.ActiveDirectory.PSADGroup
tillMicrosoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup
Azure PowerShell