powershell
powershell copied to clipboard
[BUG] Connect-PnPOnline behind firewall error: "Host not reachable" version 2.2.0 and above
Reporting an Issue or Missing Feature
Issue confirmed by several users. See https://github.com/pnp/powershell/discussions/3151 Related to Release Release 2.2.0 · pnp/powershell · GitHub
- Improved Connect-PnPOnline cmdlet to handle ping on the destination server to check if it exists. PR and #3154
Expected behavior
Scripts asks for credentials
Actual behavior
Error by command: Host not reachable
Steps to reproduce behavior
Simply run command Connect-PnPOnline -Url "contoso.sharepoint.com" behind a firewall. Proxy set. Command is working well in 2.1.1 and below.
What is the version of the Cmdlet module you are running?
From 2.2.0 to latest 2.4.44 nightly
Which operating system/environment are you running PnP PowerShell on?
- [ X] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [ ] Azure Functions
- [X ] Other : official latest Docker image mcr.microsoft.com/powershell