SharePoint Online PowerShell modules missing from list of available modules for Azure Functions

Paul Rebelo 1 Reputation point
2022-01-13T13:53:42.59+00:00

I'm testing Azure functions for the first time using PowerShell.
I'm trying to interact with SharePoint using the PnP.PowerShell module but it or any other SharePoint PowerShell module is missing from the list of available modules.
I was able to upload the module to the function wwwroot folder. But using Import-Module in the function to load it throws an error
Is this a licensing issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Microsoft 365 and Office SharePoint Development
Windows for business Windows Server User experience PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2022-01-13T19:30:21.963+00:00

    Hello @Anonymous

    the most likely is that there is some step missing during the installation. I would recommend the next guide:

    https://techcommunity.microsoft.com/t5/microsoft-365-pnp-blog/getting-started-with-azure-shell-and-pnp-powershell-with/ba-p/2315482

    Also this official article:

    https://devblogs.microsoft.com/microsoft365dev/new-version-of-the-pnp-powershell-open-source-cross-platform-powershell-module-to-manage-microsoft-365/

    Hope this helps with your query,

    -----------

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.