Introducing a new way to review your PRs.

Read the announcement

floci-io / floci-az

Light, fluffy, and always free - Local Azure Emulator

View on GitHub

27 documents · Updated Nov 23, 2026

docs / azure-compute-services

Azure compute and container services

These services provide Azure-shaped control planes for Functions and App Service, virtual machines, Kubernetes clusters, container registries, event brokers, and container groups. In real mode, selected resources connect to Docker-backed runtimes or broker sidecars so clients can use real execution and messaging paths. Mocked modes keep the resource API available without starting those runtimes. The Azure Container Instances and Azure Container Apps pages describe their resource, runtime, and ingress lifecycle flows in more detail. The Service Bus page covers the related messaging service. The storage backends page explains how service records persist. The compatibility tests page explains how service behavior is checked against client expectations.

Service model

The service model separates management resources from the systems that perform work. A control plane creates and reports the resource. A runtime or broker then executes code, runs a cluster, stores images, or moves events when real mode supports that path.

ServiceReal execution or data planeMain resource scopeMocked-mode result
FunctionsWarm Azure Functions host containersFunction appSuccess-shaped response without user code execution
Virtual machinesLong-lived Docker container per VMVMImmediate running resource state
AKSOne k3s container per clusterKubernetes clusterSynthetic kubeconfig without a cluster
ACRShared Docker Registry sidecarRegistry namespaceAzure-shaped registry metadata
Event HubsArtemis broker per namespace and optional shared Kafka brokerEvent Hubs namespaceManagement resource without a broker
Azure Container InstancesDocker container group with shared pod-like networkingContainer groupResource-only group state without Docker
Container AppsDocker containers for revision replicas and ingressContainer app resourceSee child-page lifecycle details

Azure Functions and App Service

Azure Functions provides an app and function control plane with an invocation endpoint. App Service provides the Microsoft.Web/sites resource and its config/web child resource as a management shell for Linux Function Apps. The site runtime setting and the Function App runtime must stay aligned.

An App Service site PUT or config/web update reads linuxFxVersion, validates the requested Functions runtime, and synchronizes the named site with a Function App before saving the site document. This makes the App Service resource the management entry point while the Functions service owns package deployment and invocation.

FunctionRuntime maps supported runtime names to default Functions images when no linuxFxVersion is supplied. A supplied value must use a stack and version such as Python|3.12, and its stack must match the app runtime after normalization. Node, Python, Java, and .NET isolated values select versioned images; dotnet-isolated is treated as the .NET runtime for matching.

The main flow joins package deployment with later invocation. Deployment stores and inspects the package before the control plane records the function. The service supports both function-directory packages and app-root packages, but does not allow an app to mix those layouts. Invocation then reuses a warm app host or starts one and loads the app code when no host is ready.

This diagram shows how deployment metadata and stored code become a real invocation path.

flowchart LR
    A[Create App Service site] --> B[Set Functions runtime]
    B --> C[Create or update Function App]
    C --> D[Deploy package]
    D --> E[Store and inspect code]
    E --> F[Save function definition]
    F --> G[Invoke function]
    G --> H{Warm app host?}
    H -->|Yes| I[Proxy request]
    H -->|No| J[Create host and load app code]
    J --> K[Wait for host readiness]
    K --> I
    I --> L[Return response]

One launch creates a container for the full function app. It selects the runtime image, places the app code under the Functions host root, starts the container, and waits for the host status endpoint before returning a usable endpoint. The launcher also selects a reachable Docker network when the emulator runs inside a container, so the host can call back to emulator services such as storage.

All functions in one app share a container, so a new deployment or deletion drains that app's pool before the next request. Warm containers can expire after an idle period, while ephemeral mode stops each container after its invocation. A failed start or invocation also clears the app pool before the next cold start.

References: src/…/WebArmService.java• L37-46 src/…/WebArmService.java• L116-181 src/…/WebArmService.java• L207-301 src/…/FunctionsServiceHandler.java• L42-80 src/…/FunctionsServiceHandler.java• L228-299 src/…/FunctionsServiceHandler.java• L338-387 src/…/FunctionCodeStore.java• L47-119 src/…/FunctionRuntime.java• L6-74 src/…/ContainerLauncher.java• L40-49 src/…/ContainerLauncher.java• L86-150 src/…/ContainerLauncher.java• L160-178 src/…/ContainerLauncher.java• L180-203 src/…/ContainerLauncher.java• L313-342 src/…/WarmPool.java• L20-28 src/…/WarmPool.java• L79-142 src/…/FunctionsExecutorService.java• L49-73 src/…/FunctionsExecutorService.java• L78-133

Virtual machines

Virtual machine resources expose the ARM lifecycle for create, read, power actions, instance view, and long-running operation polling. The real mode represents an always-on VM with a long-lived Docker container. Mocked mode keeps the same resource API but uses immediate control-plane state without Docker.

The VM control plane keeps each resource paired with one backing container. Create or update resolves the requested image and starts that container; a readiness poll changes provisioning to succeeded only after Docker reports it running. Power actions map to container start, stop, or restart operations. The container manager checks the resulting Docker state before the handler records the new power state, so an unsuccessful Docker action becomes a failed operation instead of a false success.

The VM records are also exposed through the ARM resource index by subscription and resource group. That index uses the same scoped view as direct VM listing, so discovery and list responses describe the same resources.

Power actions return Azure-shaped asynchronous responses. Their operation records follow the VM instance that issued the action and resolve from the observed provisioning state. If a failed VM has no backing container, a start-like action retries provisioning instead of claiming that an absent runtime is running. Delete removes the backing container and the management record, then returns a terminal 204 response so clients do not wait for an operation that the emulator does not track. If Docker cannot create the runtime, the VM remains Failed without a power state; a later PUT or power-on action can retry provisioning instead of reporting a running VM with no runtime.

Per-VM coordination keeps a create, retry, or power action from saving an obsolete container identity. This keeps the control-plane record paired with the container that the latest operation manages.

References: src/…/VmHandler.java• L234-301 src/…/VmHandler.java• L330-349 src/…/VmHandler.java• L374-452 src/…/VmHandler.java• L532-613 src/…/VmHandler.java• L630-659 src/…/VmContainerManager.java• L21-37 src/…/VmContainerManager.java• L64-151 src/…/VmOperations.java• L11-15 src/…/VmOperations.java• L41-79 src/…/VmModels.java• L12-35 src/…/VmModels.java• L77-108

AKS clusters

AKS provides cluster and agent-pool control planes plus admin and user credential endpoints. Its ARM surface exposes managed clusters and agent pools under the Microsoft.ContainerService provider. In real mode, each cluster is backed by a k3s container. The control plane waits for the Kubernetes API to become ready before it reports the cluster as succeeded and returns a kubeconfig that points to the reachable API endpoint.

The cluster records are also exposed through the ARM resource index by subscription and resource group. That index uses the same scoped cluster view as direct listing, so ARM discovery and cluster lists stay aligned.

The cluster runtime uses an explicit named volume for k3s state. An existing volume can be reused, while a failed start removes only a volume created by that start attempt and releases its allocated API port. The readiness check uses the runtime's reachable endpoint, and the kubeconfig is rewritten to use the public endpoint that clients can reach. Real-mode credential requests remain unavailable until that kubeconfig is extracted; mocked mode returns a synthetic kubeconfig without starting Kubernetes. Deletion removes the management record after it attempts to stop the backing cluster, then exposes a completed Azure-style operation monitor. Cleanup errors do not block removal of that record.

Agent pools remain part of the cluster control plane. Their declared count, size, operating system, mode, and provisioning state are returned with the cluster and through the agent-pool child endpoints, while the single k3s runtime represents the usable cluster endpoint. Pool changes update this management view; they do not create separate node runtimes.

Reset removes each real cluster's k3s container and data volume before it clears the stored cluster records. This prevents a reset from leaving a runtime that no remaining management record can clean up.

References: src/…/AksArmSurface.java• L18-37 src/…/AksHandler.java• L46-65 src/…/AksHandler.java• L238-323 src/…/AksHandler.java• L331-383 src/…/AksHandler.java• L416-549 src/…/AksHandler.java• L721-733 src/…/AksClusterManager.java• L31-69 src/…/AksClusterManager.java• L69-145 src/…/AksClusterManager.java• L147-229 src/…/AksModels.java• L18-40 src/…/AksModels.java• L103-140

Azure Container Registry

ACR provides a registry resource control plane and a Docker Registry data plane. The control plane manages registry state, credentials, name checks, usage data, and image-related endpoints. Registry metadata also carries client-facing settings such as SKU, role assignment mode, and public network access. The data plane serves repository and image traffic through the registry host named by Azure.

The ARM surface exposes registries at resource-group scope and exposes replication as a registry child-resource path. Registry names are also claimed as global DNS names in the active cloud profile. These resource paths are the management entry points; repository traffic still uses the separate registry data-plane host. A data-plane host is usable only when a matching registry resource exists, even though the emulator routes the whole .azurecr.io suffix to this service.

In real mode, one shared Docker Registry container backs all emulated registries. The service isolates each registry by adding its name to the internal repository path, then removes that prefix from client-visible paths and responses. This lets several Azure registry resources use one real image store without exposing its internal layout. The shared container starts only when a registry needs the data plane and can be recreated if an external action stops or removes it.

The client authentication path follows the Docker and ACR token flow before repository traffic reaches the shared registry. A request without a token receives a bearer challenge. The exchange endpoints validate the supported request shape and issue refresh and scoped access tokens, but the shared registry runs anonymously, so the emulator does not verify token claims or enforce generated admin credentials.

Registry deletion removes the Azure resource metadata only and releases the management name claim. Because the data plane is shared, repositories remain in the backing registry until its own cleanup removes them. A reset stops that shared data plane before it clears registry records, so images from the previous emulator state do not reach a later registry.

The main ACR path joins resource state with the shared data plane:

flowchart LR
    A[Create registry resource] --> B[Start or check shared registry]
    B --> C[Report login server and readiness]
    D[Client requests /v2/] --> E[Bearer challenge]
    E --> F[Exchange or request token]
    F --> G[Proxy repository request]
    G --> H[Shared registry with registry prefix]
    H --> I[Rewrite client-facing paths and responses]

The manager chooses a reachable endpoint for the current Docker network mode and reports the published port with the registry resource. It releases the old port before recovery or shutdown, then allocates a new port when the shared container starts again. If the shared container is no longer running, the next use creates it again and refreshes that endpoint. A readiness check moves pending registry resources to succeeded when the data plane answers. Name claims are checked as one operation with the resource write, so two scopes cannot claim the same registry DNS name at the same time. The readiness poller and reset path share coordination, so a reset cannot clear records and then have a stale poll restart the sidecar. In mocked mode, the resource control plane remains available, while repository operations return an unsupported response because no registry container runs.

The registry records are also exposed through the ARM resource index by subscription and resource group. That index uses the same scoped registry view as direct listing, so management discovery does not diverge from registry lists.

References: src/…/AcrArmSurface.java• L20-36 src/…/AcrHandler.java• L51-88 src/…/AcrHandler.java• L174-239 src/…/AcrHandler.java• L242-353 src/…/AcrHandler.java• L364-465 src/…/AcrHandler.java• L519-565 src/…/AcrHandler.java• L748-755 src/…/AcrRegistryManager.java• L18-29 src/…/AcrRegistryManager.java• L63-115 src/…/AcrRegistryManager.java• L117-164 src/…/AcrModels.java• L15-36

Event Hubs

Event Hubs separates namespace management from event traffic. The HTTP handler creates namespaces, hubs, consumer groups, and connection details. AMQP and Kafka clients then connect to broker sidecars rather than sending data through the management handler.

Each namespace gets an Artemis broker whose topology comes from the namespace definition. A hub can declare its partition count, consumer groups, and event retention period. The broker creates one non-destructive stream for each consumer-group partition, so reading advances a consumer's position without removing the event. The retention period removes events after their configured lifetime. The default is one hour, and the accepted maximum is 90 days. Partition counts default to one and are limited to 32.

The broker accepts both ordinary hub sends and sends pinned to a named partition. Both address forms converge on the same hub topology, so a client that uses a different host or protocol spelling still reaches the declared partitions. Each consumer group receives one copy of an event in the selected partition. The broker also exposes the management and authorization paths that clients need before they consume events. The management responder answers AMQP READ requests for a hub with its partition count and partition IDs. It uses the same namespace definition as the broker, so discovery and routing describe one topology. Unsupported management operations return a clear not-implemented response instead of fabricating partition state. An optional shared Redpanda sidecar provides Kafka protocol access.

The broker topology is prepared before startup, so event traffic does not depend on a later management API becoming ready. TLS uses a generated certificate whose names cover the broker hosts that clients can reach, and the namespace endpoint returns that certificate for client verification.

The flow below shows how one namespace definition becomes a usable broker path.

flowchart LR
    A[Create namespace and hubs] --> B[Build broker topology]
    B --> C[Generate TLS identity]
    C --> D[Start Artemis broker]
    D --> E[Start authorization and discovery responders]
    E --> F[Client discovers partitions]
    F --> G[Client opens links]
    G --> H[Broker routes and retains events]

Deleting a namespace removes its broker and responder resources with the management state. When Kafka access is enabled, one shared Redpanda sidecar provides the Kafka endpoint and must become ready before clients use it. The sidecar is separate from the per-namespace Artemis brokers.

References: src/…/EventHubHandler.java• L22-47 src/…/EventHubHandler.java• L90-124 src/…/EventHubHandler.java• L142-219 src/…/EventHubHandler.java• L250-290 src/…/EventHubNamespaceManager.java• L30-61 src/…/EventHubNamespaceManager.java• L97-197 src/…/EventHubNamespaceManager.java• L207-251 src/…/EventHubsKafkaManager.java• L16-19 src/…/EventHubsKafkaManager.java• L44-109 src/…/ArtemisConfigGenerator.java• L18-32 src/…/ArtemisConfigGenerator.java• L58-118 src/…/ArtemisConfigGenerator.java• L127-168 src/…/ArtemisConfigGenerator.java• L186-227 src/…/ArtemisConfigGenerator.java• L381-449 src/…/ArtemisTlsGenerator.java• L38-59 src/…/ArtemisTlsGenerator.java• L73-115 src/…/EventHubManagementResponder.java• L26-41 src/…/EventHubManagementResponder.java• L49-67 src/…/EventHubManagementResponder.java• L89-124 src/…/EventHubManagementResponder.java• L186-228

Azure Container Instances

Azure Container Instances provides an ARM control plane for container groups and can connect that control plane to a real Docker-backed group. In non-mocked mode, the first container owns the group's network identity and published ports. Other containers join that network namespace so they can use the group-level localhost behavior.

The ARM surface exposes container groups at resource-group scope with a required location and a constrained group name. This management path identifies the group and its actions, while the Docker-backed group supplies the real process and network behavior.

Creation checks the required image and container list, applies resource and protocol defaults, and keeps secrets out of response bodies. The runtime maps commands, environment values, memory requests, named volumes, and secret files to the group containers. Published ports use the group's advertised ports when possible. A failed partial start removes its containers and releases its ports. Group actions report the state reached by the containers rather than assuming that a Docker call succeeded. In mocked mode, the control plane returns resource-shaped state without starting Docker. See Azure Container Instances for the full resource, runtime, and ingress lifecycle view.

The group lifecycle keeps the management state tied to observed container state. Start creates missing containers, stop removes running state but keeps the resource, and restart brings back the primary network owner before its joiners. A direct update that changes the container specification replaces the backing group; a tags-only update keeps the existing containers. A short-lived container can be considered started after it exits, so provisioning can succeed for one-shot workloads. Readiness requires every declared container to have started, while the instance view reports later running or terminated state. Persisted groups with a usable provisioning state are reconciled after restart, but failed groups are not silently started again.

References: src/…/AciArmSurface.java• L18-32 src/…/AciHandler.java• L46-77 src/…/AciHandler.java• L127-187 src/…/AciHandler.java• L298-369 src/…/AciHandler.java• L394-459 src/…/AciHandler.java• L680-717 src/…/AciContainerGroupManager.java• L27-48 src/…/AciContainerGroupManager.java• L76-117 src/…/AciContainerGroupManager.java• L119-179 src/…/AciContainerGroupManager.java• L228-272 src/…/AciContainerGroupManager.java• L350-417 src/…/AciModels.java• L14-38

Azure Container Apps

Azure Container Apps provides a resource control plane for managed environments, apps, and revisions plus a Docker-backed runtime for each revision's replicas. A managed environment owns the app scope. A container app owns its revision history and traffic rules. The Azure Container Apps child page explains the resource, runtime, and ingress lifecycle in detail.

The ARM surface exposes container apps and managed environments as resource-group resources. Revisions and environment storages are child-resource paths, so management clients can address those objects without changing the runtime or ingress boundary.

An app update that changes its template creates a revision. The revision becomes active after its requested replicas are ready, while single-revision mode deactivates older revisions. Revision actions can activate, deactivate, or restart a revision without changing the app resource. Secret values are accepted for runtime use but are hidden from management responses. A managed environment cannot be deleted while an app still uses it.

Ingress selects an active revision from its traffic weights and forwards the request to one of that revision's replicas. The endpoint uses a stable app host, while internal callers can reach an app through its environment and external access follows the ingress setting. If no replica is available, the endpoint can scale the revision from zero; otherwise it returns an unavailable response. Mocked mode keeps the resource lifecycle but does not provide a real ingress data plane.

This flow shows how an app resource becomes a revision runtime and then an ingress response.

flowchart LR
    A[Create environment] --> B[Create or update app]
    B --> C[Create revision]
    C --> D[Start replica containers]
    D --> E[Mark revision ready]
    E --> F[Select revision by traffic]
    F --> G[Proxy ingress request]

References: src/…/ContainerAppsArmSurface.java• L18-36 src/…/ContainerAppsHandler.java• L44-115 src/…/ContainerAppsHandler.java• L117-247 src/…/ContainerAppsHandler.java• L263-363 src/…/ContainerAppsHandler.java• L384-427 src/…/ContainerAppsHandler.java• L442-600 src/…/ContainerAppsHandler.java• L607-636 src/…/ContainerAppsHandler.java• L663-742 docs/azure-container-apps.md

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the App Service linuxFxVersion, supported Functions runtime, site document, and synchronized Function App aligned. A site can otherwise report a runtime that the invocation path does not use.
  • Keep the Functions runtime normalization, stack and version parsing, selected image, and launcher image aligned. A new runtime spelling or image tag must work through both control-plane validation and host startup.
  • Keep App Service name claims and the site write lock paired with Function App synchronization. A race can let a deleted or re-owned site provision code under the wrong name.
  • Keep the Functions package layout, route metadata, container filesystem, and proxy target aligned. A route change in one layer can send valid requests to the wrong function.
  • Keep every Functions pool drain key matched to the app identity. A mismatch can leave old code running after deploy or delete.
  • Keep Functions host startup, app code placement, container network selection, and emulator callback endpoints aligned. A container that cannot reach the emulator may start but fail when the function uses platform services.
  • Keep VM image resolution, container identity, readiness polling, and the recorded VM instance paired. A stale container ID can make a resource report the state of an older runtime.
  • Keep VM container actions, read-back state checks, power state, provisioning state, and tracked operation outcomes aligned. A change that assumes a Docker call succeeded can expose a false Azure state.
  • Keep VM operation records tied to the VM instance that issued them. A name-reused VM must not settle an operation created for its predecessor.
  • Keep VM provisioning failure, retry behavior, power-action state, backing container operations, and terminal delete response aligned. A mismatch can hide a failed runtime or leave clients waiting for an operation.
  • Keep the shared scoped resource view aligned with both direct subscription or resource-group listings and ARM resource-index discovery for VMs, AKS clusters, and ACR registries.
  • Keep each ARM surface aligned with the handler's provider, resource scope, child paths, name rules, and location rule. A mismatch can make a valid management request bypass the service.
  • Keep ACR registry host routing, repository prefixes, proxy response rewriting, login-server values, global name claims, and metadata-only delete behavior aligned. A mismatch can expose another registry's repositories or break upload and catalog paths.
  • Keep ACR host existence checks aligned with global name claims. A routed host for an uncreated registry must not receive tokens or repository access.
  • Keep ACR bearer challenges, token exchange responses, requested scopes, and supported request validation aligned with client expectations. The data plane currently accepts the resulting authorization header without verifying its claims.
  • Keep ACR registry settings such as SKU, role assignment mode, and public network access aligned between request parsing, stored metadata, and ARM responses. A mismatch can make a successful update disappear on the next read.
  • Keep ACR shared-sidecar readiness paired with resource provisioning state, endpoint selection, local-port reporting, and reset coordination. Existing registries must learn the current endpoint after sidecar recovery, and a reset must not be undone by a stale poll.
  • Keep Event Hubs broker topology, partition counts, partition discovery, retention values, and namespace settings identical. Clients use both the broker routes and the management response, while event lifetime comes from the broker's retention policy.
  • Keep Event Hubs sender address forms and pinned-partition routes mapped to the same partition queues. A topology drift can make sends succeed while consumers see no event.
  • Keep Event Hubs responder cleanup paired with broker cleanup. A deleted namespace must not leave an active broker or responder.
  • Keep ACI group status, container state, published ports, startup reconciliation, and cleanup aligned. The first container owns the network namespace, and a partial start must release every allocated port.
  • Keep ACI specification-change replacement separate from tag-only updates. A resource can report Succeeded only when its stored container definition matches the containers that run.
  • Keep ACI action outcomes paired with operation records and the action-specific HTTP shape. A client must not poll an operation that was not recorded.
  • Keep Azure Container Apps environment ownership, revision state, replica readiness, traffic weights, ingress access rules, and endpoint selection aligned. Environment deletion must continue to reject apps that still refer to it. Update the child page when resource, runtime, or ingress contracts change.

Important failure modes

TriggerConsequenceGuard
An App Service site uses an unsupported, malformed, or runtime-mismatched linuxFxVersionThe site update is rejected before the site document changesParse the stack and version, normalize the runtime names, and require the stack to match the app runtime
A Functions host does not become readyInvocation fails and the app pool is clearedThe next request starts a fresh host
A function app mixes incompatible package layoutsDeployment is rejected before the new definition is savedLayout checks enforce one package model per app
A Functions container cannot reach the emulator's callback servicesThe host may start but function calls to platform services failSelect the reachable Docker network and inject the emulator endpoint into the host environment
Docker fails during VM creationThe VM remains Failed without a power stateA later PUT or power-on action retries provisioning
A VM power action does not reach its Docker target stateThe operation fails instead of changing the recorded power stateRead the container state after the action and settle the operation from the result
A VM power action targets a failed VM without a containerThe control plane could report a running VM that has no runtimeStart-like actions retry provisioning; stop-like actions leave the failure intact
A VM operation is polled after its VM was deleted or recreatedThe client can receive a result for the wrong VM instanceBind operation resolution to the VM instance identity and fail deleted instances
A VM delete or power action does not match its client contractA client can wait forever or observe a state that does not match the containerDelete is terminal and power actions expose the expected operation shape
A k3s cluster cannot startThe cluster is marked failed and is not silently retriedCluster readiness polling does not advance failed resources
AKS credentials are requested before a real kubeconfig is readyThe client receives a conflict instead of a non-working synthetic credentialReturn credentials only after cluster readiness extracts the kubeconfig
AKS cleanup cannot stop the backing clusterThe control-plane record is still deleted while the runtime may remainStop failures are logged before the resource record is removed
AKS reset clears records without removing their runtimesk3s containers or volumes remain with no management recordRemove each real cluster runtime before clearing the store
The shared ACR registry sidecar diesRepository requests fail or pending registries can remain unreadyThe manager detects the stopped container and the next use starts it again
An ACR reset races with readiness pollingA stale poll can recreate the shared sidecar after resetCoordinate the poll's read-and-start path with reset cleanup
A routed ACR host has no matching registry resourceThe caller could reach a registry that was never createdReject unknown registry names before token or repository handling
ACR proxy paths or response rewrites lose the registry prefix boundaryRepositories can be mixed between registries or upload sessions can address the wrong pathPrefix repository requests and translate client-facing locations and names on the way back
An ACR client sends an invalid token request shapeToken exchange fails before repository accessValidate the supported grant type, service, scope, and JWT shape at the token endpoints
An ACR registry is deleted and recreated with the same nameOld repositories can still be present in the shared data planeTreat resource deletion and repository cleanup as separate lifecycles
An ACR setting is stored but omitted or defaulted incorrectly in the ARM responseClients can read back a different registry configuration than they wroteReturn the stored setting or its defined Azure-compatible default
Event Hubs topology and partition discovery disagreeProducers or consumers cannot use the declared hub or partitionsTopology generation and management responses use the same namespace data
An Event Hubs send uses a route that has no matching partition topologyThe send can succeed while no consumer group receives the eventDeclare both hub and pinned-partition sender addresses and their partition diverts
An Event Hubs retention value is invalid or outside the supported rangeNamespace or hub setup is rejected instead of creating a broker with an unsafe event lifetimeAccept only positive ISO-8601 durations up to 90 days and apply the default when omitted
A broker certificate does not cover the host in a client endpointTLS clients reject the namespace connectionGenerate certificate names from the hosts that the sidecar and clients can reach
A namespace is deleted while broker resources remainThe deleted namespace can retain traffic or background resourcesNamespace cleanup stops responders and removes the broker
An ACI group partially starts or loses its primary containerThe group can retain stale IDs or ports and its secondary containers cannot share the expected networkRoll back partial starts, recreate missing containers on start, and release ports on removal
An ACI specification changes without replacing its containersARM read-back can describe an image, command, environment, or port set that is not runningReplace the group for container-shaping updates and keep tags-only updates in place
An ACI action fails but its operation is reported as succeededA client records a state that the containers did not reachStore the action outcome and return it from the operation endpoint
An ACI group has short-lived containersProvisioning can remain Creating forever if readiness requires containers to keep runningTreat every declared container that has started as provisioned and report exit state separately
A Container Apps revision does not open its target portRevision start fails and its already-created containers are removedReadiness polling waits for the configured ingress timeout
Container Apps has no active revision or an ingress caller is not allowedIngress returns unavailable or not-found instead of reaching a replicaSelect only active weighted revisions and enforce external or environment-local access
Container Apps traffic weights do not identify active revisionsRequests can fall back to an unintended revision or become unavailableValidate weights and route only to active revisions
A managed Container Apps environment still has an appEnvironment deletion is rejected and the app remains availableCheck app ownership before removing the environment resource

Key files

FileWhy to read it
src/…/WebArmService.javaApp Service site and config/web control plane and Function App synchronization
src/…/FunctionsServiceHandler.javaFunctions management and invocation control plane
src/…/FunctionRuntime.javaFunctions runtime normalization, linuxFxVersion validation, and image selection
src/…/FunctionCodeStore.javaFunction package storage and route metadata boundary
src/…/ContainerLauncher.javaFunctions host startup, app code loading, network selection, and readiness boundary
src/…/WarmPool.javaWarm host reuse, eviction, and drain behavior
src/…/FunctionsExecutorService.javaRequest path from the emulator endpoint to a running host
src/…/VmArmSurface.javaVM ARM resource scope and naming contract
src/…/VmHandler.javaVM resource, provisioning retry, power-action, operation, delete, and scoped discovery lifecycle
src/…/VmContainerManager.javaDocker-backed VM start, stop, restart, readiness, and cleanup behavior
src/…/VmOperations.javaVM power-operation status and instance-aware outcome tracking
src/…/VmModels.javaVM control-plane and power-state model
src/…/AksArmSurface.javaAKS ARM resource and child-resource scope
src/…/AksHandler.javaAKS resource, credential, readiness, cleanup, and scoped discovery lifecycle
src/…/AksClusterManager.javaCluster runtime readiness, persistence, endpoint, and kubeconfig boundary
src/…/AksModels.javaCluster and agent-pool control-plane model
src/…/AcrArmSurface.javaACR ARM resource, name claim, and replication child-resource scope
src/…/AcrHandler.javaRegistry control plane, host routing, settings, name claims, readiness, reset, and scoped discovery behavior
src/…/AcrModels.javaRegistry metadata, client-facing settings, credentials, and provisioning model
src/…/AcrRegistryManager.javaShared registry data-plane lifecycle, endpoint selection, recovery, and port reporting
src/…/AcrRegistryProxy.javaRegistry path isolation, streaming, catalog pagination, and client-facing proxy behavior
src/…/AcrTokenService.javaBearer challenge, request validation, and ACR token exchange surface
src/…/AcrErrors.javaDocker Registry error responses for the ACR data plane
src/…/EventHubHandler.javaEvent Hubs management, health, connection, and certificate surface
src/…/EventHubNamespaceManager.javaNamespace broker, TLS, and responder lifecycle
src/…/EventHubsKafkaManager.javaShared Kafka-compatible broker lifecycle
src/…/ArtemisConfigGenerator.javaEvent routing, partition topology, retention, and broker configuration
src/…/ArtemisTlsGenerator.javaTLS names and certificate material for broker clients
src/…/EventHubManagementResponder.javaClient partition discovery and AMQP management response boundary
src/…/AciArmSurface.javaACI ARM resource scope and name contract for container groups
src/…/AciHandler.javaContainer group resource, action, reconciliation, and readiness lifecycle
src/…/AciContainerGroupManager.javaReal container-group networking, ports, volumes, readiness, and cleanup
src/…/AciModels.javaContainer-group resource and runtime identity model
src/…/ContainerAppsArmSurface.javaContainer Apps and managed-environment resource and child-resource scope
src/…/ContainerAppsHandler.javaManaged environments, apps, revisions, traffic, and ingress control plane
src/…/ContainerAppRuntimeManager.javaRevision replicas, shared networking, readiness, ingress selection, and cleanup
docs/azure-container-instances.mdDetailed ACI resource, runtime, and ingress contract
docs/azure-container-apps.mdDetailed Container Apps resource, runtime, and ingress contract
docs/storage-backends.mdPersistence choices for service resource records
docs/compatibility-tests.mdClient-facing compatibility coverage across Azure-shaped services