You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
I am facing an issue using Connect-PnPOnline to connect to a SharePoint site on one of my client's environment from Azure Automation Job (Or Azure Function).
Command I am using to Connect:
Connect-SPOService -Credential $SPCredential -Url $SPSiteURL
Scenario:
I am able to connect to same environment using same credentials if I run the command from my local computer. However, the same command doesn't work when I run it on Azure Automation Runbook. I tried different credentials as well but have same issue. From Azure Automation I am able to connect to other client's environment. So the issue is only with this specific one.
Detailed Error Message
_Exception while executing function: Functions.PnPTest. Microsoft.Azure.WebJobs.Script: PowerShell script error. SharePointPnP.PowerShell.Online.Commands: Unable to connect to the remote server.
System: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond {IPAddress}:443._
Has anyone faced such issue before, I have limited access to the environment so I am not able to see any firewall or security settings.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI All,
I am facing an issue using Connect-PnPOnline to connect to a SharePoint site on one of my client's environment from Azure Automation Job (Or Azure Function).
Command I am using to Connect:
Connect-SPOService -Credential $SPCredential -Url $SPSiteURL
Scenario:
I am able to connect to same environment using same credentials if I run the command from my local computer. However, the same command doesn't work when I run it on Azure Automation Runbook. I tried different credentials as well but have same issue. From Azure Automation I am able to connect to other client's environment. So the issue is only with this specific one.
Detailed Error Message
_Exception while executing function: Functions.PnPTest. Microsoft.Azure.WebJobs.Script: PowerShell script error. SharePointPnP.PowerShell.Online.Commands: Unable to connect to the remote server.
System: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond {IPAddress}:443._
Has anyone faced such issue before, I have limited access to the environment so I am not able to see any firewall or security settings.
Beta Was this translation helpful? Give feedback.
All reactions