I have a PowerShell script that i want to run every 6 hours as a task scheduler on Azure. But the concern is that I don't want any Virtual machine for that. So is there any way so that it can be done without the creation of any virtual machine?
Running PowerShell Script in Azure as a task scheduler without creating any virtual machine
4.2k Views Asked by Sandeep Anand At
2
There are 2 best solutions below
0

For PowerShell currently Azure Automation is the preferred service as it is experimental currently in Functions.
https://learn.microsoft.com/en-us/azure/azure-functions/supported-languages
Experimental support for PowerShell is limited to version 4.0 because that is what's installed on the VMs that Function apps run on. If you want to run PowerShell scripts, consider Azure Automation.
There is many choices you could do this in Azure.
1.As Gaurav Mantri said, you could use Azure Automation, you could create a runbook and schedule it starting at a specified time. More information please refer to this link.
2.Use Azure Function App. You could create a
TimerTrigger - PowerShell
, like below:More information please refer to this link.
Note: Azure automation and function app all provide
FREE UNITS (PER MONTH)
.Hope it helps.