Ändringar i Azure AD till Microsoft Graph-migrering i Azure PowerShell

Az.Resources PowerShell-modulen 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 meddelandet om att Azure AD Graph har upphört att fungera. 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.

Program

Get-AzAdApplication

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Parametern IncludeTotalCount stöds inte och har tagits bort

New-AzAdApplication

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Parametern 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ån Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Update-AzAdApplication

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till System.Boolean

Ändringar i programobjekt

  • ObjectId har ersatts av Id

  • HomePagehar ersatts av HomepageUrl i elementet Web

  • ApplicationId har ersatts av AppId

  • AvailableToOtherTenants (booleskt värde) har ersatts av SignInAudience (sträng med 4 värden: "AzureADMyOrg", "AzureADMultipleOrgs", "AzureADandPersonalMicrosoftAccount", "PersonalMicrosoftAccount")

    • AzureADMultipleOrgs motsvarar AvailableToOtherTenants:$true

    • AzureAdMyOrg motsvarar AvailableToOtherTenants:$false eller $null

  • ApiPermissions har ersatts av RequiredResourceAccess

  • ReplyUrlshar ersatts av RedirectUris i elementet Web

  • ObjectType har ersatts av OdataType

Programautentiseringsuppgifter

Get-AzAdAppCredential

  • Indatatypen för parametern ApplicationObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory. PSADCredential till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential och Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdAppCredential

  • Indatatypen för parametern ApplicationObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory. PSADCredential till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential och Microsoft.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ån Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

Ändringar i appautentiseringsobjekt

Lösenordsautentiseringsuppgifter

  • Password har ersatts av SecretText

Nyckelautentiseringsuppgifter

  • CertValue har tagits bort

ServicePrincipal

Get-AzAdServicePrincipal

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.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 till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Parameteruppsättningen ApplicationWithoutCredentialParameterSet, ApplicationWithPasswordPlainParameterSet, DisplayNameWithoutCredentialParameterSet, DisplayNameWithPasswordPlainParameterSet har tagits bort eftersom de ursprungliga parameteruppsättningarna inte fungerade.

  • Rollen 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ån Microsoft.Azure.Commands.ActiveDirectory.PSADApplication till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Update-AzAdServicePrincipal

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till System.Boolean

Ändringar i tjänstens huvudnamnsobjekt

  • ApplicationId har ersatts av AppId

  • ObjectType har ersatts av OdataType

ServicePrincipal Credential

Get-AzAdSpCredential

  • Indatatypen för parametern ServicePrincipalObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory. PSADCredential till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential och Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

New-AzAdSpCredential

  • Indatatypen för parametern ServicePrincipalObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory. PSADCredential till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphKeyCredential och Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordCredential

Remove-AzAdSpCredential

  • Indatatypen för parametern ServicePrincipalObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal

Ändringar i ServicePrincipal Credential Object

Lösenordsautentiseringsuppgifter

  • Password har ersatts av SecretText

Nyckelautentiseringsuppgifter

  • CertValue har tagits bort

User

Get-AzAdUser

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADUser till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Parametern IncludeTotalCount stöds inte och har tagits bort

New-AzAdUser

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADUser till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Remove-AzAdUser

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADUser till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

Update-AzAdUser

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADUser till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADUser till System.Boolean

Ändringar i användarobjekt

  • ObjectType har ersatts av OdataType

  • ImmutableId har ersatts av OnpremisesImmutableId

Grupp

Get-AzAdGroup

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

  • Parametern IncludeTotalCount stöds inte och har tagits bort

New-AzAdGroup

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroup

  • Indatatypen för parametern InputObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Ändringar av gruppobjekt

  • ObjectType har ersatts av OdataType

Gruppmedlem

Get-AzAdGroupMember

  • Utdatatypen har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADObject till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject

  • Parametern IncludeTotalCount har tagits bort

  • Indatatypen för parametern GroupObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Viktigt!

På grund av begränsningar med det aktuella Graph-API:et returneras inte tjänstens huvudnamn i Get-AzAdGroupMember Az 7.x. En lösning finns i Felsöka Az PowerShell-modulen.

Add-AzAdGroupMember

  • Indatatypen för parametern GroupObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup

Remove-AzAdGroupMember

  • Indatatypen för parametern GroupObject har ändrats från Microsoft.Azure.Commands.ActiveDirectory.PSADGroup till Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup