DeploymentOperationsExtensions.RollbackUpdateOrUpgradeByDeploymentName Method (IDeploymentOperations, String, String, DeploymentRollbackUpdateOrUpgradeParameters)
Cancels an in-progress update of a configuration and returns the deployment to the state it was in before the update was started.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
<ExtensionAttribute> Public Shared Function RollbackUpdateOrUpgradeByDeploymentName ( operations As IDeploymentOperations, serviceName As String, deploymentName As String, parameters As DeploymentRollbackUpdateOrUpgradeParameters ) As AzureOperationResponse
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations
The IDeploymentOperations object that specifies the deployment operations.
- serviceName
-
Type:
System.String
The name of the cloud service that contains the deployment.
- deploymentName
-
Type:
System.String
The name of the deployment to be rolled back.
- parameters
-
Type:
Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParameters
The DeploymentRollbackUpdateOrUpgradeParameters object that contains the parameters that are used to roll back an update of a deployment.
Return Value
Type: Microsoft.Azure.AzureOperationResponseAn OperationResponse object that includes an HTTP status code and request ID.
For more information about rolling back an update of a deployment, see Rollback Update Or Upgrade.
The role back of an update can only be called when an update is in progress on the deployment.
Show: