Closed azureskydiver closed 1 month ago
Thank you for the feedback. The reason for this behavior is that $request.Body is readonly, and can't be updated with assignment. Please replace with this: $convertedBody = [HashTable]::New($Request.Body, [StringComparer]::OrdinalIgnoreCase) and use $convertedBody instead of $request.Body in the rest of your code. We have updated the wiki to be correct
Closing with resolution
In the documentation for Upgrading your Azure Function Apps to run on PowerShell 7.4, it says:
Unfortunately, this doesn't work.
To reproduce the problem:
Code will look something like this:
Expected results: Output to say "Hello, Azure. This HTTP triggered function executed successfully."
Actual results: Output says: "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response."