This entry is part 1 of 1 in the series Azure Spring Release
  • Windows Azure Web Sites


Similar to the way I went about learning Windows Phone, I’m going to use my blog as a place to chronicle my experiences with the newest Windows Azure capabilities, as announced recently at our MEET Windows Azure event. Hopefully everything will be clean, crisp and clear, but as with all emerging technologies, sometimes there are always slight bumps in the road, and I’m sure I’ll hit most of them. I’ll do my best help you navigate around or through the bumps as best I can based on my own learnings and (hopefully) your comments.

So as my first post, I’ll provide a brief tour of the new HTML-based UI and show how to deploy a new application – based on a template – into the new (and very exciting) Windows Azure Web Sites feature. For this demo, I’m going to pick on WordPress, because I use it for my blog, as well as the website and have become a fan of its features over the past couple of years.

I realize most of you won’t have the luxury of starting with File->New and many of you won’t necessarily want to deploy something out of the gallery, but this is a good, simple place to get started introducing the tools. Watch for more “real world” scenarios later on in this series.

Azure Account

As with all the demos in this series, you’ll have to have a Windows Azure account in order to follow along at home. There are a couple of ways to get started with your Azure account – but the easiest way is to sign up for a FREE 90-Day trial. The 90-day trial is completely FREE and even comes with a convenient “Spending Cap” (initially set to $0.00) to prevent you from accidentally spending money 🙂  If you really like the services provided by Windows Azure, and want to take on some more features or usage levels beyond the scope of the free trial, just remove the spending cap and you’re good to go!

Once you get your account all set up, navigate over to the new Management Console to get started by visiting  If you somehow ended up at the old management site ( you’ll need to “opt in” to the new management portal as it’s not currently the default (as of this writing). It’s easy to do this – just click on the “Visit the Preview Portal” link at the bottom of the existing Silverlight portal UI:

Also, as of the time of this writing, you’ll have to specifically ask for access to the Web Sites feature. You do this by clicking on the New button at the bottom (the great big + symbol) and hovering over the greyed-out “Web Sites” link. This link will take you to the Azure Account Management page and allow you to request access for the preview features:

Click the “Try it Now” button to request access to the features you want.

New HTML5-based Management Portal

OK – Now that we’re in the new portal, let’s talk about that for a minute. Although I was a big fan of Silverlight (and I’m sure you were too) we actually got some comments from users of Azure about the Silverlight UI for managing your account.  With the way technology trends are shifting these days, we agreed with those comments, and decided that it made much more sense for us to migrate this management console over to HTML5. HTML5 gives us much broader reach in terms of browser and platform support, since not everyone had Silverlight installed, and is especially important now that Windows is no longer a requirement for building and deploying applications into Windows Azure! (more on that in future posts).

Here’s a screen shot of the new HTML5-based Management Console

Right off the bat you’ll notice that the Management Console is much cleaner, and more Metro-ified than its predecessor. Down the left-hand side, you can see all of the choices you have for utilizing the various Windows Azure services including Web Sites (which we’ll dive into more detail here), Virtual Machines, Cloud Services (which is what you’re all previously used to as Windows Azure Web Role and Worker Roles), Storage and Networks. You can view everything all-up from with “All Items” option, or select an individual service to see just those items. My list is empty because I just set up my account, so let’s go in and create a new Web Site!

Windows Azure Web Sites

In addition to the dedicated Web Role infrastructure that you can deploy with Windows Azure, Windows Azure Web Sites provide a simple, low-cost way to get your applications up and running in what is the equivalent of a Shared Hosting environment.

To get started, just select “Web Sites” from the primary navigation, and choose the “Create a Web Site” link.

When the link is clicked, a data entry window will jquery up from the bottom and give you the options to create a new blank site (Quick Create), create a blank one with database support (you can pick from SQL Server or MySQL) or create from the Gallery.  For this demo, we’ll pick the 3rd option (we’ll look at the others in future posts).

When you select “From Gallery”, the following dialog pops up to allow you to pick open of the open source applications that we support natively in Windows Azure Web Sites.

Like the Web Platform Installer, which was the inspiration for this process, the Find Apps for Azure dialog shows all the available web apps that you can install.  You can scan through the entire list, or filter based on Blogs, CMS, etc. For our purposes, we’ll scroll down to the bottom of the ALL list, click on WordPress and press the right arrow button in the lower-right corner of the dialog. This will take us to the  following “Configure your App” page.

You’ll need to enter a unique endpoint to use, but you can always use custom DNS settings to hide this very technical-looking URL from your users. You also have the chance to select an existing database (if you have one) and a deployment region. As per Windows Azure Web Roles, you will want to select a region that makes sense for the users of your application – if you know that all your users are located in Texas, for example, pick South Central US.

Once you have the details entered, press the right arrow button to go to step 3. This takes you to the New MySQL Database page:

From here, you can select the name of the database as well as the Region. Name is up to you, but it does need to be unique. I would also not change the Region, except to make sure that it’s located in the same region as your Web Site. Putting these in different places will increase the network latency between your app and its database, so it almost never makes sense to have these names differ. On this page, you also have to agree to the ClearDB’s legal termsIANAL, but I took a glance at it and it looks pretty straight forward to me. YMMV, and all those other terms…

Once you’re done accepting the terms, click on the check mark to begin provisioning your app. You can watch the status go from creating, to deploying to (hopefully) running in less than a minute!  Take THAT, Windows Azure Web Roles!

Remember the name of the unique endpoint you first entered when creating your app? Well, it’s listed here and serves as a button, complete with navigational arrow,  to take you to the details of your service. Click on it (mine is “ChrisKoenig”) and see the following details page.

This page deserves some explaining.

Section 1 at the top is a graph that will show a bunch of statistics related to your application including CPU time, number of requests, data in and out and HTTP server errors. This is LIVE data, so if you press the refresh button at the top/right, you’ll see the data change as your site gets visitors and activity.

Section 2, under “usage overview”, shows additional details around your account’s resource consumption with data points that highlight the current app, but show data for all your web sites.

Section 3, under “quick glance” has a bunch of links to helpful information such as connection string settings, publish profiles, and Git/TFS publishing settings as well as status, details and other useful information.

I will discuss more on the Git/TFS stuff in future blog posts, but for now it means this – deploying your Azure Web Site application can be as simple as “pushing” to an Azure-hosted Git or TFS repository. The command “git push azure master”, for example, will deploy a new version of your website directly to Azure – live and in color.

You can click through the other items on the toolbar including Monitor, Configure, Scale and Linked Resources.

  • Dashboard is the current (default) view.
  • Monitor gives you a more detailed view of the real-time monitoring for Windows Azure Web Sites.
  • Configure allows you to specify the version of the framework you’re using, turn on and off diagnostics, control default documents and more.


  • Scale allows you to “scale up” your website beyond the shard hosting model provided out of the box. You can switch to a “Reserved” mode as well as increase the instance count of your web site from 1 to 2 or 3 servers. Beyond this, I suspect that you’ll have to migrate to a Web Role in Azure.


  • Lastly, the Linked Resources page shows any referenced resources, such as a Storage Account, or (in this case) a database.

These configuration settings are a great new addition to the Azure environment and make it a LOT easier to manage your web sites than ever before.

Show me the Site!

At this point, all of your configuration settings should be complete (even though it’s worth pointing our that we didn’t actually need to change anything – we left all the defaults in place) you can view the results of your work by clicking back on the Dashboard tab, and clicking on the Site URL link under the “Quick Glance” section:

From here you should see a new browser window open with the WordPress configuration page launch just as if you’d installed it the hard way.

From here, you enter the Site Title, User Name, Password, etc. just like you would for any new WordPress installation. When you’re done, you have a working Azure-based WordPress site ready to go!  You can update the code via Git/TFS, FTP or Web Deployment tool in Visual Studio or Web Matrix!  SO SIMPLE even I could do it 🙂

What’s next?

In the next installment of this series, I’ll look at taking an existing WordPress application and migrating it over to Windows Azure Web Sites without using the Gallery. We’ll have to save off and script our old site, create a new Azure-based MySQL database and manually publish to Azure through FTP or GIT.

Should be fun – so see you next time!

77 thoughts on “Windows Azure Web Sites

  1. Hey Chris,
    Great article.

    did you get to do the post about existing WordPress application and migrating it over to Windows Azure Web Sites without using the Gallery.

    i could really use that article.

    Best regards,

    1. I certainly meant to, but got pulled away on some other content. The crux of the solution is this:

      1. Step 1 – migrate the database over. There are a couple of techniques for doing this, but basically you’ll need to take a backup of the database, preferably as a single SQL Script, and restore it on a Windows Azure SQL Database instance. Don’t forget to make note of the new user Id and passwords you create!
      2. Step 2 – Run existing site against new database: Leave the source code where it is, and see if you can get the site running against the new database. You’ll need to update the WordPress configuration files to point to the new database using the new user id and password. That information is in the wp_config.php file in the root directory of your WordPress installation.
      3. Step 3 – Migrate the source to the new server: Probably a Windows Azure Web Site. Start by creating a new WordPress site from the gallery, and then overlay your code on top. This should fix any particular permissions issues you run into.

      If you want more, let me know and I’ll see about writing out a full post walking through all of this…

  2. Simply want to say your article is as amazing. The clearness
    in your post is just nice and i can assume
    you’re an expert on this subject. Fine with your permission let
    me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please keep up the gratifying work.

  3. Wonderful items from you, man. I’ve keep in mind your stuff prior to
    and you are just extremely wonderful. I really like what you’ve
    obtained here, certainly like what you are stating and the best way during which you assert it.
    You’re making it entertaining and you continue to care for to keep it wise.
    I can’t wait to read far more from you. This is really a wonderful website.

  4. I’ll right away seize your rss as I can not in finding your e-mail
    subscription hyperlink or newsletter service.
    Do you have any? Kindly permit me know in order that I may just
    subscribe. Thanks.

  5. This is the upcoming Fallout 4 Beta Keys. With this Fallout four Generator you will be ready
    to produce beta keys to use on your Xbox
    360|Ps3 |or even Personal computer. Providing you possibility to enter the planet of the new redesigned Fallout 4 :
    Overlooked Buy in a beta section. We are a massive gaming community with tons
    of keys on every platform. Our keys are coming from various builders such as Obsidian Leisure who on their own
    want beta testers for this recreation ahead of launch date.
    Each and every beta keys coming from our Fallout 4 Beta Keys Generator will be produced from our databases and uncover the unused valid keys and
    supply them to you in a solitary simply click.
    Each and every keys. As we can continuously get beta keys and feed our databases our
    purposes are often up-to date.

  6. Candy Crush Saga is a candy-matching match produced by King.
    This chart-dominating match is offered on tablets, all iOS products, Android and Fb!

    In the match, you are presented with a board of different colored
    and shaped candies. The goal is to match 3-or-much more like candies collectively to obvious them.

    Every single level has a different objective–some call for a minimum rating, some call for
    specific moves and others are timed.

    In the sport of Candy Crush Saga, you are offered 5 lives.
    For each and every amount you do not pass or have to repeat,
    you will shed a life. Lives refill a single at a
    time, every single each and every thirty minutes.
    But for the impatient, you can purchase a entire set of lives for $.99.
    Although Candy Crush Saga is a hundred% free to enjoy, it embodies the freemium model and attempts to incentivize customers into
    spending money. If you get stuck on a degree, you can acquire boosters,
    extra moves or far more life.

    The sport, which was launched in April of 2012, has a total of
    500 levels and King routinely adds more. Sweet Crush Cheats has guides
    to each amount, suggestions for gameplay, cheats and a lot more!

  7. Hey there! I know this is sort of off-topic however I
    needed to ask. Does operating a well-established blog such as yours take
    a massive amount work? I’m brand new to blogging however I do write in my diary every
    day. I’d like to start a blog so I will be able to share my experience and views online.

    Please let me know if you have any kind of recommendations
    or tips for brand new aspiring blog owners. Thankyou!

    Feel free to visit my web blog … Tarzan 2014 Telecharger

  8. Oh my goodness! Impressive article dude! Thank you, However I am experiencing problems
    with your RSS. I don’t understand the reason why I am unable
    to join it. Is there anybody else getting the same RSS issues?

    Anyone who knows the solution can you kindly respond?

  9. Aren’t you tired of playing the game countless hours in order
    to generate the items in the game. What outcome you get by playing it like 12 hours a day.
    Small amount of items get increase and you’re happy with that.
    What If I tell you that you can generate unlimited gems,
    resources and other things in the game. YES!! Unlimited Items and you will not have to play the countless hours in order
    to beat your friends or family members. If you are looking
    to the way to get a ton of Gems, Elixir & Gold without spending your money, then
    this Clash of Clans Hack website is for you.

  10. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time
    a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service?

    Thank you!

  11. I rarely leave remarks, but I browsed a few of the responses here Windows Azure
    Web Sites | Chris Koenig. I actually do have a couple of questions
    for you if it’s okay. Is it simply me or does it look as if like
    some of the comments appear like they are coming from brain dead visitors?
    😛 And, if you are posting at other online sites, I would like to keep up with everything new you have to post.
    Would you make a list of every one of all your social networking
    pages like your linkedin profile, Facebook page or twitter feed?

    Look at my site How I Live Now Telecharger

  12. Hence, it is important to follow a balanced diet and exercise regimen.
    Research has proved which ingredients of genuine garcinia cambogia inhibit the particular chemical Citrate Lyase in which spins surplus sugars to be able to fat allowing our bodies burning the actual carbohydrates within a natural way using an boost in electricity.
    Who’s has somehow become your source of revolutionary nutritious diet
    ingredient that is every single natural, and is and after this making waves in Japan, Europe, America, and other western regions.

  13. Single-stage throwers may be powered by gas or electricity while all two-stage snow throwers are fueled by gas.
    The summer may actually be the best time of year
    to bargain with the seller as the demand might be lower
    with no sense of urgency due to the warm weather. They may
    be a good number of companies that help to make the latest models of.

    Feel free to visit my blog … Snow Blower

  14. There are various reasons for it, the foremost being that
    it is cherishable and lasting. The antique jewelry
    is difficult to find and if found, are expensive beyond the financial reach of common
    man. The security of the place is an important factor when searching for jewelry stores.

  15. Do you mind if I quote a couple of your posts as long as I provide credit
    and sources back to your blog? My website is in the very same area of interest as yours and my visitors would certainly benefit from some of the information you provide here.

    Please let me know if this okay with you. Thanks!

  16. What i do not understood is in truth how you’re now not really a lot more smartly-appreciated than you might be now.
    You are so intelligent. You recognize therefore significantly with regards to this
    subject, produced me personally consider it from numerous
    various angles. Its like women and men don’t seem to be interested until it is something to accomplish with Girl gaga!

    Your individual stuffs great. Always care for it up!

    my web site: types dynamic free myers briggs personality test (

  17. The authorities who do the arres are required tto inform
    the susspect about these rights. Fimding the bet criminal
    defense attorney is generaally a challenging procedure,
    with lots of concerns regarding their capacity handle
    the condition. It is during this time that you get tto hear the
    charges against you, enter a response and get a clear idea about the
    bail amount.

  18. Woah! I’m really digging the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between superb
    usability and visual appearance. I must say you’ve done a amazing job with this.

    Additionally, the blog loads extremely quick for me on Internet explorer.
    Excellent Blog!

    My blog; working capital loans

  19. You actually make it seem so easy with your presentation but I find this topic
    to be actually something which I think I would never understand.
    It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  20. I am writing to make you know what a amazing encounter my wife’s
    princess undergone going through your site. She figured out some details, which included what it’s
    like to possess an amazing giving nature to get the rest just know a variety of tricky things.
    You actually did more than people’s desires. Thanks for imparting such useful,
    safe, informative and fun tips about that topic to Evelyn.

  21. I am extremely impressed with your writing skills as well as with the layout on your weblog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it’s rare to see a great blog like this one these days.

  22. Everyday, I fitness on broughton see thousand of books on the
    topic, with his latest ones released in 2010 and 2011. Small
    groups provide support. With a few weeks off, then you fitness on broughton can set the timing of
    your workout program at a gym. Offer clients more
    than one muscle group.

  23. The application developers are developing most of the applications
    to the end users. whether or not you would like to concentrate to some nice music or to play the newest games, to
    look at some exciting videos or movies or to urge connected to
    the popular social networks or to speak with friends on-line through your mobile phone you’ll get
    all the mandatory software system and improvement from the
    putative iPhone developers. It is heaven-sent if you have more than one student and
    you are trying to keep them all organized.

    Feel free to surf to my page – Good free Iphone apps

  24. Just when you are a man doesn’t supply you with the right to act
    all macho and stiff. When you’re actively working towards your goals and
    seeing progress, your self-esteem will grow by leaps and bounds.
    Find out how it manifests in your lifetime and what triggers it.

  25. I feel that is definitely being among the most sizeable info in my situation. That i’m satisfied looking at the content. On the other hand choose to record on few basic items, It style is best, the particular articles or blog posts is actually excellent : Deb. Excellent practice, all the best

Comments are closed.