pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
989 stars 662 forks source link

[BUG] August update in regards with Azure Functions #2869

Open JonvR opened 4 years ago

JonvR commented 4 years ago

Reporting an Issue or Missing Feature

When running powershell from an Azure Function I get the following error: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

The July update gave me the same error as this issue: https://github.com/pnp/PnP-PowerShell/issues/2803

Expected behavior

No errors when running the function app.

Actual behavior

On test running the function, this appears: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. image

Steps to reproduce behavior

mostly these steps: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-provisioning or more easily

  1. Create a function app in Azure
  2. Set the function app to v1
  3. Switch to classic view
  4. Create a custom http function based on experimental powershell
  5. Go to kudu and create the modules folder under the created function app
  6. Create the SharePointPnPPowerShellOnline folder
  7. Copy the dll's from the 3.24.2008.1 folder into the SharePoint pnp folder
  8. Run a test run on the function app

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.24.2008.1

How did you install the PnP-PowerShell Cmdlets?

addyvandendoel commented 3 years ago

Well, 4 release up the line, and on version: 3.28.2012.0 now, probably the latest ever made for PS5. and still the same issue. rendering it useless for use with Azure. this version and the ones between this and the one mentioned in the report above i guess.