DeploymentOperationsExtensions.BeginSwappingAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginSwappingAsync (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters parameters);
static member BeginSwappingAsync : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function BeginSwappingAsync (operations As IDeploymentOperations, serviceName As String, parameters As DeploymentSwapParameters) As Task(Of 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
A standard service response including an HTTP status code and request ID.
Applies to
Azure SDK for .NET