Forum Discussion
Can I run PnP PowerShell or CSOM PowerShell using Flow ?
Hi
I want Flow to kick off a PnP Powershell script.
This seems a pretty out of the box sort of thing to want to do.
Can I found anything on this ?
No
Anybody any ideas ?
Regards
Nigel
5 Replies
- BenSteginkIron Contributor
Do do this I always use Azure Automation and call a Runbook from Flow. Personally, I found that a lot simpler to get going with coming from an IT Pro background, However, as others have said, I've also heard Azure Function work well.
If you have Office 365, you already have Azure to some extent for your Azure AD instance.
Also, Azure Automation is free for the first 500 minutes of running PowerShell/Runbooks, so even if you need to create an Azure tenant to do it, you won't have to spend a dime unless you have REALLY long running scripts.
HI Nigel_Price9911,
Yes you can. Run the PnP PowerShell in an Azure Function and then trigger the azure Function from flow.
- Nigel_Price9911Iron Contributor
Thanks Pieter.
Unfortunately, I do not have access to Azure.
Is there another way of calling either PnP PowerShell or CSOM Powershell ?
Regards
Nigel
Maybe a webservice and call it with an HTTP action.