Azure Function Connect-PnpOnline ManagedIdentity ERROR: Host not reachable #3151
Replies: 2 comments 6 replies
-
I just had the same problem, use an older version of the module. The current version in powershell/src/Commands/Base/ConnectOnline.cs Line 282 in cc3c556 uses
Ping is not allowed through an Azure function and errors out because of this. |
Beta Was this translation helpful? Give feedback.
-
Is there a reason why this somehow broken feature introduced in 2.2.0 is still present and not yet removed? We are facing the same issue under Windows and Docker that up to 2.1.1 the connection is working and from 2.2.0 we face the error. |
Beta Was this translation helpful? Give feedback.
-
I tried to connect inside an Azure Function with Managed Identity (System Assigned).
I followed this
PowerShell Version = 7.2
PnP.PowerShell = 2.1.65-nightly
Runtime version = 4.21.2.20699
$siteUrl = "https://tenant.sharepoint.com/sites/testsite"
Connect-PnPOnline -Url $siteUrl -ManagedIdentity
I get this error. Anyone an idea?
Beta Was this translation helpful? Give feedback.
All reactions