Share via

How to run multiple pnp scripts in azure function app (one script function is calling another script function).

Anonymous
2023-07-27T09:56:13+00:00

How to run multiple pnp scripts in azure function app (one script function is calling another script function).

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Stefan Blom 342.6K Reputation points MVP Volunteer Moderator
    2023-07-28T15:34:53+00:00

    You may want to post your question using the Azure Automation tag in the Q&A forum:

    https://learn.microsoft.com/en-us/answers/tags/210/azure-automation

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-07-27T10:32:45+00:00

    Hello SunnyRastogi,

    I’m Segunfunmi, an Independent Advisor and Microsoft user like you. Thanks for posting the query here in this forum.

    You can run multiple PnP scripts in an Azure Function app by packaging all the functions in different directories, such as CosmosDBTrigger, TimerTrigger, and HttpTrigger, as separate functions, but use one SINGLE host.json for all three. You need to include all three functions’ host information in one file. Then after deployment, you’ll see multiple tasks under a single app service. Also, you can make PnP PowerShell available to all functions in the Azure function app by navigating to App files, located on the left side menu of the function app under the Functions header. In the dropdown presented near the top, select requirements. Sd.

    Is there anything else I can help with?

    Kind Regards, Segunfunmi.

    Was this answer helpful?

    0 comments No comments