Reading Time: 5 minutes
Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email

In this article, I am going to show you how to create a basic Azure VM.

How to Create a Windows VM in Azure

Log in to your Azure Subscription by going to https://portal.azure.com

Click the green + and then Search for Windows Server

Click the version of windows you would like. In this scenario I am using Windows Server 2016 Datacenter

Make sure the deployment type is set to Resource Manager and then click Create

You should now be presented with a screen like this

What does each attribute mean?

  • Name – A name for your new VM. Virtual Machine name cannot contain non-ASCII or special characters, cannot contain only numbers.
  • VM disk type – pick between SSD or HDD depending on your needs.
  • User name – Enter a user name you want to use to logon to the server, must be at least 2 characters long and not contain special characters.
  • Password – The password you want to use for the above user name.
  • Confirm password – Re-enter the above password.
  • Subscription – Select the subscription you want this VM to be associated with.
  • Resource group – You can either create a new Resource group or use an existing one.
  • Location – select the location you want the VM to be in.
  • Once you have filled this in you should have something like this

    You will now be presented with 3 virtual machine sizes

    If you can not see the size you would like you can click View all

    Select the size you need to use. And then click Select

    You should now have a screen like this

    What does each attribute mean?

  • Use managed disks – Enable this feature to have Azure automatically manage the availability of disks to provide data redundancy and fault tolerance, without creating and managing storage accounts on your own.
  • Storage account – Disks for Azure virtual machines are created in storage accounts. You can either let Azure create you a new Storage account or you can create your own, you can even use an existing one if you already have one.
  • Virtual network – This is the Virtual network you would like the new VM to sit in. You can either let Azure create you a new Virtual network or you can create your own, you can even use an existing one if you already have one.
  • Subnet – This is the Subnet you would like the new VM to sit in. This has to be in the Virtual network you picked.
  • Public IP address – This is to allow you to communicate with your VM from outside of your virtual network. You can always remove this at a later date. This is needed to be able to RDP to the VM if you have no other solution in place.
  • Network security group (firewall) – A network security group is a set of firewall rules that control traffic to and from your VM. This has RDP allowed by default. You can either create a new one, use an existing, or use none.
  • Extensions – Allows you to add new features, like configuration management, antivirus protection and PowerShell Desired state Configuration (DSC).
  • Availability set – Availability sets provide redundancy to your application, it is recommend that you group two or move virtual machines in an availability set. The availability set of a VM can not be changed after it has been created.
  • Boot diagnostics – Allows you to capture serial console output and screenshots of the VM running on a host to help troubleshoot startup issues.
  • Guest OS diagnostics – Gets metrics every minute for your VM. You can use this to create alerts.
  • Diagnostic storage account – The storage account the metrics are written to. This only shows if you set Boot Diagnostics to Enabled.
  • Configure the options to what you need. And then click OK In this demo I am just going to accept the defaults.

    Azure will go through some Validation. Once it has passed click OK to start the deployment of your new Azure VM.

    And that’s how to create a Basic Virtual Machine in Azure.

    Connect to New Azure Virtual Machine

    If you have created your Azure virtual machine with a public IP Address you can RDP to it.

    Click All resources

    Locate the VM you want to RDP to and then click it

    Click the Connect button

    An RDP file will be downloaded.

    Open the RDP file and click connect on the warning.

    Enter the credentials you entered when creating the VM

    Click Yes on the warning window

    You have now logged in to your Azure Virtual Machine.

    Share:
    Twitter
    LinkedIn
    Facebook
    Reddit
    Whatsapp
    Follow by Email
    Categories: Azure

    Pixel Robots.

    I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

    1 Comment

    How To Setup Nested Virtualization In Microsoft Azure – Pixel Robots. · November 14, 2017 at 9:13 pm

    […] not going to walk you through the process of creating an Azure VM in this guide, but if you click here you can follow one from a previous article of mine. Just make sure you pick either a Dv3 or Ev3 VM […]

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    I agree