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.

Success! You're on the list.