Creating a VM on Azure

While we’ve been using Azure PAAS services extensively since Azure Beta, we’ve not had too many chances to play with the power of the VMs. On a recent project we had to work with MongoDB and while on prod we used MongoLabs , we did use MongoDB on Azure for our development and staging purposes!

The next few blogs will list out steps to create a VM , log into it remotely and eventually install a MongoDB server on it and use it

Creating an Azure VM

1. Sign in to the Azure Management Portal. Check out the Free Trial offer if you don’t have a subscription yet.

2. On the left hand side menu bar click on Virtual Machine.

clip_image002

3. On the command bar at the bottom of the window, click New.

clip_image004

4. Under Compute, click Virtual Machine, and then click From Gallery.

clip_image006

5. The first screen lets you Choose an Image for your virtual machine from one of the lists in the Image Gallery. (The available images may differ depending on the subscription you’re using.) Click the arrow to continue.

clip_image008

6. The second screen lets you pick a computer name, size, and administrative user name and password. If you just want to try out Azure Virtual Machines, fill in the fields as shown in the image below. Otherwise, chose the tier and size required to run your app or workload. Here are some details to help you fill this out :

a. Virtual Machine Name refers to the name of virtual machine.

b. New User Name refers to the administrative account that you use to manage the server. Create a unique password for this account and make sure to remember it. You’ll need the user name and password to log on to the virtual machine.

c. A virtual machine’s size affects the cost of using it, as well as configuration options such as the number of data disks you can attach.

clip_image010

7. The third screen lets you configure resources for networking, storage, and availability. Here are some details to help you fill this out:

a. The Cloud Service DNS Name is the global DNS name that becomes part of the URI that’s used to contact the virtual machine. You’ll need to come up with your own cloud service name because it must be unique in Azure. Cloud services are important for scenarios using multiple virtual machines.

b. For Region/Affinity Group/Virtual Network, use a region that’s appropriate to your location. You can also choose to specify a virtual network instead.

clip_image012

8. The fourth configuration screen lets you configure the VM Agent and some of the available extensions. Click the check mark to create the virtual machine.

clip_image014

9. After the virtual machine is created, the Management Portal lists the new virtual machine under Virtual Machines. The corresponding cloud service and storage account also are created and are listed in those sections. Both the virtual machine and cloud service are started automatically and the Management Portal shows their status as Running.

clip_image016

Next we will learn how to Log into this VM and use it! No use of you can’t use it is itSmile

Team Cennest!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>