The Wayback Machine - https://web.archive.org/web/20240930213402/https://www.geeksforgeeks.org/microsoft-azure-setting-up-a-auto-shutdown-for-azure-virtual-machine/
Open In App

Microsoft Azure – Setting up a Auto Shutdown For Azure Virtual Machine

Last Updated : 31 Mar, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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.

Implementation:

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.


Previous Article
Next Article

Similar Reads

Microsoft Azure - Setup Auto Startup and Shutdown of an Azure VM
In this article, we will be seeing about how we can set up an auto stop and start of Azure VM/ Azure VMs on schedule time during business off-hours, The main objective of the task is to save the cost of resources that are being used on non-business hours. Prerequisites: Azure VM/Azure VMsLog Analytics Workspace Automation Account to hold the Automa
2 min read
Microsoft Azure - Resize a Azure Virtual Machine for Windows or Linux Servers
In this article, we will look into the process of resizing Azure VM size for Linux and Windows servers. Implementation: Follow the below steps to resize a Azure Virtual Machine with new size. Note: The Process is same for both the Windows and Linux OS Servers. Step 1: Log in to Azure Portal. Step 2: Go to Virtual Machines and select your Virtual Ma
2 min read
Microsoft Azure - Retrieve Azure Virtual Machine Admin User Name
In this article, you will get to know, how you can find an azure Virtual machine admin user name in crucial situations to recover an azure VM Username. Purpose - this username will help you to reset an azure VM password in the absence of Admin or else if some forget or In case of verifying the username. Implementation: Follow the below steps to fin
1 min read
Microsoft Azure - Manage Virtual Machine via Azure Mobile App
In this article, you will get to know how to stay connected and in control of Azure virtual machines while using the Azure mobile app. The Azure mobile app is also called a VM app. Implementation: You would see the metric chart and find that spike visually via the chart and then you have those commands available for you that you can just in one cli
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read
Microsoft Azure - Reduce Cost Using Virtual Machine
In this article, we will look into tips to save costs with Azure VMs. Here, we'll explore five tips that will help you to reduce the costs of your Azure VMs. Let's start by creating a VM. Here in the Azure portal, we click on "Create Resource". And then select the "Compute" category and select a "Virtual Machine." We'll start by selecting a resourc
2 min read
Microsoft Azure - Resizing Virtual Machine Using PowerShell Script
In this article, we will look into the process of resizing azure VMs at once using the Azure PowerShell automation script in the Azure portal by using the cloud shell. Advantages of using the method approach: Resizing Multiple VMs at once in a follow for select subscriptionSaves the time of the UserSimplifying the Actions by Automating the processR
2 min read
Microsoft Azure - Check Virtual Machine Creation Date and Time
Finding Azure Virtual Machine Creation Date and Time is not a property of any of the PowerShell or AZ CLI commands. But, with the help of disk creation date, we can find or get the Azure Virtual Machine Creation Date and Time. In this article, we will be using Azure PowerShell Command to get the results and we will also see the process of checking
2 min read
Microsoft Azure - Create Windows Based Virtual Machine Scale Sets (VMSS)
Typically, We will create each virtual machine manually. But what if we want to create 100s of similar VMs? It's time-consuming and requires lots of human effort. This is possible with the help of Virtual Machine Scale Sets (VMSS). In this article, we'll see what these Virtual Machine Scale Sets are and how to create them in Microsoft Azure Portal.
5 min read
Microsoft Azure - Simpler Management of Virtual Machine
In the given article we will learn how to easily configure your virtual machines to make the most out of Azure. Azure has allowed you to quickly and seamlessly manage your virtual machine right within the Azure Portal. Implementation: In the VM overview, the first we’ve done is categorize your information into different tabs. In the first tab, whic
3 min read
Microsoft Azure - Increase Processors & Memory Size of Windows Virtual Machine
In this article, we'll be learning about how we can increase the number of Azure Windows VM processors and memory size for the best performance. Let's dive into the process. To begin with, MSConfig/System Configuration Utility is an inbuilt tool in Windows Servers that allows users to manage system boot options. Let's start the implementation. Impl
2 min read
Microsoft Azure - Common Virtual Machine Issues
In this article, you will learn how to troubleshoot issues with your virtual machine using the tools available in the portal. Imagine now you have a virtual machine that you cannot RDP into. What can you do? You can either search for information online or you can submit a support request with Microsoft Support and get help from there. But now, the
3 min read
Microsoft Azure - Improvements in Linux Virtual Machine
In this article we will learn how to easily create a Linux virtual machine using SSH keys and to connect to it. Azure makes it super easy for you to create a VM and connect to it. The new virtual machine creates an experience on Azure, the only input that you need here is the virtual machine name. Everything else Azure automatically defaults for yo
3 min read
Microsoft Azure - Find Virtual Machine Extensions using Resource Graph Query
Azure is Microsoft’s cloud platform, just like Google has its Google Cloud and Amazon has its Amazon Web Service or AWS.000. Generally, it is a platform through which we can use Microsoft’s resources. Here in this article, we are going to learn about how we find azure virtual machine-installed agents or extensions using the azure resource graph que
2 min read
Microsoft Azure - Track CPU Utilization of a Azure Virtual Machines using KQL Log Query
In this article, we will look into the process of finding the Minimum, Average, and Maximum CPU Utilization of all Azure Virtual Machines using KQL Log Query. Here the Perf KQL Counter Operator is used to find Azure Virtual Machines performance from collected data logs. Implementation: Follow the below steps to Run the Log Queries. Step 1: Log in t
4 min read
Microsoft Azure - Getting started with Azure Machine Learning Service
Pre-requisite: Azure Azure is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services. Azure Machine Learning is a fully managed cloud service to do the following tasks: Cloud-based predictive analytics service. Provides tools to create complete machine-learning solutions in the cloud.
6 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - Configure Azure SQL with Azure CLI
In this article, we're going to take a closer look at how you can configure something like connectivity using the Azure CLI. What we have here is we are in Azure Data Studio and similar to the SQL notebook we are actually using a PowerShell notebook. That just means all our code cells are going to run PowerShell and we are just connecting to localh
4 min read
Microsoft Azure - Get CPU Utilization Data of a Azure VM in Azure Portal
Azure Virtual Machines (VM) is one of several types of on-demand, scalable computing resources that Azure offers. In this article, we will look into the process of getting the CPU Utilization data of an Azure VM in Azure Portal. Implementation: Follow the steps to get the CPU Utilization of an Azure VM in Azure Portal: Step 1: Log in to your Azure
2 min read
Microsoft Azure - Archive Azure VM to Azure Storage Account
In this article, we will be implementing a solution to archive a select azure VM snapshot to a select storage account for archiving using azure cloud shell. For implementation, we will be using Azure CLI commands. Prerequisite:VM SnapshotA storage account is neededUser needs "Storage Blob Contributor Data" IAM Role Access on Archiving Storage Accou
2 min read
Microsoft Azure - Check Status of Azure VM using Azure PowerShell
The following Azure PowerShell command helps you to find the Azure VM Config and properties details of Os Name, Os Version, Hyper V Generation, Disks properties, Extensions properties of Type Handler Version, Status and Message, VM Agents properties of Type Handler Version, Status and Message and also VM Power Status Codes, Messages, Plugins, Time
3 min read
Microsoft Azure - Azure VM Disk Space in Percentage using Azure KQL
Here we'll be using the Azure Insights Metric Query to find the free disk space in percentage using KQL. The purpose of this query is to find disk drive free space of all the Azure VMs without logging into every server. You can Run the following KQL log Queries in Azure Monitor or Azure VM Logs or Log Analytics Workspace. Note: VM Insights Agent sh
1 min read
Microsoft Azure - Enable Azure Monitor VM Insights Agent For Azure VM
Azure Monitor VM Insights Agent enables you to get more visibility into the health and performance of your Azure VM. Here we'll see how we can enable Azure Monitor VM Insights to monitor the health, performance, and dependencies of azure virtual machines. Implementation: Follow the below steps to enable Azure Monitor VM insights agents for an Azure
2 min read
Microsoft Azure - Azure CLI Commands to Manage Azure VMs
Azure Command-line interface is used to manage or to create Azure resources. By using the simple AZ CLI command we can manage Azure VM quickly and at a Scale. Let's get started by using a few important Azure CLI commands to manage Azure Virtual Machines. 1. Start a Specific Stopped VM in a Select Resource Group Use the below command to start a spec
2 min read
Microsoft Azure - Manage Azure VMs using Azure PowerShell Commands
Here we are using Azure PS Commands to manage azure resources from Azure Cloud Shell or by using Windows PowerShell. By using the simple AZ PS command we can manage Azure VM Quicks without any efforts of navigating in Azure Portal and at Scale. Let's get started by using the major Azure PS commands to manage Azure Virtual Machine. 1. Start a Specif
2 min read
Microsoft Azure - Query Azure Storage Logs in Azure Monitor Log Analytics
Pre-requisite:- Azure Log Analytics is a tool offered by Azure, which is used to edit and run log queries against data in the Azure Monitor Logs store and helps interactively analyze their results. One can easily use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide various insi
5 min read
Microsoft Azure - Install Azure Command Line Interface (Azure CLI)
Azure CLI is a very powerful tool that can be used to automate tasks, create, update, manage or delete azure resources or to troubleshoot problems with az module cmdlets. By installing az modules on your system or on your development system you and your development team can easily create, update or manage Azure AD and Azure resources such as manage
4 min read
Microsoft Azure- Backing Up, Restoring, and Cloning Microsoft Azure App Services
Microsoft is well known for developing relevant software which are using in today's time of technology to conquer the demand of users and developers to build up applications. In sequence of it Microsoft introduces Azure well known as Microsoft Azure to make quality applications. In this article, we will discuss Backing up, restoring and cloning Mic
8 min read
Microsoft Azure -Create a User in Microsoft Entra ID from Azure Portal
A user in Microsoft Entra ID is an individual who can get access to Azure identity. This Microsoft Entra ID identity can be used to access applications and resources that are protected within the organization or project. Users can be created manually or automatically, and they can be assigned to groups and roles to control their access permissions.
3 min read
Microsoft Azure- Disk Storage in Microsoft Azure
Azure Disk Storage is the only shared cloud block storage that supports both Windows and Linux-based clustered or high-availability applications via Azure shared disks. There are two types of Disks in Azure : Managed Disks Unmanaged Disks.Managed DisksSimplest optionLower management overhead as Azure manages the storage accounts.Only LRS replicatio
6 min read