EN
Bu içerik dilinizde bulunmamaktadır ancak İngilizce sürümüne buradan bakabilirsiniz.
Bu konu henüz değerlendirilmedi - Bu konuyu değerlendir

Set-AzureDeploymentSlot

Sets the deployment slot for the current service to the Windows Azure staging environment or production environment.

Syntax

Set-AzureDeploymentSlot [-Slot] <slot>

Detailed Description

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

    Example: http://b8f3dd0c084a4add81e1c3345eb0af87.cloudapp.net

  • Production URL format: <ServiceName>.cloudapp.net

    Example: myservice.cloudapp.net/

For more information, see Overview of Managing Deployments in Windows Azure.

noteNote
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.

Parameters

 

Parameter Description

[-Slot] <slot>

Specifies the deployment slot to use for the service: Staging or Production.

Example

Set the deployment slot for the MyService service to Staging:

PS C:\node\MyService> Set-AzureDeploymentSlot -Slot staging

See Also


Build Date:

2013-04-18
Bunu faydalı buldunuz mu?
(1500 karakter kaldı)

Topluluk İçeriği

© 2013 Microsoft. Tüm hakları saklıdır.
facebook page visit twitter rss feed newsletter