Udostępnij za pośrednictwem


IDeploymentOperations.RollbackUpdateOrUpgradeByDeploymentSlotAsync Method

Definition

The Rollback Update Or Upgrade By Deployment Slot operation cancels an in-progress configuration update and returns the deployment to its state before the update was started. This operation can only be called when an update is in progress on the deployment. The deployment status can be detected by calling the Get Deployment operation or Get Hosted Service Properties operation and inspecting the RollbackAllowed element. If the value returned is true a rollback can be performed. (see http://msdn.microsoft.com/en-us/library/windowsazure/hh403977.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> RollbackUpdateOrUpgradeByDeploymentSlotAsync (string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot deploymentSlot, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member RollbackUpdateOrUpgradeByDeploymentSlotAsync : string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function RollbackUpdateOrUpgradeByDeploymentSlotAsync (serviceName As String, deploymentSlot As DeploymentSlot, parameters As DeploymentRollbackUpdateOrUpgradeParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

serviceName
String

The cloud service to swap deployments for.

deploymentSlot
DeploymentSlot

The deployment slot.

parameters
DeploymentRollbackUpdateOrUpgradeParameters

Parameters supplied to the Rollback Update Or Upgrade By Deployment Slot operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

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

Applies to