Skip to content

Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a receive. on ServerCore:LTSC2022 #603

@GurdipS5

Description

@GurdipS5

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?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions