Welcome!

Think first. Code later.

Adam Grocholski

Subscribe to Adam Grocholski: eMailAlertsEmail Alerts
Get Adam Grocholski via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: Ubuntu Linux Journal, SEO Journal, Azure Cloud on Ulitzer

Blog Feed Post

Azure CLI Day 16 – site scale instance count

bash-azure

In my previous post (http://thinkfirstcodelater.com/blog/?p=3143) I showed you how to change the mode of your Windows Azure web site from the cross platform command line tools. In this post I’ll show you how to increase and decrease the number of instances the web site is running on.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mountain Lion) installed, and I’m using Google Chrome as my default browser. However, the experience should be identical on Windows and Linux as well.

We’ll start by scaling your web site from 1 to 2 instances. However, before we can do that we need to change the mode of the web site to either to standard. Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following, substituting where appropriate.

azure site scale mode –mode Standard “[YOUR WEB SITE NAME]“

In my case I entered the following:

azure site scale mode –mode Standard “antares101″

Screen Shot 2013-09-14 at 4.43.08 PM

Verify the change has taken place by going to the SCALE portion of your web site’s dashboard in the Windows Azure management portal.

Screen Shot 2013-09-14 at 4.44.40 PM

Now enter the following into your CLI

azure site scale instances -h

Screen Shot 2013-09-14 at 4.39.05 PM

For this exercise we’re simply going to change the instance count from 1 to 2 by using the –instances option. Enter the following into your CLI, substituting where appropriate:

azure site scale instances –instances 2 “[YOUR WEB SITE NAME]“

In my case I entered:

azure site scale instances –instances 2 “antares101″

Screen Shot 2013-09-14 at 4.45.44 PM

Go back to the SCALE portion of your web site’s dashboard in the Windows Azure management portal and scroll down to the bottom of the page. You should now see the instance count at 2.

Screen Shot 2013-09-14 at 4.46.24 PM

To take the instance count back down to 1, simply execute the following, substituting where appropriate:

azure site scale instances –instances 1 “[YOUR WEB SITE NAME]“

In my case I entered:

azure site scale instances –instances 1 “antares101″

Then go back to the portal and verify the decrease in instance count.

Screen Shot 2013-09-14 at 4.49.22 PM

That’s it. In the next post I’ll show you how to increase the size of the instance(s) your web site is running on.

Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.

Read the original blog entry...

More Stories By Adam Grocholski

Hey there! My name is Adam Grocholski, and I'm a Technical Evangelist at Microsoft where I spend time focusing on Windows, Windows Phone, and Windows Azure. I live in the frozen tundra of Minnesota and run thinkfirstcodelater.com. You can also follow me on twitter at @codel8r.