PowerShell Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send

As I’m writing more PowerShell (what I really mean is googling PowerShell or asking Steven @StevenMurawski), I ran into this weird thing. I was trying to hit an Azure Function that I wrote using Invoke-RestMethod and I kept getting the error: Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send … [Read more…]