Virtual Machines in Microsoft Azure
Last Updated :
03 Apr, 2023
Before we move on with how to deploy and use virtual machines in Microsoft Azure let's know a few things.
A Virtual Machine (VM) is like any physical laptop, smartphone, or server that we use in our day-to-day life. It has features like CPU, memory, storage size, and different networking ports with boot disk similar to the gadgets mentioned above.
But, these are virtual computers unlike laptops, smartphones that are physical and tangible. They exist as code and can be referred to as a computer inside a computer.
What can we use VMs for?
There are many ways by which a VM can be used especially when used with cloud technology.
Some of its use cases are :
- To run software or applications on an operating system that they are not intended for.
- To get a new environment inside the laptop or PC to make it simpler and quicker for developers to build and test applications.
- Build and deploy applications in the cloud that can be accessed anywhere, anytime.
- To simulate and try out the extreme conditions without incurring high costs.
Advantages of VMs :
The portability, flexibility, and availability of virtual machines give us many benefits :
- It saves costs on maintenance, electricity, and the need for infrastructure.
- It is quicker and faster to have a new virtual machine up and running.
- It has a much lower downtime compared to physical hardware.
- It is easily scalable and gives the same performance for each and every separate instance we require.
- It is safe and secure as any application running in the virtual machine's environment doesn't affect the main system.
Now let's our first Azure Virtual Machine using Microsoft Azure.
Creating our virtual machine using Microsoft Azure Portal :
Azure portal is an easy-to-use web-based user interface that helps to create, manage, deploy and use Azure resources effectively.
Prerequisites:
- You need to have an active Azure Subscription. You can avail a free 12-month subscription by going here.
After you have signed in to your account follow the simple steps below to have your virtual machine up and running :
Step 1: You will be on the Azure homepage, go to Azure services, select Create a resource. The Create a resource pane appears, displaying popular products for Azure services.
Step 2: There are many options to choose from VM that fall under compute. In the left menu pane, select Compute, and in the Search services and marketplace search box, enter Virtual Machines and press Enter.
Step 3: Select Create. The Create virtual machine pane will appear.
Step 4: Enter all the details about the subscription, resource group, virtual machine name, region, availability options, image, and Azure Spot instance of the virtual machine you wish to create. If the resource group doesn't exist click create new to create a new resource group.
Step 5: In the Administrator account section, Choose a Username, Password that you will use to login to the VM once created. Also, choose inbound ports like (HTTP 80) using which you will connect.
Step 6: There are several other tabs you can explore to see the settings you can influence during the VM creation. Like in the disk you can add the disk architecture that you want. In the networking tab, we can change the networking configurations( add subnets, inbound ports, and many more. We can change all this as per business needs.
Step 7: After we are done configuring the virtual machine select Review + create to review and validate the settings. Azure will validate the configuration settings for a resource before it creates it. We may need to supply some additional information based on the requirements of the image creator built into Azure. This is simple; just open the tab that has an error. Verify all the settings are set the way you want, and then select Create to deploy and create the VM.
Step 8 : Now click on the “Create” button. The VM deployment process takes a few minutes to complete. It will show you “Your deployment is complete“. Now you can click on "Go to resource".
Step 9: The Overview page of the VM appears. Here, we can see all the information and configuration options for the newly created VM. One of the pieces of information is the Public IP address with which we can connect with our VM.
Step 10: Congratulations, Now we have created our first VM successfully.
Congratulations! With a few steps, you learned what is VM, and deployed it on Azure.
We can also create VM using :
- Azure PowerShell
- Azure CLI
- Azure REST API
- Azure Client SDK
- Azure Automation Services
Similar Reads
Microsoft Azure - Introduction to Spot Virtual Machines In this article, we will see what are Spot Virtual Machines and how can one save costs using these virtual machines. Azure Spot Virtual Machines: Azure spot virtual machines are the VMs that are unused at the time and one can take advantage of Azure's this spare compute capacity for their needs at a
5 min read
Microsoft Azure - Improvements in Linux Virtual Machine Azure provides an easy method of creating and accessing Linux Virtual Machines (VMs) with SSH Keys. It makes things simpler for you so that you can concentrate on your work instead of complicated setup. In this article, you will learn the steps you need to create a Linux VM, generate SSH keys automa
3 min read
Microsoft Azure - Accessing Virtual Machines using Bastion In this article, we will learn how to use Azure Baston to access virtual machines. You can use Azure Bastion to connect to your Azure VMs without exposing your VMs to the public Internet. Azure Bastion is a fully managed service used for securing Remote Desktop Protocol (RDP) and Secure Shell Protoc
2 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 "Vi
2 min read
Azure Virtual Machine Pricing Virtual Machines are one of the computing resources offered by Microsoft Azure. These are available on-demand and are scalable. Virtual Machines offers more control over the computing environment. Virtual Machines provides the flexibility of Virtualization without the need to purchase physical hardw
9 min read
Microsoft Azure - Managing Multiple Virtual Machines In this article, we will look into how to easily start, restart, or stop multiple VMs in Microsoft Azure. You may already know that you could start, stop, and even delete VMs inside of the Azure portal. But did you know that you could do these operations to multiple VMs at the same time? Let's go ov
2 min read
Azure Virtual Machine Scaling In today's ever-evolving digital landscape, companies are forever required to juggle effectiveness in management of resources with changing demand. When the number of people surfing your website jumps suddenly or if your fascinating tasks about mathematical simulations run out of CPU power, being ab
12 min read
Azure Managed Disk Types - Virtual Machines In this article, we will be discussing the type of disk storage in Azure. In the cloud computing domain, Microsoft Azure is one of the leading platforms that provides different types of disk storage, which plays an important role in applications and data. There are mainly two main types of Disk Stor
10 min read
Microsoft Azure - Virtual Network Pre-requisite: Azure Whenever an organization moves from on-premises to a cloud-like Azure, they require the same networking functionality as they had in on-premises deployment with some level of network isolation. Azure provides different networking components to carry out these functionalities and
8 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 infor
3 min read