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.
4,912 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,513 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,591 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.