In the first five posts of this series I showed you how to get up and running with the Windows Azure Cross Platform command line tools. If you haven’t read those posts I recommend starting with the first post in the series (http://thinkfirstcodelater.com/blog/?p=2957 ) and working your way through the next four. In this post I’ll show you how to start creating a Windows Azure web site from the command line. Fair warning, we’re not going to create a site just yet, that will be in the next post.
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.
Before you can create a site, you need to decide which region of the world you want the site to be in. Once you know where you want your site to located, you need to find a corresponding data center, which you can do from the Azure CLI.
Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:
azure site location list -h
The site location list provides a list of locations where you can deploy your web site. The command just has the standard options.
The next thing to do is actually run the command by typing:
azure site location list
As you can see above, using my account I can deploy to the following locations:
- East US
- North Europe
- East Asia
- West US
- North Central US
As an Azure data centera get close to capacity, Microsoft does not allow accounts to deploy to the data center unless they already have services running in the data center. This is done to ensure existing customers have plenty of capacity for their services. As capacity is added to a data center it may be opened up for other accounts to use.
For now just make note of the location you wish to use. In my case I’ll be using West US. In the next post we’ll utilize this location to deploy a web site to Windows Azure.
Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.