Forum Discussion
Benoit_Fournier
Nov 05, 2018Iron Contributor
Issues provisioning sites from Azure Automation using PnP
We try to provision sites using PowerShell code in Azure Automation and get various errors. It is worse when we run many concurent sessions but, in the current case, even a single instance fail. ...
Nov 05, 2018
Hi Benoit,
The account you're using when running in ISE is the same as what you're using with Connect-PnPOnline when running in your runbook?
- Benoit_FournierNov 06, 2018Iron Contributor
Erwin,
Yes, same account. It didn't make sense for us because we always connect with the same user credentials.
The strange thing is that the same code runs correctly most of the times but sometimes errors occurs. It was one of the first occurence where the error was constant on azure and not present locally.
We also had 403 errors from SPO but these are not repeatable.
We changed the code a little (but connect with the same commands sequence) and restarted the job. We then had a lot less failures in the ±2500 sites that were provisionned in our test environment.
Thanks for caring.