Open pmsousa opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shijojoy.
Author: | pmsousa |
---|---|
Assignees: | - |
Labels: | `Migrate`, `Service Attention`, `customer-reported`, `needs-triage`, `question` |
Milestone: | - |
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.
@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...
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shijojoy.
Author: | pmsousa |
---|---|
Assignees: | - |
Labels: | `Migrate`, `Service Attention`, `question`, `customer-reported`, `needs-team-attention` |
Milestone: | - |
Hello @shijojoy, Could you please help with this issue?
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
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
Environment data
Module versions
Debug output
Error output