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.
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.
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.
You should use Azure Automation. Its easy to use and you can run jobs for 500 minutes for free (every month).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With