Cloud service · Azure · Updated

Azure Container Instances - Azure Container Instances is a managed service for running isolated Linux or Windows containers without provisioning virtual machines or operating a container cluster.

In short

Azure Container Instances (ACI) runs containerized applications and jobs in container groups with configurable CPU, memory, networking, and restart behavior. It provides on-demand compute with hypervisor-level isolation, while leaving application orchestration, load balancing, and scaling policies to your deployment tooling or an external service.

Cloud Services Hub →

10 key features of Azure Container Instances

01
Managed container execution

Run supported Linux or Windows images without managing host VMs or the container runtime. You still maintain the application image and patch its packaged dependencies.

02
Hypervisor-level isolation

Container groups receive hypervisor-level isolation from other workloads. This provides a stronger execution boundary than sharing a host kernel alone.

03
Configurable CPU and memory

Specify CPU and memory requirements for each deployment rather than selecting a VM to maintain. Available allocations depend on region, quota, operating system, and container group configuration; larger container sizes are available in public preview.

04
Linux multi-container groups

Place an application and supporting containers in one group with shared networking, storage, and lifecycle. Use this for tightly coupled sidecars, not independently scaled application tiers.

05
Public and private networking

Expose selected ports publicly with an optional DNS label, or deploy supported groups into a delegated virtual network subnet. Private deployments require NAT Gateway for supported outbound connectivity.

06
Managed identity authentication

Assign managed identities to a container group so application code can authenticate to services that support Microsoft Entra authentication. Supported configurations also allow credential-free image pulls from Azure Container Registry.

07
Persistent and temporary volumes

Linux containers can mount Azure Files shares for data that must outlive a group and use temporary shared volumes for collaboration between containers. Select storage according to durability, access, and performance requirements.

08
Restart policies and diagnostics

Choose Always, OnFailure, or Never restart behavior to match services or finite jobs. Inspect container logs, deployment events, and supported interactive command execution when troubleshooting.

09
Confidential containers

Run supported workloads inside a hardware-backed trusted execution environment that protects data in use. Verifiable execution policies and remote attestation can help control which software runs and when sensitive information is released.

10
Standby pools in public preview

Maintain pre-provisioned, initialized container groups to reduce the provisioning work on a latency-sensitive request path. Account for the resources held ready in the pool and validate preview limitations before adoption.

Where Azure Container Instances is used

  1. 01
    Finite batch and data-processing jobs

    Run a container to transform files, generate reports, or process a partition of a dataset, then let it terminate. Store results externally and use a controller to inspect completion status and retry failed work.

  2. 02
    Event-triggered workers

    Use an Azure Function or workflow to create a container group when work arrives. Implement idempotency, concurrency limits, and cleanup in the controller rather than assuming ACI provides queue-based autoscaling.

  3. 03
    Temporary build and test environments

    Launch reproducible containers for integration tests, command-line tooling, or build steps that fit ACI's runtime restrictions. Export logs and artifacts before deleting the group, and do not assume access to privileged host operations.

  4. 04
    AKS burst capacity

    Schedule compatible Kubernetes workloads onto ACI through AKS virtual nodes when additional execution capacity is needed. Validate the integration's networking, storage, and pod feature limitations before moving workloads from conventional nodes.

  5. 05
    Sensitive data processing

    Use confidential container groups for supported workloads that require protection of data while it is processed in memory. Combine execution policies, attestation, and controlled secret release to enforce the intended trust boundary.

  6. 06
    Short-lived private operational tools

    Run database maintenance utilities or internal validation tools in a supported virtual network deployment. Grant only the required data access permissions and remove the group when the operation completes.

How Azure Container Instances is priced

Regular on-demand compute

Compute charges are based on allocated vCPU and memory resources and metered duration, with per-second billing rather than application CPU utilization. Image pulling contributes to the billable lifecycle; rates and any additional meters depend on operating system, region, and configuration.

Spot containers in public preview

Spot container groups use spare Azure capacity at discounted per-second CPU and memory rates. They can be preempted and are not recommended for production scenarios during preview; use them for interruption-tolerant work with durable checkpoints.

Confidential container compute

Confidential container groups use a separate SKU with its own applicable compute rates. Budget for the allocated resources and execution duration, and check regional availability before selecting this configuration.

Services Azure Container Instances works with

A common ACI architecture separates the deployment controller from the worker. An Azure Function or workflow receives an event, creates a container group from an image in Azure Container Registry, and records its identity for completion tracking. The worker reads input from external storage, writes durable output, and exits. The controller handles retries, duplicate events, concurrency limits, and eventual resource cleanup.

Managed identities connect the execution environment to Azure services without embedding application credentials in images. Use an appropriately authorized identity for registry pulls and workload access to services such as Key Vault. Azure Files can provide a mounted persistent filesystem for Linux groups, although its standard ACI volume integration requires a storage account key rather than automatically using the group's identity.

For private architectures, place supported groups in a delegated virtual network subnet, configure DNS for private endpoints, and provide NAT Gateway for outbound connectivity. Centralize logs and supported metrics with Azure Monitor so diagnostic information survives short-lived executions. When Kubernetes scheduling is required, AKS virtual nodes can use ACI as execution capacity for compatible pods, with Kubernetes supplying orchestration that standalone container groups do not provide.

Azure Container Registry

ACI can pull private application images from Azure Container Registry using a supported managed identity configuration. For example, give a user-assigned identity the appropriate repository pull permissions and reference that identity in the container group's registry configuration. For network-restricted registries, validate image-pull networking requirements separately from runtime application connectivity.

Azure Files

Linux container groups can mount Azure Files shares to persist data outside the group lifecycle. For example, mount a share for generated reports that must remain available after a batch container exits. The standard ACI Azure Files volume configuration uses a storage account key, so protect the deployment configuration and plan key rotation.

Azure Virtual Network

Deploy supported container groups into a subnet delegated to ACI for private communication with other resources. For example, a maintenance container can connect to a database through its private endpoint when routing and DNS are configured correctly. Associate Azure NAT Gateway with the subnet for supported outbound connectivity.

Azure Monitor

Use Azure Monitor metrics and supported Log Analytics integration to observe execution and retain container logs centrally. For example, alert on sustained memory pressure for Linux groups and query logs from failed batch runs after their containers have stopped. Metric availability differs between Linux and Windows containers.

Azure Key Vault

Application code can use the container group's managed identity to retrieve secrets from Key Vault with appropriate permissions. For example, a worker can fetch a third-party API credential at startup instead of embedding it in its image. Configure network access as well as authorization, and do not assume ACI automatically injects Key Vault secrets into environment variables.

Azure Functions

An Azure Function can call Azure Resource Manager to create, inspect, and delete container groups in response to a trigger. For example, a queue-triggered function can start a media-conversion container and record the group identifier for later completion tracking. Use a managed identity with narrowly scoped deployment permissions and handle duplicate events and deployment throttling.

Azure Kubernetes Service (AKS)

AKS virtual nodes allow compatible pods to execute on ACI while Kubernetes provides orchestration. For example, target a burst-processing workload at a virtual node instead of waiting for another VM-backed node to be provisioned. Check the selected virtual-node implementation's supported pod features, networking requirements, and regional capacity.

API Management

Azure Container Instances can host an API Management self-hosted gateway as a container. The gateway enforces API policies and forwards requests to backend APIs while its configuration is managed in API Management.

Azure Application Gateway

A container group deployed into a virtual network can serve as a private-IP backend for Azure Application Gateway. The gateway can terminate TLS, probe the containerized application, and route HTTP requests to it without assigning the group a public IP address.

Azure Blob Storage

Azure Container Instances can archive supported platform metrics in Azure Blob Storage through an Azure Monitor diagnostic setting. For example, CPU and memory measurements can be retained for longer-term analysis.

Alternatives to Azure Container Instances in other clouds

AWS

AWS FargateAWS Fargate

AWS Fargate and Azure Container Instances both run Linux and Windows containers without requiring teams to manage the underlying servers. Fargate uses Amazon ECS or EKS for scaling and load balancing, while Azure Container Instances leaves those to deployment tooling or an external service; Fargate also supports Linux on Arm through ECS, while Azure Container Instances requires x64 images.

Compare fact by fact
Azure Container InstancesAWS Fargate
Scaling and load balancingDeployment tooling or external serviceManaged through Amazon ECS or EKS
CPU architecturesx64 onlyx86; Arm for Linux on ECS
Compared Nov 2026

What is Azure Container Instances

2 min read

Azure Container Instances provides on-demand execution for container images without requiring you to provision or maintain virtual machines. Microsoft manages the underlying host operating system and container runtime; your team remains responsible for application code, image dependencies, configuration, and access controls. ACI is a lower-level execution building block rather than a complete application hosting or orchestration platform.

The primary deployment unit is a container group. A group defines resource allocations, operating system type, containers, networking, volumes, and restart policy. Linux groups can contain multiple containers that share a lifecycle, local network, and mounted storage, making them suitable for an application with supporting sidecars. Windows containers are also supported, but capabilities differ: multi-container groups and volume mounting are Linux-only. Images must target x64; ARM64 images are not supported.

Deploy groups through Azure Resource Manager, Bicep, the Azure CLI, or other infrastructure automation. Specify CPU and memory explicitly, and validate regional resource availability and subscription quotas before launching large batches. Startup time depends on capacity, image download size, registry access, and application initialization. Keep images small and avoid treating rapid startup as a guaranteed latency bound.

Choose a restart policy that matches the workload. Never is appropriate for a task that should execute once, OnFailure can restart a failed process, and Always supports continuously running processes. A restart policy does not provide application-level retry coordination or exactly-once execution. Batch workers should write durable checkpoints and handle repeated processing safely. Treat the container writable filesystem as ephemeral, and persist important output to external storage.

A container group can expose selected ports through a public IP address and an optional Azure DNS label, or supported groups can run privately inside a delegated virtual network subnet. Virtual network deployments require Azure NAT Gateway for supported outbound connectivity. Do not depend on a container group's IP address remaining unchanged. Public exposure does not automatically provide application TLS termination, certificate management, authentication, or load balancing; implement these controls in the application or an appropriate gateway.

Use managed identities for supported Azure service authentication and private Azure Container Registry image pulls. Separate permissions needed to deploy the group from permissions required by the running workload. Collect logs and metrics centrally because container groups and their local diagnostic history can be short-lived. For sensitive workloads, confidential container groups add a hardware-backed trusted execution environment, execution policies, and attestation capabilities.

ACI does not automatically turn an individual group into an autoscaled, load-balanced application. Create additional groups through automation or use a supported orchestration integration such as AKS virtual nodes. For managed microservices with revisions, certificates, and application-level scaling, evaluate Azure Container Apps instead. Design production systems around external state, retryable work, explicit health monitoring, and the availability characteristics of the selected region and deployment configuration.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.