Eksportér (0) Udskriv
Udvid alt
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

Rollback Update Or Upgrade

Updated: April 3, 2014

The Rollback Update Or Upgrade operation cancels an in-progress configuration update and returns the deployment to its state before the update was started.

The Rollback Update Or Upgrade request may be specified as follows. Replace <subscription-id> with the subscription ID, <cloudservice-name> with the name of the cloud service, and <deployment-name> with the name of the deployment.

 

Method Request URI

POST

https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deploymentslots/

POST

https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deployments/<deployment-name>/

You must make sure that the request that is made to the management service is secure. For additional details, see Authenticating Service Management Requests.

 

URI Parameter Description

comp=rollback

Required. Specifies that the operation in progress is to be halted and the deployment is returned to its previous state.

The following table describes the request headers.

 

Request Header Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header must be set to 2011-10-01 or higher. For more information about versioning headers, see Service Management Versioning.

The format of the request body is as follows:


<?xml version="1.0" encoding="utf-8"?>
<RollbackUpdateOrUpgrade xmlns=”http://schemas.microsoft.com/windowsazure”>
  <Mode>type-of-upgrade</Mode>
  <Force>upgrade-forced</Force>
</RollbackUpdateOrUpgrade>

The following table describes the elements of the request.

 

Element Name

Description

Mode

Required. Specifies whether the rollback should proceed automatically.

  • Auto – The rollback proceeds without further user input.

  • Manual – You must call the Walk Upgrade Domain operation to apply the rollback to each upgrade domain.

Force

Required. Specifies whether the rollback should proceed even when it will cause local data to be lost from some role instances. True if the rollback should proceed; otherwise false.

The response includes an HTTP status code and a set of response headers.

A successful operation returns status code 200 (OK). For information about status codes, see Service Management Status and Error Codes.

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

 

Response Header Description

x-ms-request-id

A value that uniquely identifies a request made against the management service.

The Rollback Update Or Upgrade 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 Cloud Service Properties operation and inspecting the RollbackAllowed element. If the value returned is true a rollback can be performed.

Vis:
© 2014 Microsoft