IDeploymentOperations.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 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
A standard service response including an HTTP status code and request ID.
Applies to
Azure SDK for .NET