This section describes how to deploy cloud applications by using the Windows Azure portal or PowerShell Cmdlets.
The Windows Azure Portal
------------------------------------------------------
The Windows Azure Portal provides an entry to manage and publish windows Azure cloud applications. In addition to the account, the first thing you need is a Hosted Service.
Hosted Service is an initial release unit, which consists of two parts: package file and configuration file. The package file contains the application module, and the configuration file contains the configuration information that needs to be used during deployment.
The following figure shows the interface for creating the Hosted Server. You need to enter the service name and the URL to be released to the production environment, then upload the package file and configuration file.
You can use the Windows Azure portal to manage published services. Including starting or stopping services, upgrading, configuring or deleting services, and configuring server operating system information.
The following figure shows the deployment Update page.
And the current deployment configuration interface:
You can also switch the running example in the rehearsal and production status. This is called Swapping VIPs.
The Windows Azure portal can also configure server OS information. Currently, only windows server 2008 and windows server R2 are available.
Use PowerShell to deploy windows azure applications
----------------------------------------------------------------
PowerShell can execute some tasks by creating scripts to make these tasks faster, automated, and reusable. There are a lot of installation and deployment of windows Azure related eaglets in the msdn code library, you can download to the http://code.msdn.microsoft.com/azureCmdLets.
By using PowerShell scripts, you can create new deployments, stop and start deployed services, and switch between rehearsals and production statuses. For example, the following script creates a new deployment:
New-Deployment-serviceName <servicename>-subscriptionId
<Subscriptionid>-certificate <certificate>-slot staging-package
<Packagefile>-configuration <configfile>-label <servicelabel> | Get-
OperationStatus-WaitToComplete
Come here today and continue learning in the next section.