In this tutorial I am going to walk you through the steps required to setup Windows Azure Pre-Requisites Via Manual Installation. See Getting the Windows Azure Pre-Requisites Via the Web Platform Installer for an automatic installation.
As we go along I will be showing you where to download the items we need, however for those of you who may be more advanced users I have provided you with links to the packages we will use first so you can get running quickly.
- .NET Framework (If you are not running Windows 7, Windows Vista SP2 or Windows Server 2008 SP2)
- Windows Azure SDK
- SQL Express or higher (Optional: Required for developing on local Windows Azure Storage)
Getting the .NET Framework
So let's get started! If you do not already have the .NET Framework 3.51 or newer you need to get it now. If you are running Windows 7, Windows Vista SP2 or Windows Server 2008 SP2, you should be covered. If you are running an operating system prior to Windows Vista Service Pack 2 or Windows Server 2008 Service Pack 2 take a look at http://msdn.microsoft.com/en-us/library/gg465715.aspx#MSNET
Setup IIS and FastCGI
On Windows Server 2008:
- Click the Start button, and then point to All Programs. Point to Programs, point to Administrative Tools, and then click Server Manager.
- In Server Manager, under Roles Summary, verify that Web Server (IIS) appears in the list of available roles. If it does not, click Add Roles to install IIS.
- In Server Manager, under Roles Summary, click Web Server (IIS).
- In the Web Server (IIS) management window, click Add Role Services.
- In the Add Role Services dialog box, under Application Development, click both ASP.NET and Static CGI, then click Next to install.
On Windows 7 or Windows Vista:
1. Click the Start button
2. Click on the Control Panel
3. Click Programs
4. Under Programs and Features click "Turn Windows features on or off"
5. Setup the Internet Information Services as follows
a. Open Web Management Tools
i. Select IIS Management Console
ii. Select IIS Management Scripts and Tools
iii. Select IIS Management Service
b. Open World Wide Web Services
i. Select .NET Extensibility
ii. Select ASP>NET
iii. Select CGI
iv. Select ISAPI Extensions
v. Select ISAPI Filters
c. Open Common HTTP Features
i. Select Default Document
ii. Select Directory Browsing
iii. Select HTTP Errors
iv. Select Static Content
Installing the Windows Azure SDK
The Windows Azure SDK is what will perform the real magic on our development machine. The Compute and Storage emulators come with the SDK. You can think of the Windows Azure SDK as a local cloud platform for your development machine. Additionally it provides the tools you need to package your application for deployment to the Windows Azure cloud.
Note: if you are upgrading from previous version of the SDK, you must exit any currently running versions of the Windows Azure Emulator Environment before installing the new SDK.
The SDK is available in a 64-bit version and a 32-bit version.
Note: The 32-bit version of the SDK cannot be installed on a 64-bit operating system. Running the SDK under Microsoft Windows-32-bit-On-Windows-64-bit (WOW64) is not supported.
You should check to see which operating system type your machine is running. Click the Start button, then right-click on Computer, and select Properties.
You can download the latest Windows Azure SDK from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7A1089B6-4050-4307-86C4-9DADAA5ED018&displaylang=en
Be sure you select the correct package for your platform, either x64 or x32.
Click "Run" when prompted and follow the on screen instructions when the installer begins. Be prepared to authorize the program to run with some security prompts.
Now that the SDK is installed you should have a new item in your start menu called "Windows Azure SDK" followed by a version number, in my case 1.4. If you want to make sure you install worked correctly click on the "Compute Emulator". Note that the Storage Emulator will not work just yet. We need to get an SQL server install, which just happens to be the next step!
Installing SQL Express [optional]
Technically a SQL server is optional; however I recommend you get it if you wish to develop using the Windows Azure Storage Emulator and use blobs, queues, or tables.
SQL Server Express is used by the Windows Azure Storage Emulator. It lets you test on your machine when you use storage services like Blobs, Tables & Queues. If you don't plan to use these services for now, you can jump skip this step. You can add SQL Server later anyway.
If you have access to the full SQL Server great! You can use that instead. Everyone else follow along.
Cruise on over to http://www.microsoft.com/express/Database/InstallOptions.aspx and choose the "Database Only" option that fits your architecture.
After you have downloaded and launched the installer you will be presented with the SQL Server Installation Center.
You may check to see if the Storage Emulator is working properly by selecting it from the start menu
On first run, the Storage Emulator should display an initialization message.
Great, now your Windows Azure SDK is all setup and you are ready to start developing your applications.