Share via


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.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public static AzureOperationResponse RollbackUpdateOrUpgradeByDeploymentName(
    this IDeploymentOperations operations,
    string serviceName,
    string deploymentName,
    DeploymentRollbackUpdateOrUpgradeParameters parameters
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ RollbackUpdateOrUpgradeByDeploymentName(
    IDeploymentOperations^ operations,
    String^ serviceName,
    String^ deploymentName,
    DeploymentRollbackUpdateOrUpgradeParameters^ parameters
)
static member RollbackUpdateOrUpgradeByDeploymentName : 
        operations:IDeploymentOperations *
        serviceName:string *
        deploymentName:string *
        parameters:DeploymentRollbackUpdateOrUpgradeParameters -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function RollbackUpdateOrUpgradeByDeploymentName (
    operations As IDeploymentOperations,
    serviceName As String,
    deploymentName As String,
    parameters As DeploymentRollbackUpdateOrUpgradeParameters
) As AzureOperationResponse

Parameters

  • 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.

Return Value

Type: Microsoft.Azure.AzureOperationResponse

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

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.

See Also

DeploymentOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top