Knowledge Base updated: 2026-11-22
floci-az knowledge base
floci-az is a Java emulator for Azure control-plane and selected data-plane services. Its HTTP front door routes ARM and service-specific traffic to in-memory or persistent resource models, with optional Docker-backed sidecars for services that need real runtime engines.
Core request governance, cloud/directory state, ARM resources, and management-group hierarchy establish the shared tenancy and scope model. Service modules implement Azure-compatible handlers, models, and lifecycle behavior.
Runtime state is held by pluggable storage backends and service managers; broker, database, and container workloads are coordinated through Docker-facing infrastructure. Maven, Compose, and the azfloci workflow package and run the emulator.
flowchart TD
Client[Azure SDKs / CLI / IaC] --> FrontDoor[HTTP routing and authentication]
FrontDoor --> ARM[ARM governance and deployments]
FrontDoor --> Services[Azure service handlers]
ARM --> Directory[Cloud, tenant, subscription, and scope state]
ARM --> MG[Management groups]
Services --> Storage[Storage backends]
Services --> SB[Service Bus]
Services --> Platform[Platform services]
Services --> Compute[Compute and container services]
Services --> Data[Database services]
Services --> Identity[Identity and security]
SB --> Artemis[Artemis sidecar and plugins]
Compute --> Docker[Docker-managed runtimes]
Data --> Docker
Storage --> Runtime[Configuration and lifecycle infrastructure]
flowchart LR
Request[ARM request] --> Parse[Parse resource ID and scope]
Parse --> Validate[Validate tenant, subscription, and resource group]
Validate --> Dispatch[Dispatch ARM surface]
Dispatch --> Persist[Update resource indexes and state]
Persist --> Response[Azure-shaped response]
Glossary
- ARM surface: A handler layer implementing Azure Resource Manager paths, resource types, and lifecycle operations.
- Directory state: Seeded local tenant, subscription, resource-group, and identity data used to validate request scope.
- Artemis sidecar: The local ActiveMQ Artemis process used to provide Service Bus AMQP behavior.
- Resource index: Shared ARM tracking of resource IDs and scope-addressable resources.
- azfloci: The repository's command-line workflow for running and interacting with the emulator.
Invariants
- ARM resource operations must preserve tenant, subscription, and resource-group scope validation; see
src/main/java/io/floci/az/core/arm/**. - Azure resource identity is represented by canonical ARM resource IDs and shared indexes; see
src/main/java/io/floci/az/core/arm/**. - Service Bus topology is coordinated with the Artemis runtime rather than modeled solely as HTTP state; see
src/main/java/io/floci/az/services/servicebus/**. - Docker-backed service runtimes are lifecycle-managed separately from their control-plane resource models; see
src/main/java/io/floci/az/services/**and Docker/Compose configuration. - Compatibility suites exercise the emulator through public client surfaces rather than only internal handlers; see
compatibility-tests/**.
Routing table
src/main/java/io/floci/az/core/{AzHttpHandler,Router,RequestContext,Authentication}/**-> Core routing and authenticationsrc/main/java/io/floci/az/core/arm/**-> ARM resource governancesrc/main/java/io/floci/az/core/{cloud,directory}/**-> Cloud and directory configurationsrc/main/java/io/floci/az/services/managementgroups/**-> Management groupssrc/main/java/io/floci/az/services/deployments/**-> ARM deploymentssrc/main/java/io/floci/az/console/**-> Emulator consolesrc/main/java/io/floci/az/{storage,persistence}/**-> Storage backends and runtime infrastructuresrc/main/java/io/floci/az/services/servicebus/**-> Azure Service Bus emulationservicebus-artemis/**-> Service Bus Artemis integrationsrc/main/java/io/floci/az/services/{blob,queue,table,datalake}/**-> Azure Storage servicessrc/main/java/io/floci/az/services/{cosmos,sql,mysql,mariadb,postgres,redis}/**-> Azure database servicessrc/main/java/io/floci/az/services/{keyvault,entra,identity}/**-> Azure identity and security servicessrc/main/java/io/floci/az/services/graph/**-> Microsoft Graph integrationsrc/main/java/io/floci/az/services/{acr,aks,appservice,functions,vm,eventhubs,aci,containerapps}/**-> Azure compute and container servicessrc/main/java/io/floci/az/services/aci/**-> Azure Container Instancessrc/main/java/io/floci/az/services/containerapps/**-> Azure Container Appssrc/main/java/io/floci/az/services/{apim,appconfiguration,search,eventgrid,email,iothub,network,monitor,signalr,policy,policyinsights,resourcegraph,authorization}/**-> Azure platform servicessrc/main/java/io/floci/az/services/signalr/**-> Azure SignalR Servicesrc/main/java/io/floci/az/services/policy/**-> Azure Policy servicesrc/main/java/io/floci/az/services/policyinsights/**-> Azure Policy Insightssrc/main/java/io/floci/az/services/resourcegraph/**-> Azure Resource Graphsrc/main/java/io/floci/az/services/authorization/**-> Azure authorization and RBACsrc/main/java/io/floci/az/services/search/**-> Azure AI Searchsrc/main/java/io/floci/az/services/iothub/**-> Azure IoT Hubcompatibility-tests/**-> Compatibility test suite{pom.xml,Dockerfile,docker-compose*.yml,src/main/resources/**,azfloci/**}-> Build, packaging, and configuration