Azure Container Apps Rollback
Rollback step for Azure Container Apps deployments.
The Azure Container Apps Rollback step restores your container app to its previous state using the rollback data captured before deployment. This step is automatically executed when a deployment fails or when you manually trigger a rollback.
What this step does
The Azure Container Apps Rollback step performs the following operations:
Retrieves rollback data: Reads the rollback data captured by the Prepare Rollback Data step
Restores traffic configuration: Reverts traffic distribution to the previous state
Reactivates previous revisions: Ensures the previous revisions are active and receiving traffic
Deactivates failed revision: Optionally deactivates the newly deployed revision that failed
This step ensures that if something goes wrong during deployment, Harness can restore your container app to its exact previous state, including traffic distribution across revisions.
Step configuration

The rollback step appears in the Rollback section of your deployment pipeline and is automatically configured when you use the Basic or Canary deployment strategies.

Step parameters
Name
Display name for the step
No
Timeout
Maximum time allowed for the step to complete (default: 30m)
No
Container configuration
Container Registry
Harness connector for authenticating to your container registry. This connector pulls the deployment plugin image.
Image
The deployment plugin container image. Use the official Harness image: harness/azure-container-apps-plugin:0.0.1-linux-amd64
Image Pull Policy
Policy for pulling the container image (default: Always)
Resources
Resource limits for the container (e.g., 512Mi memory, 0.5 CPU)
When rollback executes
The rollback step executes automatically in the following scenarios:
Deployment failure: When any step in the deployment workflow fails
Manual rollback: When you manually trigger a rollback from the Harness UI
Failure strategy: When a failure strategy is configured to trigger rollback on specific errors
Rollback process
The rollback step restores your container app using the following process:
Parse rollback data: Reads the saved traffic configuration and revision details
Restore previous state: Updates the container app to match the previous configuration
Reactivate revisions: Ensures previous revisions are active and receiving traffic according to the saved weights
Verify restoration: Confirms the rollback completed successfully
Usage in pipeline
The Azure Container Apps Rollback step should be placed in the Rollback Steps section within a Container Step Group. When you select Basic or Canary deployment strategies, Harness automatically adds this step to the rollback section.
YAML Example
Related resources
Last updated
Was this helpful?