In this simple application we will see how to create a windows Azure application from scratch:
- Last Version of PowerShell http://technet.microsoft.com/en-us/scriptcenter/dd772288
- Visual Studio 2010
- .NET Framework 4.0 (installed with Visual Studio 2010)
- Microsoft IIS 7.0 http://www.iis.net/overview
- IIS7 ASP.NET
- WCF HTTP Activation http://msdn.microsoft.com/en-us/library/ms731053.aspx
- Windows Azure Tools for Microsoft Visual Studio 2010 1.4 or higher http://msdn.microsoft.com/en-us/library/ee405484.aspx
- You will see how the Windows Azure SDK and Visual Studio Tools for Windows Azure provide development tools that enable a rich and familiar development experience for cloud applications.
- You will see how Windows Azure abstracts you from the underlying infrastructure and uses simple models to define the roles and number of instances for your application.
- You will see how to deploy, start, and manage a Windows Azure application through the Management portal.
1. Start Visual Studio 2010 as Administrator user.
2. Select File -> New Project.
3. Select the Windows Azure Cloud Service template.
4. Select the Windows Azure Project type.
5. Name the solution HelloAzure.
6. Click OK to launch a wizard.
7. From the wizard, add the ASP.NET Web Role in C#.
8. Select the added Role and click the edit icon.
9. Rename from WebRole1 to HelloAzure_WebRole.
10. Wait for the new solution to be created.
11. Double click on the Default.aspx page to open it and select the design view.
15. Right click on the design surface and select View Code from the context menu to view the Default.aspx.cs code behind file.
16. Add code in the Page_Load event to set the text for the label.
21. Show the compute emulator by right-clicking on the Azure icon in the task bar and select “Show Compute Emulator UI”.
22. Expand the HelloAzure application in the compute emulator and expand the HelloAzure_WebRole.
23. Select the HelloAzure_WebRole and show the two instances that are running.
30. In the the next post we will see hot to deploy the windows azure service to the real cloud using the management portal. Stay connected!