Udostępnij za pośrednictwem


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

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 Begin Swapping Deployment operation.

Returns

Microsoft.Azure.AzureOperationResponse

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

Applies to