Hi,
Not sure if this is a bug or what.
I am using the servercore LTSC 2022 docker image.
I run a command Invoke-RestMethod with BasicParsing and this works fine. This is to the url login.microsoftonline.com
However, I use the same cmdlet to dev.azure.com, but get:
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a receive.
I have checked the container, and enabled TLS 1.2. There is nothing in the netwrok getting in the way.
Any suggestions?