DeploymentOperationsExtensions.RollbackUpdateOrUpgradeByDeploymentSlot 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 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 static Microsoft.Azure.AzureOperationResponse RollbackUpdateOrUpgradeByDeploymentSlot (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot deploymentSlot, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters parameters);
static member RollbackUpdateOrUpgradeByDeploymentSlot : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function RollbackUpdateOrUpgradeByDeploymentSlot (operations As IDeploymentOperations, serviceName As String, deploymentSlot As DeploymentSlot, parameters As DeploymentRollbackUpdateOrUpgradeParameters) As AzureOperationResponse
Parameters
- operations
- IDeploymentOperations
Reference to the Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations.
- serviceName
- String
Required. The cloud service to swap deployments for.
- deploymentSlot
- DeploymentSlot
Required. The deployment slot.
- parameters
- DeploymentRollbackUpdateOrUpgradeParameters
Required. Parameters supplied to the Rollback Update Or Upgrade By Deployment Slot operation.
Returns
A standard service response including an HTTP status code and request ID.