Steps to create a VM in Microsoft Azure

Steps to create a VM in Microsoft Azure

In this blog, we will show you the steps to create a VM in Microsoft Azure using Azure Portal.

 

THINGS TO KEEP IN MIND REGARDING AZURE VM’s

 

  • If you shut down your VM, Azure will still allocate the hardware resource for that VM. Make sure that VM is stopped and deallocated.
  • Deleting the VM doesn’t delete the VHD.
  • Azure works on Per Minute runtime Model. The licensing is depending upon the OS used in the VM.
  • The other assets like public IP address, data disk, etc., will be charged separately.
  • You cannot connect VM without NSG (Network Security Group) rule.
  • Virtual Networks are isolated containers. You cannot connect a VM from other Virtual Network by default. To accomplish this, need to create V-NET to V-NET VPN.
  • Azure naming conventions are important and DNS Names should be unique globally.

VM INSTANCES TYPES AND SIZES

  • Licenses for VM Instances can be included (or) BYOL (Bring Your Own License).
  • Microsoft Azure covers the cost of both server and client access licenses when you run windows VM’s. For Linux, It depends on the vendor.
  • Azure charges for per minute runtime model.
  • You can capture and upload your own custom VM images as well.
  • You can scale your VM instances size up or down to suit your workloads.

Note : As we are creating the First VM under this subscription, so we need to create all the resources from the scrach in this demo.

 

CREATING RESOURCE GROUP

Steps to create a VM in Microsoft Azure

 

  • Once you’re logged in, click on Resource Groups on the Azure portal.

Steps to create a VM in Microsoft Azure

 

  • The resource group is a logical container for a collection of resources where we can maintain easily. Click on Create Resource Group.

Steps to create a VM in Microsoft Azure

 

  • Provide the Resource Group Name, Subscription & Resource Group Location and click on Create.

Steps to create a VM in Microsoft Azure

 

  • New resource group will be displayed in the list.

Steps to create a VM in Microsoft Azure

 

CREATING VIRTUAL NETWORK

  • From the Azure portal homepage, Click on Virtual Networks from the resource list.

Steps to create a VM in Microsoft Azure

 

  • Click on Create Virtual Networks button from virtual network home page.

Steps to create a VM in Microsoft Azure

 

  • Provide the Name, Address Space, Subscription, Resource Group, Location, Subnet Name, Subnet Address range. In this demo, we set the address space as 192.168.232.0/24. The subnet address range is 192.168.232.0/25. Also, we select the existing resource group (AZResourceGroup). Then Click on Create button.

Steps to create a VM in Microsoft Azure

 

  • This Virtual network will be used to communicate within the VM in this network. Once deployment process is completed, it shows on the Virtual network list.

Steps to create a VM in Microsoft Azure

 

CREATING PUBLIC ADDRESS

  • A Public address is required to access the VM. For Example RDP. From the Azure portal, search for Public IP address and Click on it.

Steps to create a VM in Microsoft Azure

 

  • Click on the Create Public IP Addresses button.

Steps to create a VM in Microsoft Azure

 

  • We select the basic load balancer (SKU), IP address type as IPV4, IP address assignment as Dynamic, DNS name as azdns. Also, we select the existing subscription, resource group & Location from the drop-down list. Click on Create button.

Steps to create a VM in Microsoft Azure

Steps to create a VM in Microsoft Azure

 

  • Created the Public IP addresses successfully.

Steps to create a VM in Microsoft Azure

 

CREATING NETWORK SECURITY GROUP

  • From the Azure Portal Homepage, Click on More services option.

Steps to create a VM in Microsoft Azure

 

  • In the search box, type network security group and Click on it.

Steps to create a VM in Microsoft Azure

 

  • Click on Create Network Security Groups button.

Steps to create a VM in Microsoft Azure

 

  • Provide name and resource group details and click Create.

Steps to create a VM in Microsoft Azure

 

  • Click on the NSG (Network Security Group) name from the list.

Steps to create a VM in Microsoft Azure

 

  • Click on the Inbound security rules option.

Steps to create a VM in Microsoft Azure

 

  • Select the Add button

Steps to create a VM in Microsoft Azure

 

  • Click on Basic Button.

Steps to create a VM in Microsoft Azure

 

  • Select the service as RDP and provide a name for this rule. Leave the priority by default. Click on OK.

Steps to create a VM in Microsoft Azure

 

  • The new rule will appear in the inbound rules list.

Steps to create a VM in Microsoft Azure

 

CREATING STORAGE ACCOUNT

  • Click on the Storage accounts option from the service list.

Steps to create a VM in Microsoft Azure

 

  • Click on the Create Storage Accounts button.

Steps to create a VM in Microsoft Azure

 

  • Provide a name for the storage account and leave the default deployment model (Resource Manager). Select the accounting kind based on your purpose. We selected the performance type option as the standard for this demo. We select the replication type as Locally-Redundant Storage (LRS). More information about storage is available in this URL https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy. Select the existing subscription, Resource Group & Location from the drop-down list. Also, we have disabled the Virtual networks (Preview) option. Then click on create.

Steps to create a VM in Microsoft Azure

Steps to create a VM in Microsoft Azure

 

  • You can see the progress in the notification window. After few seconds, storage account will display in the list.

Steps to create a VM in Microsoft Azure

 

  • Now everything is set to create a VM in Azure Portal.

 

CREATE A VM IN AZURE PORTAL

  • Click on Virtual Machines option from the services list.

Steps to create a VM in Microsoft Azure

 

  • Click on the Create Virtual Machines option.

Steps to create a VM in Microsoft Azure

 

  • For the demo purpose, we are using windows 2012 R2 operating system. In the search bar, type windows and select windows server 2012 R2 Datacenter

Steps to create a VM in Microsoft Azure

 

  • There are two types of deployment models are available in Microsoft Azure. They are Azure Service Manager and Azure Resource Manager. Azure Service Manager is an old model which is called as Classic. Microsoft strongly recommended using Azure Resource Manager. More information about resource manager is available at this URL https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-deployment-model. Select the resource deployment model as Resource Manager from the drop-down list and Click on Create.

Steps to create a VM in Microsoft Azure

 

  • For demo purpose, we provide VM name as AZ-VM-01, VM disk type as HDD, username as azadmin and its password. Select the existing subscription, resource grouplocation from the drop-down list. Select the license type and Click OK.

Steps to create a VM in Microsoft Azure

Steps to create a VM in Microsoft Azure

 

  • For this demo, Click the VM Size as A1 standard and click on Select button.

Steps to create a VM in Microsoft Azure

 

  • We disabled the managed disk option for this demo. Select the Storage account, Virtual Network, subnet, Public IP address, Network security group accounts which we created earlier and Click OK.

Steps to create a VM in Microsoft Azure

Steps to create a VM in Microsoft Azure

 

  • Verify the VM summary details and Click on Create.

Steps to create a VM in Microsoft Azure

 

  • It will take few minutes to complete this operation. The new VM will display in the list.

Steps to create a VM in Microsoft Azure

 

VERIFYING THE VM

  • Open the RDP and provide the VM IP and click Connect.
  • Provide the login credentials and click on OK.
  • Once you logged into the VM and check the IP details. We can find our virtual network IP has been assigned to the VM.

Steps to create a VM in Microsoft Azure

 

  • Also, there will be two disks available for this VM. One is OS disk and another one is temporary disk.

Steps to create a VM in Microsoft Azure

 

  • Microsoft has already placed a Readme file on this disk. Use this disk for temporary data, such as page or swap files.

Steps to create a VM in Microsoft Azure

 

VIDEO

Thanks for reading this blog. We hope it was useful for you to know to create a VM in windows azure portal.



Author: Loges
Logeswaran holds Microsoft certified engineer & solution architect certifications with over 11+ years of experience in the fields of hosting technologies and IMS/Cloud consulting. At AssistanZ, Logeswaran spearheads the strategic planning and execution of the company’s Microsoft based core technologies to Enterprise clients.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.