Dela via


DeploymentOperationsExtensions.RollbackUpdateOrUpgradeByDeploymentNameAsync Method

Definition

The Rollback Update Or Upgrade By Deployment Name 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 static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> RollbackUpdateOrUpgradeByDeploymentNameAsync (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, string deploymentName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters parameters);
static member RollbackUpdateOrUpgradeByDeploymentNameAsync : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function RollbackUpdateOrUpgradeByDeploymentNameAsync (operations As IDeploymentOperations, serviceName As String, deploymentName As String, parameters As DeploymentRollbackUpdateOrUpgradeParameters) 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.

deploymentName
String

Required. The name of your deployment.

parameters
DeploymentRollbackUpdateOrUpgradeParameters

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

Returns

Task<Microsoft.Azure.AzureOperationResponse>

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

Applies to