IDeploymentOperations.RollbackUpdateOrUpgradeByDeploymentNameAsync Method (String, String, DeploymentRollbackUpdateOrUpgradeParameters, CancellationToken)
Asynchronously 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
Task<AzureOperationResponse> RollbackUpdateOrUpgradeByDeploymentNameAsync(
string serviceName,
string deploymentName,
DeploymentRollbackUpdateOrUpgradeParameters parameters,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ RollbackUpdateOrUpgradeByDeploymentNameAsync(
String^ serviceName,
String^ deploymentName,
DeploymentRollbackUpdateOrUpgradeParameters^ parameters,
CancellationToken cancellationToken
)
abstract RollbackUpdateOrUpgradeByDeploymentNameAsync :
serviceName:string *
deploymentName:string *
parameters:DeploymentRollbackUpdateOrUpgradeParameters *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function RollbackUpdateOrUpgradeByDeploymentNameAsync (
serviceName As String,
deploymentName As String,
parameters As DeploymentRollbackUpdateOrUpgradeParameters,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service that contains the deployment.
deploymentName
Type: System.StringThe name of the deployment to be rolled back.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.DeploymentRollbackUpdateOrUpgradeParametersThe DeploymentRollbackUpdateOrUpgradeParameters object that contains the parameters that are used to roll back an update of a deployment.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<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
IDeploymentOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top