Gaurav Mantri's Personal Blog.

Me and My Boss – The Saga Continues With Basic Tier Azure Virtual Machines

Man, my boss is always on my case. After what I did with Azure Mobile Services with him, he’s always after me. So this Friday, he calls me up in his office and following conversation happens between us:

Boss: The Virtual Machines we’re hosting in Azure, we want to bring the cost of them down.

Me: Boss, but they’re already very low. You got per-minute billing, different VM sizes to suit your need and on top of that we can bring our MSDN license to Azure, what more do you want?

Boss: Agreed (Me: Score!!! First time he agreed with me). But see if we can further bring the costs down. I don’t care much for our actual production servers but see if we can do something about dev/test VMs we are running in Azure. Essentially see if we can get no-frills VMs in Azure for our dev/test scenarios.

For the first time, I could see his point. He makes a very valid point. But then, him being a boss it is my duty to defy him :) plus I know that like last time he will give me a task and forget about that. Furthermore, recently Microsoft announced a lots of changes during their //Build/ conference and I have to catch up on those so I thought “screw him” and let me focus on what new stuff has been announced.

So I came back and started going through all the announcements and stumble upon something called “Basic Tier” for Azure Virtual Machines. It kind of looked interesting me so I started reading some more about it. As I read through the information about this, I realized this is exactly what my boss is looking for. Essentially from what I understood, Virtual Machines running under basic tier are:

  • No frill Virtual Machines in the sense that they don’t provide “load balancing” and “auto scaling” though if needed you can bring your own load balancer. They are currently available for “General Purpose Instances” and not “Memory Intensive Instances”.
  • They cost less than your standard instances (at this time about 10 – 20% cheaper depending on the instance size you choose.

Man-o-man … Did I hit the jackpot again??? This is exactly what my boss is looking for. Thank You, Thank You Microsoft for saving me again! I can now barge into his room and proclaim to be a superhero who saved his day (and his butt) again.

Excited and all charged up, I walked up to his room. I was about to enter his room but I saw two guys sitting with him. Now let me tell you about these two guys.

First, is a “Developer Dude”. Like a child, he wants to do all by himself. If there’s an API, nothing gives him more satisfaction and pleasure than to write code for that API. It doesn’t really matter if there’re already tools available to do the work. He would still want to write code :). I knew if I went into the room right now and talk about this basic tier, he would ask me the question “How would I create Virtual Machines in Basic Tier using Azure Service Management API”?

Second, is a “IT Pro Dude”. Like all other IT Pros, he live in the world of PowerShell. I know that he has been using Azure PowerShell Cmdlets, and the moment I talk about this he would want to know how can do work with this basic tier by using them.

I wanted it to be my moment of glory and wanted to go in prepared for all the questions I could be asked, I came back. Tried to find answers to the questions that I know Developer Dude and IT Pro Dude and to my surprise the answers were rather simple. The functionality already exists and same stuff can be used. Confident enough, I walked back into boss’s room. Those two guys were still there.

Me: Boss, Recently Microsoft announced “Basic Tier” for Virtual Machines. They are perfect for our dev/test scenarios + we will save anywhere from 10 – 20% on our Virtual Machine pricing. One catch is that these VMs  don’t have “load-balancing” and “auto-scaling” feature and the other catch is that they are not available for “Memory Intensive” instances but that should be fine for the scenarios we’re considering.

Boss: That’s great! (I could see the shine in his eyes :)).

Developer Dude: But I use Azure Service Management API to create VMs. Do I have to use a new operation to create this basic tier VM? Where’s the API for that?

Me: (Confidently, as I already anticipated the question) No. You would still use “Create Virtual Machine Deployment” operation. The only change you have to do is when you want to create a basic tier VM, you just have to prefix “Basic_” to the VM size. So for example, you wish to create a “Basic Tier Medium Sized” Virtual Machine (or in other words “A2”), in the request payload you specify the value for “RoleSize” element as “Basic_A2”. I also handed him a sample request payload for creating a Virtual Machine which is included below.


<?xml version="1.0" encoding="utf-8"?>     

<Deployment xmlns="" xmlns:i="">      

 <!--Your host service name-->      





 <Role i:type="PersistentVMRole">      

 <!--Your virtual Machine Name-->      


 <OsVersion i:nil="true"/>      



 <ConfigurationSet i:type="WindowsProvisioningConfigurationSet">      


 <!--Your Computer Name-->      


 <!--Computer pass word-->      






 <ConfigurationSet i:type="NetworkConfigurationSet">      














 <!--VHD address and source image name-->      

 <!--replace these two properties to avaliable value-->      








IT Pro Dude: (Frantically browsing the Internet on his smart phone) …. Did they announce a new version of PowerShell Cmdlets just to support that? Man, now I have to go back and rewrite all my scripts. I tell you man, sometimes I wonder about Microsoft. Do they try to make our lives hard on purpose?

Me: Dude, Chill!!! Yes, the new version of PowerShell Cmdlets are announced but for this stuff to work you don’t really have to use it. You can still use old Cmdlets. So if you’re using “New-AzureQuickVM” Cmdlet to create a Virtual Machine, you would again prefix “Basic_” to the Virtual Machine . Again, for example, you wish to create a “Medium Sized” Virtual Machine (or in other words “A2”), in the request payload you specify the value for “-InstanceSize” parameter as “Basic_A2”. I gave him the command details.

New-AzureQuickVM -Windows -InstanceSize "Basic_A2" -ServiceName "DemoVM" -name "DemoVM" -ImageName "" -Password "S0m3thing" -AdminUsername "AwesomeAdmin"

Developer Dude & IT Pro Dude: Man, Its’ Awesome!!! (Then both looked at me) What about you?

Me: (Considering I’m neither a developer nor an IT pro and a lazy bum) I got Azure Portal. The functionality is there on the portal so if I want to make use of it, I would simply go to Azure Portal and do it there.

Boss: (Already started working on cost spreadsheet and thinking how much his bonus will go up) Go on. Let’s start using the basic tier for our dev/test machines. what’re you waiting for?

Me: (Thinking) How about a thank you???


That’s it for this post. I hope through this (funny) story, I was able to convey the value proposition of this new feature. Jokes aside, I think Microsoft is making some really good progress on IaaS side and is evident from this change and many other changes announced recently.

As always, if you find some issues with the post please let me know so that I can fix it ASAP.


C# Corner Annual Developer Conference 2014 – Saluting the Spirit of Community Power

Over this weekend (April 11 – 13th 2014), I had the honor and privilege of attending and presenting at C# Corner Annual Developer Conference. This blog post talks about my experience there. In my opinion (and is shared by all who attended), the event … [Continue reading]

Managing Storage Emulator in Azure SDK Version 2.3


Yesterday (3rd of April), a new version of Azure SDK (version 2.3) was released. Being an Azure Fanboy :) (and not to mention serious Azure developer) I went ahead and downloaded this new SDK and converted my cloud services project to make use of … [Continue reading]

Using Windows Azure Access Control Service (ACS) in MVC 5 Application Using Visual Studio 2013


It has been a while that I wrote a technical post:). Today I ran into a post on Stack Overflow and that made me write this post. If you have used Visual Studio 2012, you would know how easy it is to implement Windows Azure Access Control Service … [Continue reading]

Things I learned from Sanjaya Singhal


We draw inspiration from people around us. Over the years my thinking process and professional behavior is defined by the behavior of a few individuals. In this post, I will talk about one such great man who has kept on inspiring me for past 20 odd … [Continue reading]

Celebrating The Spirit Of Entrepreneurship: “Prarambh” – A 32 Hour Startup Challenge


Over this weekend (March 7th – 9th, 2014), Indian Institute of Management (IIM) Udaipur’s Entrepreneurship Cell “Saksham” organized a 32 hour startup challenge event. The event which was first of its kind in Udaipur was a huge success drawing in over … [Continue reading]

Pulling The Plug On Cloud FileXchange


We at Cynapta have decided to pull the plug on our Cloud FileXchange service :(. Though the service would be up and running for some time but no new work will be done and over the course of next few days, we will gradually start shutting the service … [Continue reading]

Announcing The Launch Of Cynapta Cloud FileXchange In Public Beta


After 6 months of intense learning and development, I’m pleased to announce the availability of our 1st service Cloud FileXchange (CFX) in public beta today. In this post we’ll talk about what this service is, what it does today and where we’re going … [Continue reading]

Create Pre Signed URL Using C# for Uploading Large Files In Amazon S3

For a change, this would be a technical post which will not be about Windows Azure :). For the service we are building at Cynapta, we had a requirement where we needed to upload large files using a pure browser based interface. For that we used Query … [Continue reading]

Reflections on 2013 & Looking Forward to 2014

First, A Very Happy New Year to all of you. Spoiler Alert: This post is a self-gloating blog post in which I will talk about some of my accomplishments in the past year (or in other words “Tooting my own horn”) so please feel free to stop reading … [Continue reading]