Azure Function to read list information

Nipuna Weerasinghe 1 Reputation point

Hi All,

I have created an Azure function to read through SharePoint online sites and get list information. But I m getting the following error.

Get-PnPField : List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.

Used connection string is --> Connect-PnPOnline -Url $SiteURL -ClientId "xxxxx" -Thumbprint "317A4xxx" -Tenant ""

But the same PnP code run on the local PC command prompt under my personal O365 account, it is working fine.

Can someone please help me on this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,017 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,210 questions
{count} votes