Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheduling PowerShell script in Azure

What is the best way of scheduling a PowerShell script in Azure? Should I create a VM and schedule it via a task scheduler. Or is there any better way?

I have a PowerShell script that I extracts data from audit log and reports some information. Thank you.

like image 970
Ram Avatar asked Feb 09 '16 19:02

Ram


People also ask

Can we schedule PowerShell script?

Use the task scheduler to schedule PowerShell scripts Using the task scheduler is one of the easiest ways to schedule PowerShell scripts. To do this: Right-click the Start button and choose “Run” In the dialog box, type “taskschd.

How do I schedule a runbook in Azure?

In the Azure portal, from your automation account, select Runbooks under Process Automation. Select the name of the runbook to schedule. If the runbook isn't currently linked to a schedule, you're offered the option to create a new schedule or link to an existing schedule.


1 Answers

You should use Azure Automation. Its easy to use and you can run jobs for 500 minutes for free (every month).

like image 166
Martin Brandl Avatar answered Sep 19 '22 12:09

Martin Brandl