# 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.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-container-instances

> 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.

## 10 key features of Azure Container Instances

1. **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.
2. **Hypervisor-level isolation**: Container groups receive hypervisor-level isolation from other workloads. This provides a stronger execution boundary than sharing a host kernel alone.
3. **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.
4. **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.
5. **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.
6. **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.
7. **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.
8. **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.
9. **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. **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. **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. **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. **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. **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. **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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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)](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.
- **[Azure Cloud Shell](https://blowstack.com/tools/cloud-services-hub/azure-cloud-shell)**: Azure Cloud Shell uses Azure Container Instances to run its shell sessions. In a virtual-network deployment, the session containers run in a subnet delegated to Azure Container Instances so administrators can reach private resources.
- **[Azure Content Delivery Network](https://blowstack.com/tools/cloud-services-hub/azure-content-delivery-network)**: An Azure Container Instances group with a publicly reachable HTTP endpoint can serve as a custom origin for Azure Content Delivery Network. The CDN can cache responses from the containerized application at edge locations.
- **[Azure Deployment Environments](https://blowstack.com/tools/cloud-services-hub/azure-deployment-environments)**: Azure Container Instances container groups can be provisioned as part of an Azure Deployment Environments catalog definition. For example, a development environment can deploy a short-lived test container group together with its networking and storage.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: Azure Container Instances can run containerized, self-hosted Azure Pipelines agents. When an agent container starts, it registers with an Azure DevOps agent pool and can run build or deployment jobs.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: A public Azure Container Instances group can expose an Azure-assigned DNS name. An Azure DNS zone can publish a CNAME pointing to that name, giving the containerized application a hostname in a custom domain.
- **[Azure Document Intelligence in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-document-intelligence-in-foundry-tools)**: Azure Container Instances can host supported Document Intelligence containers as HTTP endpoints for document analysis. The container group supplies the compute and endpoint, and the container uses the configured Document Intelligence resource for connected billing.
- **[Azure ExpressRoute](https://blowstack.com/tools/cloud-services-hub/azure-expressroute)**: Container groups deployed into an Azure virtual network can communicate with on-premises networks over an ExpressRoute private peering connection. This lets an on-premises client reach a container group by its private IP address.
- **[Azure Firewall](https://blowstack.com/tools/cloud-services-hub/azure-firewall)**: Traffic from container groups deployed into a virtual network can be inspected and filtered by Azure Firewall in a supported routing configuration. Azure Firewall can also use destination NAT to forward inbound connections to a private container group.
- **[Azure Front Door](https://blowstack.com/tools/cloud-services-hub/azure-front-door)**: An Azure Container Instances group that exposes a public HTTP endpoint can be configured as a custom origin in Azure Front Door. Front Door can terminate client TLS, probe origin health, and route requests across multiple container groups.
- **[Azure Language in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-language-in-foundry-tools)**: Azure Container Instances can host supported Azure Language containers, such as sentiment analysis, as local HTTP inference endpoints. The container connects to its configured Azure Language resource for billing in connected mode.
- **[Azure Load Balancer](https://blowstack.com/tools/cloud-services-hub/azure-load-balancer)**: Azure Standard Load Balancer can distribute incoming traffic across container groups in an Azure virtual network. Azure Container Instances NGroups supports load balancers for ingress to managed groups of container instances.
- **[Azure Machine Learning](https://blowstack.com/tools/cloud-services-hub/azure-machine-learning)**: Azure Machine Learning SDK v1 supported deploying a trained model and its scoring environment to Azure Container Instances as a test web service. This was a lightweight inference target for development and testing rather than a production endpoint.
- **[Azure NAT Gateway](https://blowstack.com/tools/cloud-services-hub/azure-nat-gateway)**: Container groups deployed into an Azure virtual network use Azure NAT Gateway for supported outbound internet connectivity. Attaching the gateway to the delegated subnet gives outbound connections a predictable public source IP address.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy can evaluate and enforce configuration rules on Azure Container Instances container groups. For example, a built-in policy can require container groups to be deployed into a virtual network.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Azure Container Instances has a dedicated Azure portal experience for creating and managing container groups. It lets operators inspect container state and logs, review metrics, and start, stop, or restart a group.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: A container group deployed into a virtual network can reach supported Azure services through Private Link private endpoints. For example, Azure Container Instances can pull an image from a private Azure Container Registry without using the registry's public endpoint.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Resource Manager provisions Azure Container Instances container groups as `Microsoft.ContainerInstance/containerGroups` resources. One template can deploy a container group together with its delegated subnet, managed identity, or file share.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Azure RBAC controls who can manage Azure Container Instances container groups and perform operations such as restarting a group or reading container logs. Role assignments can be scoped to an individual group or inherited from its resource group or subscription.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: Azure Service Health can notify operators of Azure Container Instances incidents, planned maintenance, and advisories that affect their subscriptions and regions.
- **[Azure Speech in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-speech-in-foundry-tools)**: Azure Container Instances can run supported Azure Speech containers to expose speech inference endpoints, such as speech-to-text. A connected Speech container uses its configured Azure Speech resource for billing.
- **[Azure Traffic Manager](https://blowstack.com/tools/cloud-services-hub/azure-traffic-manager)**: Azure Traffic Manager can use the public hostnames of Azure Container Instances groups as external endpoints. It can probe those endpoints and direct DNS traffic to a healthy group in another region when the primary group is unavailable.
- **[Azure Translator in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-translator-in-foundry-tools)**: Azure Container Instances can host a supported Translator container as a text translation endpoint. In connected mode, the container uses its configured Translator resource for billing.
- **[Azure Vision in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-vision-in-foundry-tools)**: Azure Container Instances can host a supported Azure Vision Read OCR container and expose its inference endpoint. The connected container uses its configured Azure Vision resource for billing.
- **[Azure VPN Gateway](https://blowstack.com/tools/cloud-services-hub/azure-vpn-gateway)**: A container group deployed into a virtual network can communicate with an on-premises network connected through Azure VPN Gateway. For example, a site-to-site tunnel can let an internal client reach the group's private endpoint without exposing the container to the internet.
- **[Azure Web Application Firewall](https://blowstack.com/tools/cloud-services-hub/azure-web-application-firewall)**: Azure Web Application Firewall can inspect HTTP requests before they reach an Azure Container Instances application behind Azure Application Gateway or Azure Front Door. The firewall applies managed or custom rules at the frontend rather than inside the container group.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: Azure Container Instances resource changes can trigger Event Grid subscriptions for Azure Resource Manager events. A subscription can filter successful writes or deletes to container group resource IDs and trigger a workflow when a group changes.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Azure Container Instances can stream supported platform metrics to Event Hubs through an Azure Monitor diagnostic setting. Consumers can process measurements such as CPU and memory usage in an external monitoring pipeline.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: The Azure Container Instances connector lets a Logic Apps workflow create, update, or manage container groups. For example, an incoming file can trigger a workflow that starts a short-lived processing container.
- **[Microsoft Azure Attestation](https://blowstack.com/tools/cloud-services-hub/microsoft-azure-attestation)**: Confidential container groups in Azure Container Instances can use Microsoft Azure Attestation to verify evidence from their hardware-isolated environment. A secure key release sidecar can use the resulting attestation token to request a key governed by a release policy.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud can surface policy-backed security recommendations for Azure Container Instances. For example, an assessment can flag a container group that is not deployed into a virtual network.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Azure Container Instances can assign a system-assigned or user-assigned Microsoft Entra managed identity to a container group. Containers can use that identity to obtain access tokens without keeping client secrets in the image or deployment configuration.

## Alternatives to Azure Container Instances in other clouds

### AWS

**[AWS Fargate](https://blowstack.com/tools/cloud-services-hub/aws-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.

| | Azure Container Instances | AWS Fargate |
| --- | --- | --- |
| Scaling and load balancing | Deployment tooling or external service | Managed through Amazon ECS or EKS |
| CPU architectures | x64 only | x86; Arm for Linux on ECS |

Compared Nov 2026.

## What is Azure Container Instances

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.
