Ä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
tillMicrosoft.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
tillMicrosoft.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å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 värde) 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ösenordsautentiseringsuppgifter
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.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å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änstens huvudnamnsobjekt
ApplicationId
har ersatts avAppId
ObjectType
har ersatts avOdataType
ServicePrincipal Credential
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ösenordsautentiseringsuppgifter
Password
har ersatts avSecretText
Nyckelautentiseringsuppgifter
CertValue
har tagits bort
User
Get-AzAdUser
Utdatatypen har ändrats från
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
tillMicrosoft.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
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
Parametern
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
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å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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för