Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Why is calling PnP PowerShelll from Flow Not Supported

(0) ShareShare
ReportReport
Posted on by 1,272

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:
  • DaveKO365 Profile Picture
    DaveKO365 4 on at
    Re: Why is calling PnP PowerShelll from Flow Not Supported

    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. 

     

     

     

     

     

     

     

     

  • NPrice99 Profile Picture
    NPrice99 1,272 on at
    Re: Why is calling PnP PowerShelll from Flow Not Supported

    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
    DaveKO365 4 on at
    Re: Why is calling PnP PowerShelll from Flow Not Supported

    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
    NPrice99 1,272 on at
    Re: Why is calling PnP PowerShelll from Flow Not Supported

    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

  • v-yamao-msft Profile Picture
    v-yamao-msft on at
    Re: Why is calling PnP PowerShelll from Flow Not Supported

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard