Configure Azure VM Auto-Shutdown With Azure CLI

This blog post will show you how to configure a Microsoft Azure virtual machine to auto-shutdown using Azure CLI.

Azure CLI

If you don’t have Azure CLI installed you can either install it on your machine or use Azure Cloud Shell.

The following Azure CLI command will configure Auto-shutdown on an Azure machine called windows 10. It will shut down automatically every day at 1130 UTC. Before setting the time, make sure you set the right UTC based on your zone.

az vm auto-shutdown --resource-group wsl -name windows10 --time 1130

For more Azure blog posts please visit our Azure category page.

Processing…
Success! You're on the list.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.