DEV Community

Emmanuel Oluajo
Emmanuel Oluajo

Posted on

CREATING A VIRTUAL MACHINE USING AZURE QUICKSTART TEMPLATE

Azure QuickStart templates serve as a foundation for installing particular solutions or applications on Azure. They are pre-configured Azure Resource Manager (ARM) templates. These templates offer a pre-defined configuration that can be quickly customised to match unique needs, saving time and making the deployment process simpler.

QuickStart templates can be used for web applications, databases, virtual machines, networking configurations, IoT and more solutions in Microsoft Azure.
For today, we will be using a QuickStart template to create a Windows VM.

PREREQUISITE

  • Working computer
  • Internet connection
  • Microsoft Azure account + active subscription

PROCEDURE

LOCATE THE CUSTOM DEPLOYMENT SERVICE

Open the Azure portal and type “QuickStart template” in the search bar at the top. Click on “Deploy a custom template” as seen in the image below.

Image description

SPECIFYING VM BASIC DETAILS

On the Custom deployment webpage that loads, select a template as shown in the image below.

Image description

Enter basic VM details like resource group, region, admin username and password in the “Basic” section. Leave all other parameters as default. Move to the “Review + create” section by clicking on the button that says “Review + create”.

Image description

Wait for final validation. After successful validation, scroll downwards and click on the “Create” button. There will be a pop-up at the top right showing the status of the deployment.

Image description

Image description

Image description

You will be directed to a “Microsoft.Template” page which goes through several phases that you might need to be patient for.

Image description

Click on “Go to resource group”.

Image description

CONNECT TO THE VM RESOURCE

On the resource group page, you can view the list of deployed resources in your resource group.
Search for the virtual machine resource in the list and click on it to view.

Image description

On the VM resource page, click on “Connect”.

Image description

After the Connect page loads, click on “Select”. You should notice a pop-up on the right hand side of the screen.

Image description

Wait for the box beneath “Public IP address XXX.XX.XXX.XXX” to transition from “Validating” to “Configured”. Then download the RDP file-this will be used to load the Windows VM.

Image description

Load the downloaded file and click on “Connect” on the window that pops up.

Image description

Input your password in the next window and affirm on the next couple of windows.

Image description

Image description

Image description

At this point, a VM should be running on your computer.

Image description

We will be going further by installing a Web server role on this VM using PowerShell.
In the VM, click on the Start Menu icon and search for “Windows PowerShell”.

Image description

Input this command Install-WindowsFeature -Name Web-Server -IncludeManagementTools in the PowerShell environment. You should get results as shown in the image below.

Image description

Image description

Image description

To test this, head back to the “Connect” page of the VM on Azure portal and copy the “Public IP address” as it will come in handy soon.

Image description

Navigate to the network settings of the VM as shown.

Image description

On the loaded page, create an inbound port rule using a destination port range of “80” (as we will be trying to connect to a HTTP protocol). Click on “Add”.

Image description

Image description

Open a blank browser window and input the “Public IP address” that was copied earlier. Then, search.

Image description

You should have a Windows Server IIS page loaded as shown below.

Image description

Quick and easy, isn't it??

Top comments (0)