pnp / pnp/pnpframework

Issue running Invoke-PnpSiteTemplate inside azure automation

Open
#381 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Using Invoke-PnPSiteTemplate inside Azure Automation Runbook.
the script runs successfully locally, but when running inside Azure Automation, get the error below when Invoke command is run.

Method not found: 'System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1Boolean Enumerator.MoveNextAsync()'.

The template was generated using get-pnpsitetemplate
The template has few components:

  1. Documents library (folders and files).
  2. Events web part along with sp list.
  3. Quick links web part.
  4. Two text web part.
  5. Countdown timer web part.

Pnp version 1.6

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Invoke-PnPSiteTemplate entry point in an Azure Automation Runbook and compare it with the successful local run, including the PnP version 1.6 and runtime environment. Use the supplied provisioning template, generated by Get-PnPSiteTemplate, to reproduce the ConfiguredValueTaskAwaitable error. Done means identifying the runtime or dependency mismatch and documenting a confirmed compatible setup or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.