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 17 – site scale instance size

bash-azure

In my previous two posts I showed you how to change the scaling mode of your web site () and how to change the number of instances your web site is running on (a href=”">). In this post I’ll show you how to change the size of the instance(s) your 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.

Instance size can only be changed for web sites running in Standard mode. If your web site is running in Free or Shared mode, 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:

azure site scale mode –mode Standard “antares101″

Screen Shot 2013-09-15 at 9.22.32 AM

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

Screen Shot 2013-09-15 at 9.23.34 AM

Now enter the following into your CLI:

azure site scale instances -h

Screen Shot 2013-09-15 at 9.24.32 AM

To change the size of the instance(s) your web site is running, you need to supply a value for the –size option. The following is a description of the available sizes:

  • Small. 1 core, 1.75 GB Memory.
  • Medium. 2 cores, 3.5 GB Memory.
  • Large. 4 cores, 7 GB Memory.

For this exercise we’ll go from Small to Medium. Enter the following in your CLI:

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

I entered the following:

azure site scale instances –size Medium 1 “antares101″

Note, even though we’re not changing the instance count, it needs to be included in the command.

Screen Shot 2013-09-15 at 9.37.04 AM

You can verify the change by going to SCALE portion of your web site’s dashboard in the Windows Azure management portal.

Screen Shot 2013-09-15 at 9.38.36 AM

That’s it. The next post in this series we’ll be the last dealing with Windows Azure web sites. In that post I’ll show you how to delete a web site. Following that post we’ll start exploring how to manage Windows Azure mobile services from the command line.

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.