Share via


IDeploymentOperations.BeginSwappingAsync Method (String, DeploymentSwapParameters, CancellationToken)

 

Asynchronously initiates a virtual IP address swap between the staging and production deployment environments for a service.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

Task<AzureOperationResponse> BeginSwappingAsync(
    string serviceName,
    DeploymentSwapParameters parameters,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ BeginSwappingAsync(
    String^ serviceName,
    DeploymentSwapParameters^ parameters,
    CancellationToken cancellationToken
)
abstract BeginSwappingAsync : 
        serviceName:string *
        parameters:DeploymentSwapParameters *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function BeginSwappingAsync (
    serviceName As String,
    parameters As DeploymentSwapParameters,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service that contains the deployments to be swapped.

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

For more information about swapping deployments, see the following resources:

See Also

IDeploymentOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top