Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • DevOps Lifecycle
  • DevOps Roadmap
  • Docker Tutorial
  • Kubernetes Tutorials
  • Amazon Web Services [AWS] Tutorial
  • AZURE Tutorials
  • GCP Tutorials
  • Docker Cheat sheet
  • Kubernetes cheat sheet
  • AWS interview questions
  • Docker Interview Questions
  • Ansible Interview Questions
  • Jenkins Interview Questions
Open In App
Next Article:
Virtual Machines in Microsoft Azure
Next article icon

Virtual Machines in Microsoft Azure

Last Updated : 03 Apr, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

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

Next Article
Virtual Machines in Microsoft Azure

H

hvbajoria
Improve
Article Tags :
  • Microsoft Azure
  • TrueGeek
  • DevOps
  • TrueGeek-2021
  • Cloud-Computing

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
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences