Azure Container Apps Prepare Rollback Data
Prepare rollback data step for Azure Container Apps deployments.
The Azure Container Apps Prepare Rollback Data step captures the current state of your container app before deployment begins, enabling rollback to the previous configuration if deployment fails or issues are detected.
What this step does
The Prepare Rollback Data step performs the following operations:
Parses the manifest: Reads the Azure Container Apps manifest to identify the container app name and configuration
Fetches current app state: Retrieves the current state of the container app from Azure, including:
Active revisions and their traffic weights
Current traffic configuration
Revision names and status
Container app configuration settings
Saves rollback data: Stores this information for use by the rollback step if deployment fails
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.
Deployment phases
The step executes in two phases:
Phase 1: Parsing manifest
Harness reads the Azure Container Apps manifest to extract the container app name and validate the configuration.
Phase 2: Fetching current app state
Harness retrieves the current state of the container app from Azure, capturing the traffic configuration and active revisions. This data is stored and made available to the rollback step.
Step parameters
Name
Display name for the step
No
Timeout
Maximum time allowed for the step to complete (default: 10m)
No
Skip Traffic Shift
When enabled, the step does not capture traffic shift data. Typically left disabled (false) for standard Canary deployments
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)
Output
The step outputs rollback data that includes:
Container app name: The name of the Azure Container App
Current revisions: List of active revisions with their traffic weights
Traffic configuration: Complete traffic distribution across revisions
Managed environment: The managed environment where the app is deployed
Resource group and subscription: Azure resource identifiers
This data is stored in Harness and automatically used by the rollback step if deployment fails.
Example log output
Usage in pipeline
The Prepare Rollback Data step should be placed after the Download Manifests step and before the Deploy step in your Azure Container Apps deployment step group.
YAML Example
Related resources
Last updated
Was this helpful?