powershellazurescriptingazure-automationazure-scheduler

Running PowerShell Script in Azure as a task scheduler without creating any virtual machine


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?


Solution

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

    enter image description here

    More information please refer to this link.

    Note: Azure automation and function app all provide FREE UNITS (PER MONTH).

    Hope it helps.