Hello Cloud
Create a new project of type Web Cloud Service
You need the Azure VS2008 extension installed to see the Cloud Service project type. Once you clock OK, the Web Cloud Service create two projects in the splution. - A cloud WebRole project and a standard ASP.NET web application.
The first project is where you set the cloud runtime configuaration, such as number of instances. This basically contains the metadata, the architecure of the application.
Add some UI design to the Application.( Add some simple text to the Default.aspx page)
Just press F5 to run the ASP.NET application locally. Make sure that the ASP.NET web application as the active project. Now the cloud application is run locally and we would like to call this as "Cloud on Your Desktop". This is the complete simulation of Windows Azure cloud.
Once we finish the testing and debugging we are ready to depoly/publish the application
On the Azure browser window, sign in with your Windows Live ID.
On the Azure developer portal, click New Project.
Select a new project type of Hosted Services.
Specify a name and description for the project. Then click Next. Here we are using project name "HelloCloud".
Enter a globally unique name and click Check Availability to check it. This is basically we are creating a friendly DNS name for it. Ofcourse we can map any existing name to this. Your cloud production URL will be <name>.cloudapp.net.
Click on the Create button to create the project. A Manage Project page will display. Note there is a Staging environment on the right and a Production environment on the left.
Click the Deploy button under Staging.
The new Deployment page displays. There are two Browse buttons that we will be using to upload the app itself and its configuration.
This is the absloute path for the package and configuarion files location in this project
Click the first Browse button under App Package. Select the .cspkg file in your Publish folder. This is the package file containing the appliation code. This folder was already open on your desktop when you selected Publish in Visual Studio.
Click the second Browse button under Configuration Settings. Select the .cscfg file. This is the configuration file.
Enter a version number and click Deploy.
Deployment will take a little while. Below are some of the screens I noticed during the process
|
|
All these depends upon the network traffic to the Hosted Service
Once the deployment completes, the protal now shows an app deployed to Staging. The HelloCould app is now deployed but it is not running yet.
Note the Run button and the test URL. click the Run button. The portal will initialize the application, this may also require a wait. Proceed when you see the green Started check box. Click the Website URL link under Staging. The HelloCloud app should open in the browser.If you get no page in the browser (error 404), wait and try again. Can take 20 secs - 20minutes.
Click the Promote/Swap button ( blue circle with white arrows) and confirm with OK. Now your application is running in the cloud. Final step to move to Production.
Once the app has been promoted to Production you will see this reflected on the protal. Click on the Run button to start the appliaction. Your application is now running in the cloud at its Production URL.
Here we go... Hello Cloud from Gigy
Reference Articles
