Replies: 4 comments 1 reply
-
Why has this issue been converted to discussion? It's happening for me as well. |
Beta Was this translation helpful? Give feedback.
-
After hours of testing and no help from the PnP.Powershell community I discovered that if you are using Managed Identity for authentification you need to have the following uncommented. It would appear that the PnP article about setting up an Azure function is incorrect when using Managed Identities and using a certificate currently doesn't appear to work with PnP.Powershell 2.2.x and PowerShell 7.2. https://pnp.github.io/powershell/articles/azurefunctions.html
This got rid of the issue for me... requirements.psd1
|
Beta Was this translation helpful? Give feedback.
-
PnP.PowerShell is a community driven module that people are contributing to or helping with in their spare time. You cannot expect any of us to drop everything we are doing just because you have an issue. Searching the comments here you will find lots of issues with assembly collisions and module load issues. Most of them have been bypassed in the more recent builds, so it is often a good idea to try the latest builds if you have issues of that nature. |
Beta Was this translation helpful? Give feedback.
-
@AndersRask I am sorry if I offended you... I am just use to chatting in more active communities I guess. It's really difficult to learn how to use this stuff when the documentation appears to be incorrect and doing basic things like just connecting causes so many issues. I totally get the value running pnp.powershell on a client but it is incredibly temperamental in Azure Functions. But thanks again... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am experiencing the below error in Azure Function Apps, can someone else tell me if they have the same issue or perhaps point me to a solution.
Reporting an Issue or Missing Feature
ERROR: The 'Connect-PnPOnline' command was found in the module 'PnP.PowerShell', but the module could not be loaded. For more information, run 'Import-Module PnP.PowerShell'.
Requirements.psd1
Profile.ps1
Azure Function Config
PowerShell Version: 7.0
Runtime version: 4.25.2.21138
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
See above...
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions