Creating Azure Virtual Machines

Azure Virtual Machines are one of the central features of Azure's IaaS capabilities. It supports the deployment of Windows Server or Linux Virtual Machines (VMs) in a Microsoft Azure datacenter.

There are two tiers for Azure Virtual Machines, Basic and Standard. The differences are Standard tier is well suited for more consistent performance on the CPU and network, while it also offer load-balancing and auto-scaling whereas Basic does not offer these features. You can use both Basic and Standard tiers for production workloads, depending upon your needs. Azure offers many images, you can also use your own images.

You can create a VM in Azure by

Virtual Machine Status

Azure VM's have the following three possible states:

Billing

Azure Virtual machines are billed on per-minute basis.

There is a direct relationship between the VM's status and billing, if the VM is in Running or in Stopped state it is billable. You have to completely place the VM in dealllocated state to stop the billing.

Creating Virtual Machines

One of the easiest ways to get started creating Azure VMs is to use the Azure Management Portal or the Azure Preview Portal. This article will guide you step by step to create a Virtual Machine on Azure. Windows Azure offers many images, we will be creating Windows Server 2012 R2 Datacenter image for the sake of this tutorial.

Preview Portal

Connect to a Virtual Machine

When creating a VM using the Azure Preview Portal, Remote Desktop is enabled by default. To connect to the VM, select the Connect button from the top of the desired VM blade.

connect

Open the RDP file and connect to the VM.

You will need to provide the administrative user name and password.

administrative

You can now work with the virtual machine.

virtual machine

Stopping VM

By default, stopping a VM in the Azure Management Portal puts the VM into the Stopped (Deallocated) state. If you want to stop the VM but keep it allocated, you will need to use the PowerShell.

cmdlet: Stop-AzureVM -Name "az-essential" -ServiceName "az-essential" -StayProvisioned.

Shutting down the VM from the operating system of the VM will also stop the VM but will not deallocate the VM.

If you are creating your Aure Virtual Machine for testing purpose please make sure to place it in Stopped(Deallocated) state.