Sets the deployment slot for the current service to the Windows Azure staging environment or production environment.
Set-AzureDeploymentSlot [-Slot] <slot>
Run Set-AzureDeploymentSlot from the service directory to set the deployment environment for the current service to either Staging or Production. This updates the DeploymentSettings.json file for the service. To deploy the service to the specified deployment slot, run Publish-AzureService.
When you deploy a service, you can use the -Slot parameter for Publish-AzureService to set the deployment slot for the current deployment.
If you do not set a deployment slot for the service, by using either this cmdlet or the -Slot parameter for Publish-AzureService, the service is deployed to the Windows Azure production environment.
About the staging and production environments
In Windows Azure, the staging and production environments are distinguished by the address that is used to access the service. Use the staging environment to test a service before deploying it to production, where a friendlier URL is assigned:
Staging URL format: <ServiceID>.cloudapp.net
Production URL format: <ServiceName>.cloudapp.net
For more information, see Overview of Managing Deployments in Windows Azure.
|To find out the assigned VIP addresses for a hosted service, log onto the Windows Azure Platform Management Portal and view the service deployment properties. To view these properties, select the service deployment in the Hosted Services items list, in Hosted Services, Storage Accounts & CDN.|
Specifies the deployment slot to use for the service: Staging or Production.
Set the deployment slot for the MyService service to Staging:
PS C:\node\MyService> Set-AzureDeploymentSlot -Slot staging