Azure Automation Runbooks using Powershell: Push notifications error?

Copper Contributor

I'm trying to run some PnP PowerShell commands in an Azure Runbook (e.g. Get-PnPContentType, Apply-PnPProvisioningTemplate, etc. ) over a SharePoint site, but it keeps returning the error below:

 

The Push Notifications feature is not activated on the site

The correct modules have been imported and it only errors on some commands. Running the commands in a PowerShell window with the same credentials doesn't produce any errors, and activating the 'Push Notifications' feature manually and retriggering the Runbook won't produce any error output, but will say that the Runbook failed to run 3 times.

1 Reply

It was either this:

Enable-PnPFeature -Identity 41e1d4bf-b1a2-47f7-ab80-d5d6cbba3092 

or upgrading the azure automation module to

SharePointPnPPowerShellOnline 3.21.2005.1

 

I was running

SharePointPnPPowerShellOnline 3.20.2004.0

and got that error if I ever tried to add a second attachment to a list item .... the third item would always work, very weird.