Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

Az.Migrate - Get-AzMigrateDiscoveredServer key has already been added. Key: serversOnWindows #14733

Open pmsousa opened 3 years ago

pmsousa commented 3 years ago

Description

Executing Get-AzMigrateSolution, regardless of Pwsh 7.1 or 7.2, returns the error about key already added.

An item with the same key has already been added. Key: serversOnWindows

Steps to reproduce

Get-AzMigrateDiscoveredServer -SubscriptionId $subscriptionID -ProjectName $MigrateProjectName -ResourceGroupName $ResourceGroupName -ApplianceName $ApplianceName

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions


    Directory: D:\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     5.7.0                 Az                                  Core,Desk
Script     5.5.0                 Az                                  Core,Desk
Script     2.2.7                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo… 
Script     2.2.5                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo…
Script     1.1.1                 Az.Advisor                          Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendat… 
Script     2.0.2                 Az.Aks                              Core,Desk {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential…}
Script     1.1.4                 Az.AnalysisServices                 Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServices…
Script     2.2.0                 Az.ApiManagement                    Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProd… 
Script     1.0.0                 Az.AppConfiguration                 Core,Desk {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore,…
Script     1.1.0                 Az.ApplicationInsights              Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Updat… 
Script     1.5.2                 Az.Automation                       Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation…
Script     1.4.3                 Az.Automation                       Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation…
Script     3.1.0                 Az.Batch                            Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…}     
Script     2.0.0                 Az.Billing                          Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudg… 
Script     1.6.0                 Az.Cdn                              Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…}
Script     1.8.0                 Az.CognitiveServices                Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveService… 
Script     4.10.0                Az.Compute                          Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi…
Script     4.9.0                 Az.Compute                          Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi… 
Script     1.0.3                 Az.ContainerInstance                Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInsta…
Script     2.2.1                 Az.ContainerRegistry                Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo… 
Script     2.2.0                 Az.ContainerRegistry                Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo…
Script     1.1.0                 Az.CosmosDB                         Core,Desk {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDataba… 
Script     1.1.0                 Az.DataBoxEdge                      Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxE… 
Script     1.1.0                 Az.Databricks                       Core,Desk {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-…
Script     1.11.5                Az.DataFactory                      Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…}
Script     1.0.2                 Az.DataLakeAnalytics                Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDat… 
Script     1.3.0                 Az.DataLakeStore                    Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzD…
Script     1.0.0                 Az.DataShare                        Core,Desk {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShar…
Script     1.1.0                 Az.DeploymentManager                Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeplo…
Script     2.1.1                 Az.DesktopVirtualization            Core,Desk {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplic… 
Script     2.0.0                 Az.DesktopVirtualization            Core,Desk {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDe… 
Script     1.0.2                 Az.DevTestLabs                      Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get…
Script     1.1.2                 Az.Dns                              Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…}
Script     1.3.0                 Az.EventGrid                        Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey…
Script     1.7.2                 Az.EventHub                         Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent… 
Script     1.7.1                 Az.EventHub                         Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent…
Script     1.7.0                 Az.FrontDoor                        Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script     2.0.0                 Az.Functions                        Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunct… 
Script     4.2.0                 Az.HDInsight                        Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsig…
Script     1.2.0                 Az.HealthcareApis                   Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService,…
Script     2.7.3                 Az.IotHub                           Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzI… 
Script     3.4.1                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… 
Script     3.4.0                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat…
Script     3.3.0                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat…
Script     3.0.0                 Az.KeyVault                         Core,Desk {Add-AzManagedHsmKey, Get-AzManagedHsmKey, Remove-AzManagedHsmKey, Undo-AzManagedHsmKeyRem… 
Script     1.0.1                 Az.Kusto                            Core,Desk {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDat…
Script     1.5.0                 Az.LogicApp                         Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAcc…
Script     1.1.3                 Az.MachineLearning                  Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsag…
Script     1.1.0                 Az.Maintenance                      Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzM…
Script     2.0.0                 Az.ManagedServices                  Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedService… 
Script     1.0.2                 Az.MarketplaceOrdering              Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.1.1                 Az.Media                            Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaS…
Script     1.0.1                 Az.Migrate                          Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli…
Script     1.0.0                 Az.Migrate                          Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli… 
Script     2.4.0                 Az.Monitor                          Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…}
Script     4.7.0                 Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication…
Script     4.6.0                 Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication…
Script     1.1.1                 Az.NotificationHubs                 Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListK…
Script     2.3.0                 Az.OperationalInsights              Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDa…
Script     1.4.1                 Az.PolicyInsights                   Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…}
Script     1.1.2                 Az.PowerBIEmbedded                  Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorks…
Script     1.0.3                 Az.PrivateDns                       Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone…
Script     3.5.0                 Az.RecoveryServices                 Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices…
Script     3.4.0                 Az.RecoveryServices                 Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices… 
Script     1.4.0                 Az.RedisCache                       Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSch…
Script     1.0.0                 Az.RedisEnterpriseCache             Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheData…
Script     1.0.3                 Az.Relay                            Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace… 
Script     0.9.0                 Az.Reservations                     Core,Desk {Get-AzReservationOrder, Get-AzReservation, Get-AzReservationHistory, Update-AzReservation…
Script     0.8.0                 Az.ResourceGraph                    Core,Desk {Search-AzGraph, Get-AzResourceGraphQuery, New-AzResourceGraphQuery, Remove-AzResourceGrap…
Script     3.4.0                 Az.Resources                        Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm…
Script     3.2.1                 Az.Resources                        Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm…
Script     1.5.0                 Az.ServiceBus                       Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A… 
Script     1.4.1                 Az.ServiceBus                       Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A…
Script     2.3.0                 Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic… 
Script     2.2.2                 Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic…
Script     1.2.0                 Az.SignalR                          Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script     2.17.0                Az.Sql                              Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… 
Script     2.16.0                Az.Sql                              Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… 
Script     1.1.0                 Az.SqlVirtualMachine                Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…}
Script     3.5.0                 Az.Storage                          Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount…
Script     3.3.0                 Az.Storage                          Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount… 
Script     1.4.0                 Az.StorageSync                      Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncServic…
Script     1.0.1                 Az.StreamAnalytics                  Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStre…
Script     1.0.0                 Az.Support                          Core,Desk {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupp…
Script     1.0.4                 Az.TrafficManager                   Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoi…
Script     2.5.0                 Az.Websites                         Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan…
Script     2.3.0                 Az.Websites                         Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan…
Binary     2.0.2.128             AzureAD                             Desk      
Script     2.0.4      Preview6   ExchangeOnlineManagement            Desk      {Get-EXOCasMailbox, Get-EXOMailbox, Get-EXOMailboxFolderPermission, Get-EXOMailboxFolderSt… 
Binary     1.0.1932.…            Microsoft.RDInfra.RDPowershell      Desk      {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…}
Manifest   1.1.183.57            MSOnline                            Desk
Script     3.33.1     beta       oh-my-posh                          Desk      {Get-PoshThemes, Set-PoshPrompt, Write-PoshTheme, Set-PoshContext}
Script     2.0.487               oh-my-posh                          Desk      {Write-ColorPreview, Show-Colors, Show-ThemeColors, Show-ThemeSymbols…}
Script     3.0.10                PartnerCenter                       Core,Desk {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCenter…
Script     0.7.3                 posh-git                            Desk      {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatus…}
Script     2.2.0      beta2      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe…

    Directory: C:\program files\powershell\7\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   7.0.0.0               CimCmdlets                          Core      {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…}
Manifest   1.2.5                 Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-Archive}
Manifest   7.0.0.0               Microsoft.PowerShell.Diagnostics    Core      {Get-WinEvent, New-WinEvent, Get-Counter}
Manifest   7.0.0.0               Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Transcript}
Manifest   7.0.0.0               Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content, Get-Clipboard, Set-Clipboard…}
Manifest   7.0.0.0               Microsoft.PowerShell.Security       Core      {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…}
Manifest   7.0.0.0               Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Manifest   7.0.0.0               Microsoft.WSMan.Management          Core      {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig…}        
Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script     2.0.5                 PSDesiredStateConfiguration         Core      {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource}
Script     7.0.0.0               PSDiagnostics                       Core      {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace…}        
Binary     2.0.3                 ThreadJob                           Desk      Start-ThreadJob

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     2.0.2.128             AzureAD                             Desk
Script     1.0.1                 Microsoft.PowerShell.Operation.Val… Desk      {Get-OperationValidation, Invoke-OperationValidation}
Binary     1.0.1932.…            Microsoft.RDInfra.RDPowershell      Desk      {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…}
Manifest   1.1.183.57            MSOnline                            Desk
Binary     1.0.0.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     3.4.0                 Pester                              Desk      {Describe, Context, It, Should…}
Script     1.0.0.1               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Module, Update-Module…}
Script     1.0                   RemoteDesktopManager.PowerShellMod… Desk      

    Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   1.0.1.0               ActiveDirectory                     Core,Desk {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPass…
Manifest   1.0.0.0               AppBackgroundTask                   Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBac…
Manifest   2.0.1.0               Appx                                Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage…}
Script     1.0.0.0               AssignedAccess                      Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}
Manifest   1.0.0.0               BitLocker                           Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector…}
Manifest   2.0.0.0               BitsTransfer                        Core,Desk {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer…}
Manifest   1.0.0.0               BranchCache                         Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading…}
Manifest   1.0                   ConfigDefender                      Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…}
Manifest   1.0                   Defender                            Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…}
Manifest   1.0.2.0               DeliveryOptimization                Core,Desk {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizatio…
Manifest   1.0.0.0               DirectAccessClientComponents        Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExpe… 
Script     3.0                   Dism                                Core,Desk {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage…}
Manifest   1.0.0.0               DnsClient                           Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache…}
Manifest   1.0.0.0               EventTracingManagement              Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession…}  
Manifest   2.0.0.0               International                       Core,Desk {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation…
Manifest   1.0.0.0               Kds                                 Core,Desk {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration…}
Manifest   3.0.0.0               Microsoft.PowerShell.Diagnostics    Core,Desk {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter…}
Manifest   1.0.0.0               Microsoft.PowerShell.LocalAccounts  Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup…}
Manifest   3.1.0.0               Microsoft.PowerShell.Management     Core,Desk {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest   1.0                   MMAgent                             Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…}
Manifest   2.0.0.0               NetAdapter                          Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable… 
Manifest   1.0.0.0               NetConnection                       Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest   1.0.0.0               NetEventPacketCapture               Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession…}
Manifest   2.0.0.0               NetLbfo                             Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember…}
Manifest   1.0.0.0               NetNat                              Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession…}
Manifest   2.0.0.0               NetQos                              Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}
Manifest   2.0.0.0               NetSecurity                         Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-Net…
Manifest   1.0.0.0               NetSwitchTeam                       Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam…}
Manifest   1.0.0.0               NetTCPIP                            Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol…}
Manifest   1.0.0.0               NetworkConnectivityStatus           Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-N… 
Manifest   1.0.0.0               NetworkSwitchManager                Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEth…
Manifest   1.0.0.0               NetworkTransition                   Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfi…
Manifest   1.0                   NFS                                 Core,Desk {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity…}   
Manifest   1.0.0.0               PcsvDevice                          Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…}
Manifest   1.0.0.0               PKI                                 Core,Desk {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-Cer…
Manifest   1.0.0.0               PnpDevice                           Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}
Manifest   1.1                   PrintManagement                     Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…}
Binary     1.0.12                ProcessMitigations                  Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}
Script     3.0                   Provisioning                        Core,Desk {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCerti…
Manifest   1.0.0.0               ScheduledTasks                      Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask…}   
Manifest   2.0.0.0               SecureBoot                          Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI…}
Manifest   2.0.0.0               SmbShare                            Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…}
Manifest   2.0.0.0               SmbWitness                          Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…}
Manifest   1.0.0.0               StartLayout                         Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}
Manifest   2.0.0.0               Storage                             Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultD… 
Manifest   2.0.0.0               TLS                                 Core,Desk {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-…
Manifest   1.0.0.0               TroubleshootingPack                 Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest   2.0.0.0               TrustedPlatformModule               Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…}
Binary     2.1.639.0             UEV                                 Core,Desk 
Manifest   2.0.0.0               VpnClient                           Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection…}
Manifest   1.0.0.0               Wdac                                Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…}
Manifest   2.0.0.0               Whea                                Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Manifest   1.0.0.0               WindowsDeveloperLicense             Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLic…
Script     1.0                   WindowsErrorReporting               Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}    
Manifest   1.0.0.0               WindowsSearch                       Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting}
Manifest   1.0.0.0               WindowsUpdate                       Core,Desk Get-WindowsUpdateLog

    Directory: C:\Users\pmsousa\.vscode\extensions\ms-vscode.powershell-2021.2.2\modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.1.3                 Plaster                             Desk      {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest}
Binary     2.3.0                 PowerShellEditorServices            Core,Desk Start-EditorServices
Binary     0.2.0                 PowerShellEditorServices.VSCode     Desk      {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-V… 
Script     2.2.0      beta2      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… 
Script     2.1.0                 PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe…
Script     1.19.1                PSScriptAnalyzer                    Desk      {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}

Debug output

DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing: 
DEBUG: CmdletProcessRecordStart: 
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - False; Duration - 00:00:00
DEBUG: CmdletProcessRecordAsyncStart: 
DEBUG: CmdletGetPipeline: 
DEBUG: CmdletBeforeAPICall: 
DEBUG: URLCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview
DEBUG: RequestCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview
DEBUG: HeaderParametersAdded: 
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview

Headers:
x-ms-unique-id                : 5,6
x-ms-client-request-id        : 6d2a8703-1e97-482b-a365-3ee879d5cb82
CommandName                   : Get-AzMigrateSolution
FullCommandName               : Get-AzMigrateSolution_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/Az4.0.0-preview

Body:

DEBUG: BeforeCall:
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-request-id               : 4e397957-ac28-4312-a915-317e8157a81b
X-Content-Type-Options        : nosniff
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id   : 2dfb1ac3-cbc3-449a-9b8e-540ceff380d8
x-ms-routing-request-id       : FRANCECENTRAL:20210412T151045Z:2dfb1ac3-cbc3-449a-9b8e-540ceff380d8
Date                          : Mon, 12 Apr 2021 15:10:45 GMT

Body:
{
  "id": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/MigrateProjects/AzMig-Assessment/Solutions/Servers-Discovery-ServerDiscovery",
  "name": "Servers-Discovery-ServerDiscovery",
  "type": "Microsoft.Migrate/MigrateProjects/Solutions",
  "etag": "\"01004b6c-0000-0c00-0000-6073f9a90000\"",
  "properties": {
    "tool": "ServerDiscovery",
    "purpose": "Discovery",
    "goal": "Servers",
    "status": "Inactive",
    "cleanupState": "None",
    "summary": {
      "instanceType": "Servers",
      "discoveredCount": 105,
      "assessedCount": 0,
      "replicatingCount": 0,
      "testMigratedCount": 0,
      "migratedCount": 0
    },
    "details": {
      "groupCount": 0,
      "assessmentCount": 0,
      "extendedDetails": {
        "masterSiteId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite",
        "supportedScenarioSites": "{\"SqlSites\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite/SqlSites/AzMig-Assessme1247sqlsites\"}",
        "keyVaultId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv",    
        "keyVaultUrl": "https://AzMig-Assessme1247kv.vault.azure.net",
        "applianceNameToSiteIdMapV3": "[\r\n  {\r\n    \"AzMig-Worten\": {\r\n      \"ApplianceName\": \"AzMig-Worten\",\r\n      \"SiteId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\r\n      \"KeyVaultId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv\",\r\n      \"KeyVaultUrl\": \"https://AzMig-Assessme1247kv.vault.azure.net\",\r\n      \"ApplianceDetails\": {\r\n        \"machineID\": \"77a9e362-d746-4ad4-85de-5af4772156b7\",\r\n        \"IPAddress\": \"10.137.106.58\",\r\n        \"HostName\": \"WIN-O7SUE35UBV2\",\r\n        \"isRegistered\": true,\r\n        \"discoveryStatus\": \"Success\",\r\n        \"deepDiscoveryDisabled\": false\r\n      },\r\n      \"CertificateContents\": {\r\n        \"AzMig-Worten1750agentauthcert\": \"\"\r\n      },\r\n      \"AadAppDetails\": {\r\n        \"TenantID\": 
\"52fc58a1-7a6a-4800-8857-17db85b77f7f\",\r\n        \"AppName\": \"AzMig-Worten4c81authandaccessaadapp\",\r\n        \"AppID\": \"025dd693-ca2f-4076-88fe-fc6c6dedfea0\",\r\n        \"ObjectID\": \"7da4cefb-aeef-4f10-8f34-8d2ff943585b\"\r\n      },\r\n      \"ScaleOutList\": null,\r\n      \"isV2Site\": false\r\n    }\r\n  }\r\n]",
        "sqlServersCount": "20",
        "error_sql": "{\"azmig-worten\":{\"Information\":0,\"Warning\":0,\"Error\":2}}",
        "error_b60bbcbb-7a2e-4b07-93d3-e685777a0d38_azmig-worten1750site": "{\"InformationErrorCount\":0,\"WarningErrorCount\":2,\"CriticalErrorCount\":1,\"SiteArmId\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\"ApplianceName\":\"AzMig-Worten\"}",
        "serversOnWindows": "47",
        "serversOnLinux": "13",
        "serversOnOther": "45",
        "dependencyEnabledMachines": "12",
        "machinesHavingSqlServers": "20"
      }
    }
  }
}

DEBUG: ResponseCreated:
DEBUG: BeforeResponseDispatch: 
DEBUG: Finally: 
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd:
DEBUG: [CmdletException]: Received Exception with message 'ArgumentException - An item with the same key has already been added. Key: serversOnWindows :    at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.<SolutionsGetSolution_Call>b__689_0(Task`1 body)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)  
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()'
DEBUG: CmdletException: ArgumentException - An item with the same key has already been added. Key: serversOnWindows :    at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.<SolutionsGetSolution_Call>b__689_0(Task`1 body)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)  
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender)
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()
   at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()
Get-AzMigrateSolution_Get: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9
Line |
  74 |          $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An item with the same key has already been added. Key: serversOnWindows

DEBUG: CmdletProcessRecordEnd: 
DEBUG: [CmdletEndProcessing]: Sending new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - True; Duration - 00:00:00
DEBUG: CmdletEndProcessing:
Exception: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13
Line |
  76 |              throw "Server Discovery Solution not found."
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Server Discovery Solution not found.

Error output

Get-AzMigrateSolution_Get: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9
Line |
  74 |          $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An item with the same key has already been added. Key: serversOnWindows

Exception: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13
Line |
  76 |              throw "Server Discovery Solution not found."
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Server Discovery Solution not found.
ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shijojoy.

Issue Details
## Description Executing Get-AzMigrateSolution, regardless of Pwsh 7.1 or 7.2, returns the error about key already added. An item with the same key has already been added. Key: serversOnWindows ## Steps to reproduce ```powershell Get-AzMigrateDiscoveredServer -SubscriptionId $subscriptionID -ProjectName $MigrateProjectName -ResourceGroupName $ResourceGroupName -ApplianceName $ApplianceName ``` ## Environment data ``` Name Value ---- ----- PSVersion 7.1.3 PSEdition Core GitCommitId 7.1.3 OS Microsoft Windows 10.0.19042 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 ``` ## Module versions ```powershell Directory: D:\Documents\PowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Script 5.7.0 Az Core,Desk Script 5.5.0 Az Core,Desk Script 2.2.7 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo… Script 2.2.5 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo… Script 1.1.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendat… Script 2.0.2 Az.Aks Core,Desk {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential…} Script 1.1.4 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServices… Script 2.2.0 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProd… Script 1.0.0 Az.AppConfiguration Core,Desk {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore,… Script 1.1.0 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Updat… Script 1.5.2 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation… Script 1.4.3 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation… Script 3.1.0 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…} Script 2.0.0 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudg… Script 1.6.0 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…} Script 1.8.0 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveService… Script 4.10.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi… Script 4.9.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi… Script 1.0.3 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInsta… Script 2.2.1 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo… Script 2.2.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo… Script 1.1.0 Az.CosmosDB Core,Desk {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDataba… Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxE… Script 1.1.0 Az.Databricks Core,Desk {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-… Script 1.11.5 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…} Script 1.0.2 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDat… Script 1.3.0 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzD… Script 1.0.0 Az.DataShare Core,Desk {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShar… Script 1.1.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeplo… Script 2.1.1 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplic… Script 2.0.0 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDe… Script 1.0.2 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get… Script 1.1.2 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…} Script 1.3.0 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey… Script 1.7.2 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent… Script 1.7.1 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent… Script 1.7.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…} Script 2.0.0 Az.Functions Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunct… Script 4.2.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsig… Script 1.2.0 Az.HealthcareApis Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService,… Script 2.7.3 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzI… Script 3.4.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.4.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.3.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.0.0 Az.KeyVault Core,Desk {Add-AzManagedHsmKey, Get-AzManagedHsmKey, Remove-AzManagedHsmKey, Undo-AzManagedHsmKeyRem… Script 1.0.1 Az.Kusto Core,Desk {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDat… Script 1.5.0 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAcc… Script 1.1.3 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsag… Script 1.1.0 Az.Maintenance Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzM… Script 2.0.0 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedService… Script 1.0.2 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms} Script 1.1.1 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaS… Script 1.0.1 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli… Script 1.0.0 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli… Script 2.4.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…} Script 4.7.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication… Script 4.6.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication… Script 1.1.1 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListK… Script 2.3.0 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDa… Script 1.4.1 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…} Script 1.1.2 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorks… Script 1.0.3 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone… Script 3.5.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices… Script 3.4.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices… Script 1.4.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSch… Script 1.0.0 Az.RedisEnterpriseCache Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheData… Script 1.0.3 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace… Script 0.9.0 Az.Reservations Core,Desk {Get-AzReservationOrder, Get-AzReservation, Get-AzReservationHistory, Update-AzReservation… Script 0.8.0 Az.ResourceGraph Core,Desk {Search-AzGraph, Get-AzResourceGraphQuery, New-AzResourceGraphQuery, Remove-AzResourceGrap… Script 3.4.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm… Script 3.2.1 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm… Script 1.5.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A… Script 1.4.1 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A… Script 2.3.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic… Script 2.2.2 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic… Script 1.2.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…} Script 2.17.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… Script 2.16.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… Script 1.1.0 Az.SqlVirtualMachine Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…} Script 3.5.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount… Script 3.3.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount… Script 1.4.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncServic… Script 1.0.1 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStre… Script 1.0.0 Az.Support Core,Desk {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupp… Script 1.0.4 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoi… Script 2.5.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan… Script 2.3.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan… Binary 2.0.2.128 AzureAD Desk Script 2.0.4 Preview6 ExchangeOnlineManagement Desk {Get-EXOCasMailbox, Get-EXOMailbox, Get-EXOMailboxFolderPermission, Get-EXOMailboxFolderSt… Binary 1.0.1932.… Microsoft.RDInfra.RDPowershell Desk {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…} Manifest 1.1.183.57 MSOnline Desk Script 3.33.1 beta oh-my-posh Desk {Get-PoshThemes, Set-PoshPrompt, Write-PoshTheme, Set-PoshContext} Script 2.0.487 oh-my-posh Desk {Write-ColorPreview, Show-Colors, Show-ThemeColors, Show-ThemeSymbols…} Script 3.0.10 PartnerCenter Core,Desk {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCenter… Script 0.7.3 posh-git Desk {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatus…} Script 2.2.0 beta2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Directory: C:\program files\powershell\7\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Manifest 7.0.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…} Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive} Manifest 7.0.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent, Get-Counter} Manifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript} Manifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Get-Clipboard, Set-Clipboard…} Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…} Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…} Manifest 7.0.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig…} Script 1.4.7 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…} Script 2.2.5 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…} Script 2.0.5 PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource} Script 7.0.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace…} Binary 2.0.3 ThreadJob Desk Start-ThreadJob Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Binary 2.0.2.128 AzureAD Desk Script 1.0.1 Microsoft.PowerShell.Operation.Val… Desk {Get-OperationValidation, Invoke-OperationValidation} Binary 1.0.1932.… Microsoft.RDInfra.RDPowershell Desk {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…} Manifest 1.1.183.57 MSOnline Desk Binary 1.0.0.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…} Script 3.4.0 Pester Desk {Describe, Context, It, Should…} Script 1.0.0.1 PowerShellGet Desk {Install-Module, Find-Module, Save-Module, Update-Module…} Script 1.0 RemoteDesktopManager.PowerShellMod… Desk Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Manifest 1.0.1.0 ActiveDirectory Core,Desk {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPass… Manifest 1.0.0.0 AppBackgroundTask Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBac… Manifest 2.0.1.0 Appx Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage…} Script 1.0.0.0 AssignedAccess Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess} Manifest 1.0.0.0 BitLocker Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector…} Manifest 2.0.0.0 BitsTransfer Core,Desk {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer…} Manifest 1.0.0.0 BranchCache Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading…} Manifest 1.0 ConfigDefender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…} Manifest 1.0 Defender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…} Manifest 1.0.2.0 DeliveryOptimization Core,Desk {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizatio… Manifest 1.0.0.0 DirectAccessClientComponents Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExpe… Script 3.0 Dism Core,Desk {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage…} Manifest 1.0.0.0 DnsClient Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache…} Manifest 1.0.0.0 EventTracingManagement Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession…} Manifest 2.0.0.0 International Core,Desk {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation… Manifest 1.0.0.0 Kds Core,Desk {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration…} Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics Core,Desk {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter…} Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup…} Manifest 3.1.0.0 Microsoft.PowerShell.Management Core,Desk {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…} Manifest 1.0 MMAgent Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…} Manifest 2.0.0.0 NetAdapter Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable… Manifest 1.0.0.0 NetConnection Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile} Manifest 1.0.0.0 NetEventPacketCapture Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession…} Manifest 2.0.0.0 NetLbfo Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember…} Manifest 1.0.0.0 NetNat Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession…} Manifest 2.0.0.0 NetQos Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy} Manifest 2.0.0.0 NetSecurity Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-Net… Manifest 1.0.0.0 NetSwitchTeam Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam…} Manifest 1.0.0.0 NetTCPIP Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol…} Manifest 1.0.0.0 NetworkConnectivityStatus Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-N… Manifest 1.0.0.0 NetworkSwitchManager Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEth… Manifest 1.0.0.0 NetworkTransition Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfi… Manifest 1.0 NFS Core,Desk {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity…} Manifest 1.0.0.0 PcsvDevice Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…} Manifest 1.0.0.0 PKI Core,Desk {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-Cer… Manifest 1.0.0.0 PnpDevice Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice} Manifest 1.1 PrintManagement Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…} Binary 1.0.12 ProcessMitigations Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy} Script 3.0 Provisioning Core,Desk {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCerti… Manifest 1.0.0.0 ScheduledTasks Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask…} Manifest 2.0.0.0 SecureBoot Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI…} Manifest 2.0.0.0 SmbShare Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…} Manifest 2.0.0.0 SmbWitness Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…} Manifest 1.0.0.0 StartLayout Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps} Manifest 2.0.0.0 Storage Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultD… Manifest 2.0.0.0 TLS Core,Desk {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-… Manifest 1.0.0.0 TroubleshootingPack Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack} Manifest 2.0.0.0 TrustedPlatformModule Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…} Binary 2.1.639.0 UEV Core,Desk Manifest 2.0.0.0 VpnClient Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection…} Manifest 1.0.0.0 Wdac Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…} Manifest 2.0.0.0 Whea Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy} Manifest 1.0.0.0 WindowsDeveloperLicense Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLic… Script 1.0 WindowsErrorReporting Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting} Manifest 1.0.0.0 WindowsSearch Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting} Manifest 1.0.0.0 WindowsUpdate Core,Desk Get-WindowsUpdateLog Directory: C:\Users\pmsousa\.vscode\extensions\ms-vscode.powershell-2021.2.2\modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Script 1.1.3 Plaster Desk {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest} Binary 2.3.0 PowerShellEditorServices Core,Desk Start-EditorServices Binary 0.2.0 PowerShellEditorServices.VSCode Desk {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-V… Script 2.2.0 beta2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Script 2.1.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Script 1.19.1 PSScriptAnalyzer Desk {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter} ``` ## Debug output ``` DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - False; Duration - 00:00:00 DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview DEBUG: RequestCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview Headers: x-ms-unique-id : 5,6 x-ms-client-request-id : 6d2a8703-1e97-482b-a365-3ee879d5cb82 CommandName : Get-AzMigrateSolution FullCommandName : Get-AzMigrateSolution_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/Az4.0.0-preview Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache x-ms-request-id : 4e397957-ac28-4312-a915-317e8157a81b X-Content-Type-Options : nosniff Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-ratelimit-remaining-subscription-reads: 11999 x-ms-correlation-request-id : 2dfb1ac3-cbc3-449a-9b8e-540ceff380d8 x-ms-routing-request-id : FRANCECENTRAL:20210412T151045Z:2dfb1ac3-cbc3-449a-9b8e-540ceff380d8 Date : Mon, 12 Apr 2021 15:10:45 GMT Body: { "id": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/MigrateProjects/AzMig-Assessment/Solutions/Servers-Discovery-ServerDiscovery", "name": "Servers-Discovery-ServerDiscovery", "type": "Microsoft.Migrate/MigrateProjects/Solutions", "etag": "\"01004b6c-0000-0c00-0000-6073f9a90000\"", "properties": { "tool": "ServerDiscovery", "purpose": "Discovery", "goal": "Servers", "status": "Inactive", "cleanupState": "None", "summary": { "instanceType": "Servers", "discoveredCount": 105, "assessedCount": 0, "replicatingCount": 0, "testMigratedCount": 0, "migratedCount": 0 }, "details": { "groupCount": 0, "assessmentCount": 0, "extendedDetails": { "masterSiteId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite", "supportedScenarioSites": "{\"SqlSites\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite/SqlSites/AzMig-Assessme1247sqlsites\"}", "keyVaultId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv", "keyVaultUrl": "https://AzMig-Assessme1247kv.vault.azure.net", "applianceNameToSiteIdMapV3": "[\r\n {\r\n \"AzMig-Worten\": {\r\n \"ApplianceName\": \"AzMig-Worten\",\r\n \"SiteId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\r\n \"KeyVaultId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv\",\r\n \"KeyVaultUrl\": \"https://AzMig-Assessme1247kv.vault.azure.net\",\r\n \"ApplianceDetails\": {\r\n \"machineID\": \"77a9e362-d746-4ad4-85de-5af4772156b7\",\r\n \"IPAddress\": \"10.137.106.58\",\r\n \"HostName\": \"WIN-O7SUE35UBV2\",\r\n \"isRegistered\": true,\r\n \"discoveryStatus\": \"Success\",\r\n \"deepDiscoveryDisabled\": false\r\n },\r\n \"CertificateContents\": {\r\n \"AzMig-Worten1750agentauthcert\": \"\"\r\n },\r\n \"AadAppDetails\": {\r\n \"TenantID\": \"52fc58a1-7a6a-4800-8857-17db85b77f7f\",\r\n \"AppName\": \"AzMig-Worten4c81authandaccessaadapp\",\r\n \"AppID\": \"025dd693-ca2f-4076-88fe-fc6c6dedfea0\",\r\n \"ObjectID\": \"7da4cefb-aeef-4f10-8f34-8d2ff943585b\"\r\n },\r\n \"ScaleOutList\": null,\r\n \"isV2Site\": false\r\n }\r\n }\r\n]", "sqlServersCount": "20", "error_sql": "{\"azmig-worten\":{\"Information\":0,\"Warning\":0,\"Error\":2}}", "error_b60bbcbb-7a2e-4b07-93d3-e685777a0d38_azmig-worten1750site": "{\"InformationErrorCount\":0,\"WarningErrorCount\":2,\"CriticalErrorCount\":1,\"SiteArmId\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\"ApplianceName\":\"AzMig-Worten\"}", "serversOnWindows": "47", "serversOnLinux": "13", "serversOnOther": "45", "dependencyEnabledMachines": "12", "machinesHavingSqlServers": "20" } } } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: [CmdletException]: Received Exception with message 'ArgumentException - An item with the same key has already been added. Key: serversOnWindows : at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.b__689_0(Task`1 body) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()' DEBUG: CmdletException: ArgumentException - An item with the same key has already been added. Key: serversOnWindows : at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.b__689_0(Task`1 body) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() Get-AzMigrateSolution_Get: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9 Line | 74 | $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | An item with the same key has already been added. Key: serversOnWindows DEBUG: CmdletProcessRecordEnd: DEBUG: [CmdletEndProcessing]: Sending new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - True; Duration - 00:00:00 DEBUG: CmdletEndProcessing: Exception: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13 Line | 76 | throw "Server Discovery Solution not found." | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Server Discovery Solution not found. ``` ## Error output ``` Get-AzMigrateSolution_Get: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9 Line | 74 | $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | An item with the same key has already been added. Key: serversOnWindows Exception: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13 Line | 76 | throw "Server Discovery Solution not found." | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Server Discovery Solution not found. ```
Author: pmsousa
Assignees: -
Labels: `Migrate`, `Service Attention`, `customer-reported`, `needs-triage`, `question`
Milestone: -
SatishBoddu-MSFT commented 3 years ago

Hello @pmsousa Apologies for the delayed response. I see that this issue is opened a long time ago and no further activity had taken place. So wanted to check if you are still looking for assistance on this query? Please let us know.

pmsousa commented 3 years ago

@SatishBoddu-MSFT your colleague stated that he was routing this issue to the appropriate team. From my end, I had to find a way to get the job done. Couldn't wait indefinitely...

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shijojoy.

Issue Details
## Description Executing Get-AzMigrateSolution, regardless of Pwsh 7.1 or 7.2, returns the error about key already added. An item with the same key has already been added. Key: serversOnWindows ## Steps to reproduce ```powershell Get-AzMigrateDiscoveredServer -SubscriptionId $subscriptionID -ProjectName $MigrateProjectName -ResourceGroupName $ResourceGroupName -ApplianceName $ApplianceName ``` ## Environment data ``` Name Value ---- ----- PSVersion 7.1.3 PSEdition Core GitCommitId 7.1.3 OS Microsoft Windows 10.0.19042 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 ``` ## Module versions ```powershell Directory: D:\Documents\PowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Script 5.7.0 Az Core,Desk Script 5.5.0 Az Core,Desk Script 2.2.7 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo… Script 2.2.5 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzCo… Script 1.1.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendat… Script 2.0.2 Az.Aks Core,Desk {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential…} Script 1.1.4 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServices… Script 2.2.0 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProd… Script 1.0.0 Az.AppConfiguration Core,Desk {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore,… Script 1.1.0 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Updat… Script 1.5.2 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation… Script 1.4.3 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomation… Script 3.1.0 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…} Script 2.0.0 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudg… Script 1.6.0 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…} Script 1.8.0 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveService… Script 4.10.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi… Script 4.9.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabi… Script 1.0.3 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInsta… Script 2.2.1 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo… Script 2.2.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzCo… Script 1.1.0 Az.CosmosDB Core,Desk {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDataba… Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxE… Script 1.1.0 Az.Databricks Core,Desk {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-… Script 1.11.5 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…} Script 1.0.2 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDat… Script 1.3.0 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzD… Script 1.0.0 Az.DataShare Core,Desk {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShar… Script 1.1.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeplo… Script 2.1.1 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplic… Script 2.0.0 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDe… Script 1.0.2 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get… Script 1.1.2 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…} Script 1.3.0 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey… Script 1.7.2 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent… Script 1.7.1 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEvent… Script 1.7.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…} Script 2.0.0 Az.Functions Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunct… Script 4.2.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsig… Script 1.2.0 Az.HealthcareApis Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService,… Script 2.7.3 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzI… Script 3.4.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.4.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.3.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperat… Script 3.0.0 Az.KeyVault Core,Desk {Add-AzManagedHsmKey, Get-AzManagedHsmKey, Remove-AzManagedHsmKey, Undo-AzManagedHsmKeyRem… Script 1.0.1 Az.Kusto Core,Desk {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDat… Script 1.5.0 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAcc… Script 1.1.3 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsag… Script 1.1.0 Az.Maintenance Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzM… Script 2.0.0 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedService… Script 1.0.2 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms} Script 1.1.1 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaS… Script 1.0.1 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli… Script 1.0.0 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateRepli… Script 2.4.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…} Script 4.7.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication… Script 4.6.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthentication… Script 1.1.1 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListK… Script 2.3.0 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDa… Script 1.4.1 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…} Script 1.1.2 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorks… Script 1.0.3 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone… Script 3.5.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices… Script 3.4.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServices… Script 1.4.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSch… Script 1.0.0 Az.RedisEnterpriseCache Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheData… Script 1.0.3 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace… Script 0.9.0 Az.Reservations Core,Desk {Get-AzReservationOrder, Get-AzReservation, Get-AzReservationHistory, Update-AzReservation… Script 0.8.0 Az.ResourceGraph Core,Desk {Search-AzGraph, Get-AzResourceGraphQuery, New-AzResourceGraphQuery, Remove-AzResourceGrap… Script 3.4.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm… Script 3.2.1 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignm… Script 1.5.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A… Script 1.4.1 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-A… Script 2.3.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic… Script 2.2.2 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServic… Script 1.2.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…} Script 2.17.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… Script 2.16.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionAct… Script 1.1.0 Az.SqlVirtualMachine Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…} Script 3.5.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount… Script 3.3.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccount… Script 1.4.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncServic… Script 1.0.1 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStre… Script 1.0.0 Az.Support Core,Desk {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupp… Script 1.0.4 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoi… Script 2.5.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan… Script 2.3.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan… Binary 2.0.2.128 AzureAD Desk Script 2.0.4 Preview6 ExchangeOnlineManagement Desk {Get-EXOCasMailbox, Get-EXOMailbox, Get-EXOMailboxFolderPermission, Get-EXOMailboxFolderSt… Binary 1.0.1932.… Microsoft.RDInfra.RDPowershell Desk {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…} Manifest 1.1.183.57 MSOnline Desk Script 3.33.1 beta oh-my-posh Desk {Get-PoshThemes, Set-PoshPrompt, Write-PoshTheme, Set-PoshContext} Script 2.0.487 oh-my-posh Desk {Write-ColorPreview, Show-Colors, Show-ThemeColors, Show-ThemeSymbols…} Script 3.0.10 PartnerCenter Core,Desk {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCenter… Script 0.7.3 posh-git Desk {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatus…} Script 2.2.0 beta2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Directory: C:\program files\powershell\7\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Manifest 7.0.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…} Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive} Manifest 7.0.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent, Get-Counter} Manifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript} Manifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Get-Clipboard, Set-Clipboard…} Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…} Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…} Manifest 7.0.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig…} Script 1.4.7 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…} Script 2.2.5 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…} Script 2.0.5 PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource} Script 7.0.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace…} Binary 2.0.3 ThreadJob Desk Start-ThreadJob Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Binary 2.0.2.128 AzureAD Desk Script 1.0.1 Microsoft.PowerShell.Operation.Val… Desk {Get-OperationValidation, Invoke-OperationValidation} Binary 1.0.1932.… Microsoft.RDInfra.RDPowershell Desk {Get-RdsContext, Set-RdsContext, Add-RdsAccount, Get-RdsTenant…} Manifest 1.1.183.57 MSOnline Desk Binary 1.0.0.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…} Script 3.4.0 Pester Desk {Describe, Context, It, Should…} Script 1.0.0.1 PowerShellGet Desk {Install-Module, Find-Module, Save-Module, Update-Module…} Script 1.0 RemoteDesktopManager.PowerShellMod… Desk Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Manifest 1.0.1.0 ActiveDirectory Core,Desk {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPass… Manifest 1.0.0.0 AppBackgroundTask Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBac… Manifest 2.0.1.0 Appx Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage…} Script 1.0.0.0 AssignedAccess Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess} Manifest 1.0.0.0 BitLocker Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector…} Manifest 2.0.0.0 BitsTransfer Core,Desk {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer…} Manifest 1.0.0.0 BranchCache Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading…} Manifest 1.0 ConfigDefender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…} Manifest 1.0 Defender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…} Manifest 1.0.2.0 DeliveryOptimization Core,Desk {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizatio… Manifest 1.0.0.0 DirectAccessClientComponents Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExpe… Script 3.0 Dism Core,Desk {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage…} Manifest 1.0.0.0 DnsClient Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache…} Manifest 1.0.0.0 EventTracingManagement Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession…} Manifest 2.0.0.0 International Core,Desk {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation… Manifest 1.0.0.0 Kds Core,Desk {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration…} Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics Core,Desk {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter…} Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup…} Manifest 3.1.0.0 Microsoft.PowerShell.Management Core,Desk {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…} Manifest 1.0 MMAgent Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…} Manifest 2.0.0.0 NetAdapter Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable… Manifest 1.0.0.0 NetConnection Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile} Manifest 1.0.0.0 NetEventPacketCapture Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession…} Manifest 2.0.0.0 NetLbfo Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember…} Manifest 1.0.0.0 NetNat Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession…} Manifest 2.0.0.0 NetQos Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy} Manifest 2.0.0.0 NetSecurity Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-Net… Manifest 1.0.0.0 NetSwitchTeam Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam…} Manifest 1.0.0.0 NetTCPIP Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol…} Manifest 1.0.0.0 NetworkConnectivityStatus Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-N… Manifest 1.0.0.0 NetworkSwitchManager Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEth… Manifest 1.0.0.0 NetworkTransition Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfi… Manifest 1.0 NFS Core,Desk {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity…} Manifest 1.0.0.0 PcsvDevice Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…} Manifest 1.0.0.0 PKI Core,Desk {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-Cer… Manifest 1.0.0.0 PnpDevice Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice} Manifest 1.1 PrintManagement Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…} Binary 1.0.12 ProcessMitigations Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy} Script 3.0 Provisioning Core,Desk {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCerti… Manifest 1.0.0.0 ScheduledTasks Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask…} Manifest 2.0.0.0 SecureBoot Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI…} Manifest 2.0.0.0 SmbShare Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…} Manifest 2.0.0.0 SmbWitness Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…} Manifest 1.0.0.0 StartLayout Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps} Manifest 2.0.0.0 Storage Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultD… Manifest 2.0.0.0 TLS Core,Desk {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-… Manifest 1.0.0.0 TroubleshootingPack Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack} Manifest 2.0.0.0 TrustedPlatformModule Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…} Binary 2.1.639.0 UEV Core,Desk Manifest 2.0.0.0 VpnClient Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection…} Manifest 1.0.0.0 Wdac Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…} Manifest 2.0.0.0 Whea Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy} Manifest 1.0.0.0 WindowsDeveloperLicense Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLic… Script 1.0 WindowsErrorReporting Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting} Manifest 1.0.0.0 WindowsSearch Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting} Manifest 1.0.0.0 WindowsUpdate Core,Desk Get-WindowsUpdateLog Directory: C:\Users\pmsousa\.vscode\extensions\ms-vscode.powershell-2021.2.2\modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Script 1.1.3 Plaster Desk {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest} Binary 2.3.0 PowerShellEditorServices Core,Desk Start-EditorServices Binary 0.2.0 PowerShellEditorServices.VSCode Desk {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-V… Script 2.2.0 beta2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Script 2.1.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRe… Script 1.19.1 PSScriptAnalyzer Desk {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter} ``` ## Debug output ``` DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - False; Duration - 00:00:00 DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview DEBUG: RequestCreated: /subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/migrateProjects/AzMig-Assessment/solutions/Servers-Discovery-ServerDiscovery?api-version=2018-09-01-preview Headers: x-ms-unique-id : 5,6 x-ms-client-request-id : 6d2a8703-1e97-482b-a365-3ee879d5cb82 CommandName : Get-AzMigrateSolution FullCommandName : Get-AzMigrateSolution_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/Az4.0.0-preview Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache x-ms-request-id : 4e397957-ac28-4312-a915-317e8157a81b X-Content-Type-Options : nosniff Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-ratelimit-remaining-subscription-reads: 11999 x-ms-correlation-request-id : 2dfb1ac3-cbc3-449a-9b8e-540ceff380d8 x-ms-routing-request-id : FRANCECENTRAL:20210412T151045Z:2dfb1ac3-cbc3-449a-9b8e-540ceff380d8 Date : Mon, 12 Apr 2021 15:10:45 GMT Body: { "id": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.Migrate/MigrateProjects/AzMig-Assessment/Solutions/Servers-Discovery-ServerDiscovery", "name": "Servers-Discovery-ServerDiscovery", "type": "Microsoft.Migrate/MigrateProjects/Solutions", "etag": "\"01004b6c-0000-0c00-0000-6073f9a90000\"", "properties": { "tool": "ServerDiscovery", "purpose": "Discovery", "goal": "Servers", "status": "Inactive", "cleanupState": "None", "summary": { "instanceType": "Servers", "discoveredCount": 105, "assessedCount": 0, "replicatingCount": 0, "testMigratedCount": 0, "migratedCount": 0 }, "details": { "groupCount": 0, "assessmentCount": 0, "extendedDetails": { "masterSiteId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite", "supportedScenarioSites": "{\"SqlSites\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/MasterSites/AzMig-Assessme1247mastersite/SqlSites/AzMig-Assessme1247sqlsites\"}", "keyVaultId": "/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv", "keyVaultUrl": "https://AzMig-Assessme1247kv.vault.azure.net", "applianceNameToSiteIdMapV3": "[\r\n {\r\n \"AzMig-Worten\": {\r\n \"ApplianceName\": \"AzMig-Worten\",\r\n \"SiteId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\r\n \"KeyVaultId\": \"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.KeyVault/vaults/AzMig-Assessme1247kv\",\r\n \"KeyVaultUrl\": \"https://AzMig-Assessme1247kv.vault.azure.net\",\r\n \"ApplianceDetails\": {\r\n \"machineID\": \"77a9e362-d746-4ad4-85de-5af4772156b7\",\r\n \"IPAddress\": \"10.137.106.58\",\r\n \"HostName\": \"WIN-O7SUE35UBV2\",\r\n \"isRegistered\": true,\r\n \"discoveryStatus\": \"Success\",\r\n \"deepDiscoveryDisabled\": false\r\n },\r\n \"CertificateContents\": {\r\n \"AzMig-Worten1750agentauthcert\": \"\"\r\n },\r\n \"AadAppDetails\": {\r\n \"TenantID\": \"52fc58a1-7a6a-4800-8857-17db85b77f7f\",\r\n \"AppName\": \"AzMig-Worten4c81authandaccessaadapp\",\r\n \"AppID\": \"025dd693-ca2f-4076-88fe-fc6c6dedfea0\",\r\n \"ObjectID\": \"7da4cefb-aeef-4f10-8f34-8d2ff943585b\"\r\n },\r\n \"ScaleOutList\": null,\r\n \"isV2Site\": false\r\n }\r\n }\r\n]", "sqlServersCount": "20", "error_sql": "{\"azmig-worten\":{\"Information\":0,\"Warning\":0,\"Error\":2}}", "error_b60bbcbb-7a2e-4b07-93d3-e685777a0d38_azmig-worten1750site": "{\"InformationErrorCount\":0,\"WarningErrorCount\":2,\"CriticalErrorCount\":1,\"SiteArmId\":\"/subscriptions/c53da725-ffba-417c-b32f-1396b31e90f1/resourceGroups/rg-azureassessment/providers/Microsoft.OffAzure/VMwareSites/AzMig-Worten1750site\",\"ApplianceName\":\"AzMig-Worten\"}", "serversOnWindows": "47", "serversOnLinux": "13", "serversOnOther": "45", "dependencyEnabledMachines": "12", "machinesHavingSqlServers": "20" } } } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: [CmdletException]: Received Exception with message 'ArgumentException - An item with the same key has already been added. Key: serversOnWindows : at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.b__689_0(Task`1 body) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync()' DEBUG: CmdletException: ArgumentException - An item with the same key has already been added. Key: serversOnWindows : at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject.Add(String name, JsonNode value) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadFieldValue() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadField() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadObject() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonParser.ReadNode() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(SourceReader sourceReader) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(String text) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.<>c.b__689_0(Task`1 body) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.onOk(HttpResponseMessage responseMessage, Task`1 response) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution_Call(HttpRequestMessage request, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate.SolutionsGetSolution(String subscriptionId, String resourceGroupName, String migrateProjectName, String solutionName, Func`3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() at Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.GetAzMigrateSolution_Get.ProcessRecordAsync() Get-AzMigrateSolution_Get: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9 Line | 74 | $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | An item with the same key has already been added. Key: serversOnWindows DEBUG: CmdletProcessRecordEnd: DEBUG: [CmdletEndProcessing]: Sending new QosEvent for command 'Get-AzMigrateSolution_Get': AzureQoSEvent: CommandName - Get-AzMigrateSolution_Get; IsSuccess - True; Duration - 00:00:00 DEBUG: CmdletEndProcessing: Exception: D:\Bizdirect\OneDrive - Bizdirect\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13 Line | 76 | throw "Server Discovery Solution not found." | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Server Discovery Solution not found. ``` ## Error output ``` Get-AzMigrateSolution_Get: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:74:9 Line | 74 | $discoverySolution = Get-AzMigrateSolution -SubscriptionId $S … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | An item with the same key has already been added. Key: serversOnWindows Exception: D:\Documents\PowerShell\Modules\Az.Migrate\1.0.1\custom\Get-AzMigrateDiscoveredServer.ps1:76:13 Line | 76 | throw "Server Discovery Solution not found." | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Server Discovery Solution not found. ```
Author: pmsousa
Assignees: -
Labels: `Migrate`, `Service Attention`, `question`, `customer-reported`, `needs-team-attention`
Milestone: -
SatishBoddu-MSFT commented 3 years ago

Hello @shijojoy, Could you please help with this issue?

james-oneill-kpmg commented 6 months ago

I'm seeing the same error from Update-AzAdApplication (just trying to set OptionalClaim), and I wonder if this error also goes through these Az.Graph proxy functions.

$ Update-AzADApplication -ApplicationId $app.appId -OptionalClaim $optionalClaims -Debug -Verbose
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing: 
DEBUG: CmdletProcessRecordStart: 

Confirm
Are you sure you want to perform this action?
Performing the operation "Update-AzADApplication_UpdateExpanded" on target "Call remote 'ApplicationsApplicationUpdateApplication' operation".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): 
DEBUG: CmdletGetPipeline: 
DEBUG: CmdletBeforeAPICall: 
DEBUG: URLCreated: /applications/b198759d-3126-4804-817d-97e28360a2ca
DEBUG: RequestCreated: /v1.0/applications/b198759d-3126-4804-817d-97e28360a2ca
DEBUG: HeaderParametersAdded: 
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd: 
DEBUG: [CmdletException]: Received Exception with message 'ArgumentException - An item with the same key has already been added. Key: name :    at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Json.JsonObject.Add(String name, JsonNode value)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOptionalClaim.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOptionalClaims.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApplication.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.MSGraph.ApplicationsApplicationUpdateApplication(String applicationId, IMicrosoftGraphApplication body, Func`2 onNoContent, Func`3 onDefault, IEventListener eventListener, ISendAsync sender, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.UpdateAzADApplication_UpdateExpanded.ProcessRecordAsync()
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.UpdateAzADApplication_UpdateExpanded.ProcessRecordAsync()'
DEBUG: CmdletException: ArgumentException - An item with the same key has already been added. Key: name :    at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Json.JsonObject.Add(String name, JsonNode value)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOptionalClaim.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOptionalClaims.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApplication.ToJson(JsonObject container, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.MSGraph.ApplicationsApplicationUpdateApplication(String applicationId, IMicrosoftGraphApplication body, Func`2 onNoContent, Func`3 onDefault, IEventListener eventListener, ISendAsync sender, SerializationMode serializationMode)
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.UpdateAzADApplication_UpdateExpanded.ProcessRecordAsync()
   at Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.UpdateAzADApplication_UpdateExpanded.ProcessRecordAsync()
DEBUG: CmdletProcessRecordEnd: 
Update-AzADApplication_UpdateExpanded: /home/user/.local/share/powershell/Modules/Az.Resources/6.16.1/MSGraph.Autorest/custom/Update-AzADApplication.ps1:545
Line |
 545 |      Az.MSGraph.internal\Update-AzADApplication @PSBoundParameters
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An item with the same key has already been added. Key: name