Jun 14 2018
06:25 AM
- last edited on
Feb 06 2023
03:58 AM
by
TechCommunityAP
Jun 14 2018
06:25 AM
- last edited on
Feb 06 2023
03:58 AM
by
TechCommunityAP
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
Jun 14 2018 07:54 AM
HI @Nigel Price,
Yes you can. Run the PnP PowerShell in an Azure Function and then trigger the azure Function from flow.
Jun 14 2018 08:05 AM
Thanks Pieter.
Unfortunately, I do not have access to Azure.
Is there another way of calling either PnP PowerShell or CSOM Powershell ?
Regards
Nigel
Jun 14 2018 09:16 AM
Maybe a webservice and call it with an HTTP action.
Jun 14 2018 11:50 AM
Jun 18 2018 07:39 PM
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.