The Wayback Machine - https://web.archive.org/web/20241127230419/https://www.geeksforgeeks.org/microsoft-azure-reduce-cost-using-virtual-machine/
Open In App

Microsoft Azure – Reduce Cost Using Virtual Machine

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

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 resource group and give it a name and pick a region. We’ll also select another VM image.

The first thing that we can save money with is Azure Spot Instance. This can save up to 90 percent of the normal VM price. You pay up to the maximum price that you optionally agreed to in advance. The catch is that your VM might be stopped when other users need the underlying Azure resources. This works well if you run workloads that can be interrupted. 

Now, let’s put in a username for the VM and also a password as shown below:

That’s the basics. We can also save money with Azure Hybrid Benefit. If we bring our own license for Windows Server or SQL Server, this can save up to 49 percent. We do have our own license actually, so let’s select it. 

Now, in the Management tab, we can also save money by configuring the VM to automatically shut down at a certain time. This means that the VM doesn’t run for 24 hours, but stops at a certain time of day.

Finally, you should take care to pick the right size for your VM. There are many sizes and types to choose from, and each one has a different price. Assess your VM usage regularly and scale the size of your VM to what you need. You might not need a large, expensive VM. Azure VMs is one of the basic building blocks for your solutions. 


Previous Article
Next Article

Similar Reads

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 - 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. Implementation: Follow the below steps to set up auto-shutdown of Azure Virtual Machines: Step 1: Login to Azure Portal at https://portal.azur
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
7 Tips to Reduce Cost with Azure Virtual Machines
In this article, we will see various ways by which we can save costs with Azure virtual machines. Azure Virtual Machines (VMs) are software emulations of the physical computer, which have a virtual processor, memory, storage, and networking capabilities running inside the host's data center in a virtualized environment. In these cases, the host is
5 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 - 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 - 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 - 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 - Using Cost Management in Azure Portal
In this article we will learn how to use cost management to understand your spending in the cloud, so you can do more with less. Cost management is available from any subscription or resource group within the portal. Since starting on the Azure home, the first thing that you want to do is click on the scope pill so that you can verify that you are
2 min read
Microsoft Azure - Using Cost Recommendations on Azure Advisor
In this article, you learn how to save money in Azure using Azure Advisor cost recommendations. Azure Advisor is a single pane of glass for all your Azure best practices. It analyzes your subscriptions, environment, and configurations to generate best practice recommendations, which are super actionable and tailor-made for you. These recommendation
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 - 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 - 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 - 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 - 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 - 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 - 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 P
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 - 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- 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
three90RightbarBannerImg