Udostępnij za pośrednictwem


IDeploymentOperations.BeginSwappingAsync Method

Definition

The Begin Swapping Deployment operation initiates a virtual IP address swap between the staging and production deployment environments for a service. If the service is currently running in the staging environment, it will be swapped to the production environment. If it is running in the production environment, it will be swapped to staging. For more information on this type of upgrade, see Performing Virtual IP Swap Upgrades at http://msdn.microsoft.com/en-us/library/windowsazure/ee517253.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460814.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginSwappingAsync (string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member BeginSwappingAsync : string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function BeginSwappingAsync (serviceName As String, parameters As DeploymentSwapParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

serviceName
String

The cloud service to swap deployments for.

parameters
DeploymentSwapParameters

Parameters supplied to the Begin Swapping Deployment operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to