web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Why is calling PnP Pow...
Power Automate
Unanswered

Why is calling PnP PowerShelll from Flow Not Supported

(0) ShareShare
ReportReport
Posted on by 1,302

Hi 

 

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

 

Regards

 

Nigel

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    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:

    https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-provisioning#upload-the-pnp-powershell-module-for-your-azure-function

     

     

    Best regards,

    Mabel Mao

  • NPrice99 Profile Picture
    1,302 on at

    Hi

     

    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 ?

     

    Thanks

     

    Nigel

  • DaveKO365 Profile Picture
    4 on at

    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.    

  • NPrice99 Profile Picture
    1,302 on at

    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.

     

    Regards

     

    Nigel

     

     

  • DaveKO365 Profile Picture
    4 on at

    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. 

     

     

     

     

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard