The HTTP Trigger sample for PowerShell uses POST but I need to be able to use GET. The software I want to integrate with can only do GET.
The example begins with:
$requestBody = Get-Content $req -Raw | ConvertFrom-Json
I tried /api/MyFunction?code=stuffstuffstuff==¶m1=asdf¶m2=1234 expecting that $requestBody would be param1=asdf¶m2=1234. Instead, it's just empty.
I looked at the JavaScript example and had no trouble doing this. On a GET request the querystring parameters are available in req.query vs POST which is req.body.
Has this possibly not been implemented for PowerShell yet?