Udostępnij za pośrednictwem


DeploymentOperationsExtensions.Swap Method

Definition

The Swap 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 static Microsoft.Azure.OperationStatusResponse Swap (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters parameters);
static member Swap : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters -> Microsoft.Azure.OperationStatusResponse
<Extension()>
Public Function Swap (operations As IDeploymentOperations, serviceName As String, parameters As DeploymentSwapParameters) As OperationStatusResponse

Parameters

operations
IDeploymentOperations

Reference to the Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations.

serviceName
String

Required. The cloud service to swap deployments for.

parameters
DeploymentSwapParameters

Required. Parameters supplied to the Swap Deployment operation.

Returns

Microsoft.Azure.OperationStatusResponse

The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.

Applies to