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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard