Azure Automation Runbooks: Various PnP cmdlets not working #802
Replies: 4 comments
-
Hy, Why is this happening ? Regards |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not as of right now. I fell back to executing the script on a local machine but am really curious if more people experience this behaviour.
|
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Beta Was this translation helpful? Give feedback.
-
Am converting this to a discussion as this is not an issue with the PnP PowerShell cmdlets but something to do with Azure automation.. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm unable to get Cmdlets such as
Get-PnPWeb
,Get-PnPList
,Get-PnPListItem
. to work in an Azure Runbook (module version 1.5.0). Is it's similar to what was discussed here: archiveInterestingly, I found
Get-PnPTenantSite
to work. Unfortunately, the three workarounds suggested are not helping:| Out-Null
is useless for Get-* cmdlets.The job gets suspended after 3 unsuccessful attempts.
Is this new or could it never be fixed for good? I couldn't tell from the linked, archived thread.
Thanks.
Update: Get-PnPWeb outputs a user not found message to the job stream console, for whatever reason.
Get-PnPWeb : The user could not be found. At line:5 char:9 + $webs = Get-PnPWeb + ~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Get-PnPWeb], ServerException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.GetWeb
Beta Was this translation helpful? Give feedback.
All reactions