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

overview

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