Certain cmdlets not running through Azure Automation Hybrid Runbook Worker #1287
Unanswered
JosuaDoering
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an automation script where list items in a SharePoint list are created, updated and removed.
The script works fine if we run it locally. As soon as we run it as a runbook in Azure Automation through a Hybrid Runbook Worker, the runbook stops and repeats itself whenever it comes to a PnP.PowerShell cmdlet that has no output like:
The script boiled down to the PnP.PowerShell cmdlets looks like this:
The Azure Automation output looks like this:
I marked the seperate loops of the runbook with different colors. This is just a small part of the output. The runbook repeated itself for four times and then went into a suspended state. Only the Connect-PnPOnline and Get-PnPListItem cmdlets worked. So effectively the three cmdlets above didn't work and no changes to the list were made.
Only after we changed the script and sent the cmdlets that didn't work to the null output, it started working in Azure Automation:
So this seems to be a bug within the module. Maybe this workaround helps somebody :)
Beta Was this translation helpful? Give feedback.
All reactions