.DESCRIPTION This is script is used to deploy a compiled .cspkg file to run on Azure.

The package can be deployed to either the Production or Staging environments as defined by the -Slot parameter (Staging is the default).

By specifying the -SwapVips switch, the virtual IP is switched form Production to Staging. Note: specifying both -SwapVips and -Slot Production means that the new deployment ends up running in Staging!

.PARAMETER ServiceName Specifies the Windows Azure service name of the deployment.

.PARAMETER StorageAccount The Azure storage account to use.

.PARAMETER Label Specifies a new label for the deployment.

.PARAMETER PublishSettings Specifies the full path and filename for the .publishsettings file for the Windows Azure account.

.PARAMETER Package Specifies the full path to the upgrade package (.cspkg) file.

.PARAMETER Configuration Specifies the path to the new configuration (.cscfg) file when performing an upgrade.

.PARAMETER SwapVips If specified, after deployment swap the virtual IPs between the product and staging environments.

.PARAMETER Slot Specifies the environment of the deployment to modify. Supported values are \"Production\" or \"Staging\".

# set up azure credentials: this will import the management certificate, and select the first subscripton in the file. Write-Host \"Reading Azure publish settings\" Import-AzurePublishSettingsFile -PublishSettingsFile $PublishSettings -SubscriptionDataFile $SubscriptionDataFile

The Nomad team package this library up with the powershell, but if you want instead to install it on your deployment agents, just tweak the \"import-module\" statement to point to the correct directory.