Posted in

Sidecar Containers in Azure App Service

🔹 Feature: Sidecar Containers in Azure App Service
🔹 What It Does: App Service now supports running your main application container alongside up to 8 additional companion (sidecar) containers in the same instance. All containers share the same network namespace — they communicate over localhost — and start, stop, and scale together.

The pattern:
App Service
├── main container: your application
├── sidecar: Redis (in-instance cache)
├── sidecar: OpenTelemetry Collector (metrics/traces exporter)
└── sidecar: local AI model (e.g. Phi-4)

What Is It Giving You:

✅ Up to 9 Containers Per Instance: 1 main + up to 8 sidecars. Configure via Azure Portal, ARM, Bicep, Terraform, or Azure CLI.
✅ Shared Network Namespace — Localhost Between Containers: Sidecars are addressable from the main container over localhost: — no VNet config or service discovery needed.
✅ Real Use Cases Without Extra Infrastructure:
• Local caching (Redis, Memcached)
• Observability (OpenTelemetry Collector, Fluentd)
• Local AI inference (Phi-4, small LLMs, embeddings)
• Envoy / NGINX reverse proxy
• Custom auth proxies or credential brokers
✅ Any Container Registry: Docker Hub, Azure Container Registry, or any OCI-compatible registry. Each sidecar has its own image, tag, environment vars, startup command, and port config.
✅ Managed Identity Support: Sidecars can use system- or user-assigned identities to pull private images — no admin credentials stored in config.
✅ Unified Lifecycle: All containers start, stop, restart, and scale together. One App Service Plan, one deployment slot, one monitoring surface.
✅ Available on Linux App Service: Premium v3 / Isolated v2 tiers. Windows sidecar support is in progress.

🌐 https://learn.microsoft.com/en-us/azure/app-service/configure-sidecar

Microsoft Certified Trainer, Office 365, AWS, Azure and Cloud Expert-Architect. In the IT world for over than 20 years.

Apart from the main area of Microsoft Azure expert in the field of infrastructure servers Windows Server 2003-2019, Microsoft Active Directory, Hyper-V Private Cloud, IIS, System Center, SQL.

Private Cloud, System Center, Hyper-V, Open Stack Expert and all Microsoft products Expert. Linux Server administrator.

My Azure community projects:

https://mazeball.azurewebsites.net/
https://github.com/MariuszFerdyn?tab=repositories

More