Azure Container Apps Deploy
Deploy step for Azure Container Apps.
Azure Container Apps Deploy
The Azure Container Apps Deploy step creates a new revision of your Azure Container App with the updated container image and configuration.
What this step does
The Azure Container Apps Deploy step performs the following operations:
Parses the manifest: Reads the Azure Container Apps manifest to extract configuration
Prepares deployment: Injects the container image URL from your artifact configuration and sets deployment options
Deploys container app: Creates or updates the Azure Container App with the new revision
Finalizes outputs: Waits for deployment to stabilize and outputs revision details and instance status
This step creates a new immutable revision of your container app. By default (skipTrafficShift: false), traffic shifts immediately to the new revision upon deployment. When Skip Traffic Shift is enabled (true), the step creates the revision without shifting traffic, and traffic shifting is performed explicitly in subsequent Azure Container Apps Traffic Shift steps.
Deployment phases
The step executes in four phases:
Phase 1: Parsing manifest
Harness reads the Azure Container Apps manifest to extract the container app name and validate the configuration.
Phase 2: Preparing deployment
Harness prepares the deployment by:
Determining the Azure region from the managed environment
Injecting the container image URL from your artifact configuration (replaces
placeholderin the manifest)Configuring traffic behavior based on the Skip Traffic Shift setting
Setting the active revisions mode (
SingleorMultiple)
Phase 3: Deploying container app
Harness deploys the container app to Azure. If the container app doesn't exist, it creates a new one. If it already exists, it creates a new revision with the updated configuration.
Phase 4: Finalizing outputs
Harness waits for the deployment to stabilize (typically 1 minute) and then outputs the current state, including:
Active revisions and their status
Replica counts
Current traffic distribution
Instance details
Step parameters
Name
Display name for the step
No
Timeout
Maximum time allowed for the step to complete (default: 30m)
No
Skip Traffic Shift
Controls traffic behavior for the deployed revision
No
Skip Traffic Shift
This critical parameter controls whether traffic is shifted to the new revision immediately upon deployment:
Skip Traffic Shift = disabled (default: false)
Traffic shifts to the new revision immediately upon deployment
This is the default behavior for basic deployments where you want immediate cutover to the new version
Suitable for standard deployments without progressive traffic shifting
Skip Traffic Shift = enabled (true)
The Deploy step only creates the new revision without shifting traffic to it
Traffic shifting is performed explicitly in subsequent Azure Container Apps Traffic Shift steps
This gives you full control over when and how traffic moves to the new revision
Recommended for progressive Canary deployments where you want gradual traffic shifting
Allows you to add multiple Traffic Shift steps to incrementally increase traffic
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 information about the deployed revision:
Revision name: The name of the newly created revision (e.g.,
aca-aut-test--0000001)Revision status: Current status of the revision (
Running,Provisioning, etc.)Replica count: Number of running replicas
Traffic percentage: Current traffic weight assigned to this revision
Instances: List of running instances with their status
You can reference the revision name in subsequent steps using expressions:
Example log output
Usage in pipeline
The Azure Container Apps Deploy step should be placed after the Download Manifests and Prepare Rollback Data steps, and before any Traffic Shift steps in your deployment step group.
YAML Example
Related resources
Last updated
Was this helpful?