Showing results for 
Search instead for 
Did you mean: 
Kudo Kingpin
Kudo Kingpin

Why is calling PnP PowerShelll from Flow Not Supported



Why is PnP PowerShell not supported by Flow. (or even CSOM PowerShell) as most administrative work is now done by PnP PowerShell. ?





Community Support
Community Support

Hi @NigelP,


You could run the PnP PowerShell in an Azure function and then trigger the Azure function from flow. Please take this documentation on Calling the PnP provisioning engine from a site script for more details:



Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



I do not have access to the company's Azure plan.  So this solution will not work for me.


When will this be fixed in Flow so that Flow will be able to call PnP PowerShell ?


Do we have an ETA for this fix ?





I doubt there will be an ETA.  Microsoft don't give you any option to run your code (in this case PowerShell) on their servers.  This is why using something like an Azure Function is suggested.    

Hi DaveKO365


Thats why I specifically wanted PnP PowerShell as it runs on the local machine and uses remoting to update the lists on SharePoint Online.


I use PnP PowerShell all of the time to administer SharePoint Online.


So all I am asking for is to automate what I currently do when running PnP PowerShell scripts


I dont have access to the company Azure tenancy so using Azure functions is not an option.







I feel your pain Nigel,  and agree using PowerShell for administration is a great time saver.  


In the Fow environment, the process is running on Microsoft servers in the cloud so to excute the PowerShell on your local machine would need some sort of connector, and/or gateway to your on-premises environment.  I'd be interested to know if that is on any roadmap, but wouldn't be surprised if it had a low priority if was even on the list. 









Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,850)