Microsoft Azure – Setting up a Auto Shutdown For Azure Virtual Machine
Setting up an Auto-shutdown will help in reducing the cost of azure virtual machines. This setup is very useful during non-working hours as it saves cost and is a good practice for working with VMs in Azure.
Follow the below steps to set up auto-shutdown of Azure Virtual Machines:
Step 1: Login to Azure Portal at https://portal.azure.com/
Step 2: Go to Virtual Machines or you can search Virtual Machines in the page search bar.
Step 3: Now, Select your VM which you want to set up an Auto Shutdown. Here I have a “VM1” Virtual Machine which I’m going to configure Auto Shutdown.
Step 4: After selecting your preferred VM from left menu scroll to Operations >> select Auto-shutdown
Step 5: In this step, we are going to enable auto-shutdown and we will schedule a time for a select time zone.
- You can also set up an alert notification by setting up an email address. For that, you have to choose to send notification before auto-shutdown? >> yes
- Webhook URL : leave blank (optional)
- Email address: Add your mail address to which you want to get notified.
Step 6: After setup, the auto-shutdown configuration, Click on “Save” to save the config changes.
That’s it you are done.