Invoke-PnPSiteTemplate gives sometimes errors (Azure Automation Runbook)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 259
- Forks
- 161
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
Hi,
I have created a Azure Automation Runbook that takes care of the automatic creation of SharePoint sites.
The runtime version of the runbook is 7.1 (Preview) and the PnP.PowerShell has version 1.9.0.
Currently, I can't count on the script at all. For example, if it needs to invoke 10 sites, it will fail on 5 of them.
If I rerun the same script again with the same templates it does run fine.
So there is something wrong in the Invoke-PnPSiteTemplate.
Random errors I get:
- A list, survey, discussion board, or document library with the specified title already exists in this website. Choose another title.
- Value does not fall within the expected range.
- ...
I have already tried to invoke the fields first and then the rest. But same errors occur.
Does anyone have a workaround for this please? Highly appreciated :)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names Invoke-PnPSiteTemplate, Azure Automation Runbook, PnP.PowerShell 1.9.0, and runtime 7.1 Preview, but no repository file or test. Start by reproducing the intermittent failures with the same runtime, version, and templates, then trace the provisioning invocation and its errors. Done means identifying a reproducible cause and documenting a verified fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, powershell
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100