- November 9, 2017
- Posted by: Loges
- Category: Blog, Cloud Computing
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
- Log in to the Azure portal URL https://portal.azure.com/ using your subscription credentials.
- Once you’re logged in, click on Resource Groups on the Azure portal.
- The resource group is a logical container for a collection of resources where we can maintain easily. Click on Create Resource Group.
- Provide the Resource Group Name, Subscription & Resource Group Location and click on Create.
- New resource group will be displayed in the list.
CREATING VIRTUAL NETWORK
- From the Azure portal homepage, Click on Virtual Networks from the resource list.
- Click on Create Virtual Networks button from virtual network home page.
- 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.
- 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.
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.
- Click on the Create Public IP Addresses button.
- 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.
- Created the Public IP addresses successfully.
CREATING NETWORK SECURITY GROUP
- From the Azure Portal Homepage, Click on More services option.
- In the search box, type network security group and Click on it.
- Click on Create Network Security Groups button.
- Provide name and resource group details and click Create.
- Click on the NSG (Network Security Group) name from the list.
- Click on the Inbound security rules option.
- Select the Add button
- Click on Basic Button.
- Select the service as RDP and provide a name for this rule. Leave the priority by default. Click on OK.
- The new rule will appear in the inbound rules list.
CREATING STORAGE ACCOUNT
- Click on the Storage accounts option from the service list.
- Click on the Create Storage Accounts button.
- 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.
- You can see the progress in the notification window. After few seconds, storage account will display in the list.
- 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.
- Click on the Create Virtual Machines option.
- 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
- 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.
- 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 group, location from the drop-down list. Select the license type and Click OK.
- For this demo, Click the VM Size as A1 standard and click on Select button.
- 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.
- Verify the VM summary details and Click on Create.
- It will take few minutes to complete this operation. The new VM will display in the list.
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.
- Also, there will be two disks available for this VM. One is OS disk and another one is temporary disk.
- Microsoft has already placed a Readme file on this disk. Use this disk for temporary data, such as page or swap files.
Thanks for reading this blog. We hope it was useful for you to know to create a VM in windows azure portal.