An Azure service that provides an event-driven serverless compute platform.
This issue has been resolved after a while.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The powershell Function app is failing when any of the migrated Skype cmdlets are used (Ordinary MicrosoftTeams cmdLet like 'Get-Teams' are working correctly. The latest Module MicrosoftTeams 2.3.1 is used in this instance.
Is there any recommends/suggestions to work around the issue when receiving the type 'System.Collections.ListDictionaryInternal' is not supported for serialization or deserialization of a dictionary. Keys must be strings?
using namespace System.Net
param($Request, $TriggerMetadata)
try {
Write-Host "PowerShell HTTP trigger function processed a request."
$UserPrincipalName = "******@test.onmicrosoft.com"
$myTeams = Get-Team -User $UserPrincipalName
Write-Output $myTeams
# FAILED HERE.
$csUser = Get-CsOnlineUser -Identity $UserPrincipalName
2021-05-19T15:57:43.947 [Error] Executed 'Functions.HttpTrigger1' (Failed, Id=bfc1bca4-98ca-4f31-84df-aba514dc7f9a, Duration=35506ms)Result: FailureException: The type 'System.Collections.ListDictionaryInternal' is not supported for serialization or deserialization of a dictionary. Keys must be strings.Stack: at Microsoft.PowerShell.Commands.JsonObject.ProcessDictionary(IDictionary dict, Int32 depth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ProcessValue(Object obj, Int32 currentDepth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ProcessCustomObject[T](Object o, Int32 depth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ProcessValue(Object obj, Int32 currentDepth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ProcessCustomObject[T](Object o, Int32 depth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ProcessValue(Object obj, Int32 currentDepth, ConvertToJsonContext& context)at Microsoft.PowerShell.Commands.JsonObject.ConvertToJson(Object objectToProcess, ConvertToJsonContext& context)at Microsoft.Azure.Functions.PowerShellWorker.Utility.TypeExtensions.ConvertToJson(Object fromObj) in /home/vsts/work/1/s/src/Utility/TypeExtensions.cs:line 149at Microsoft.Azure.Functions.PowerShellWorker.Utility.TypeExtensions.ToTypedData(Object value) in /home/vsts/work/1/s/src/Utility/TypeExtensions.cs:line 247at Microsoft.Azure.Functions.PowerShellWorker.Utility.TypeExtensions.ToRpcHttp(HttpResponseContext httpResponseContext) in /home/vsts/work/1/s/src/Utility/TypeExtensions.cs:line 164at Microsoft.Azure.Functions.PowerShellWorker.Utility.TypeExtensions.ToTypedData(Object value) in /home/vsts/work/1/s/src/Utility/TypeExtensions.cs:line 241at Microsoft.Azure.Functions.PowerShellWorker.RequestProcessor.BindOutputFromResult(InvocationResponse response, AzFunctionInfo functionInfo, IDictionary results) in /home/vsts/work/1/s/src/RequestProcessor.cs:line 465at Microsoft.Azure.Functions.PowerShellWorker.RequestProcessor.ProcessInvocationRequestImpl(StreamingMessage request, AzFunctionInfo functionInfo, PowerShellManager psManager, FunctionInvocationPerformanceStopwatch stopwatch) in /home/vsts/work/1/s/src/RequestProcessor.cs:line 308
An Azure service that provides an event-driven serverless compute platform.
This issue has been resolved after a while.