Light, fluffy, and always free - Local Azure Emulator
Light, fluffy, and always free - Local Azure Emulator
Any Cloud. Locally.
Light, fluffy, and always free
No account. No auth token. No feature gates. Just docker compose up.
What is Floci AZ? · Quick Start · Features · Why Floci AZ? · Services · SDKs · Compatibility · Configuration · Docs
Floci AZ is a free, open-source local Azure emulator for development, testing, and CI.
It gives you Azure-compatible services on your machine without requiring a cloud account, an auth token, or paid feature gates. Point your Azure SDK, CLI, or Terraform at http://localhost:4577 and keep your existing workflows.
Floci AZ is the Azure member of the Floci emulator family.
| Emulator | Cloud | Port |
|---|---|---|
| floci | AWS | 4566 |
| floci-az | Azure | 4577 |
| floci-gcp | GCP | 4588 |
| floci-oci | OCI | 4599 |
# docker-compose.yml
services:
floci-az:
image: floci/floci-az:latest
ports:
- "4577:4577"
volumes:
- /var/run/docker.sock:/var/run/docker.sock # required for Azure Functionsdocker compose upOr run directly:
docker run -d --name floci-az \
-p 4577:4577 \
-v /var/run/docker.sock:/var/run/docker.sock \
floci/floci-az:latestAll services are available at http://localhost:4577. Use any account name and key: in dev auth mode credentials are not validated.
Azure Functions requires access to the Docker socket so Floci AZ can spawn runtime containers on demand. Mount
/var/run/docker.sockas shown above. If you don't use Functions, the socket mount is optional.
TLS (for the Cosmos DB Java SDK)
The Azure Cosmos DB Java SDK enforces TLS in gateway mode. Enable the built-in TLS proxy to serve HTTP and HTTPS on the same port:
# docker-compose.yml
services:
floci-az:
image: floci/floci-az:latest
ports:
- "4577:4577"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data # persist generated cert across restarts
environment:
FLOCI_AZ_TLS_ENABLED: "true"
FLOCI_AZ_HOSTNAME: floci-az # add Docker service name to cert SANsThe self-signed certificate is generated at startup and cached under data/tls/. Fetch it at runtime from GET http://localhost:4577/_floci/tls-cert to install it into your truststore: no static cert to bundle or import manually.
Terraform / OpenTofu (azurerm) also requires TLS. The provider discovers the cloud over HTTPS (
GET https:///metadata/endpoints), so it fails against plain HTTP. See the Terraform / OpenTofu guide.
Local Azure without the cloud account
Run Azure-compatible services locally without an Azure account, auth token, or paid feature gates.
Real Docker where fidelity matters
Azure Functions, Event Hubs, and Cosmos DB engine APIs (MongoDB, PostgreSQL, Cassandra, Gremlin) use real Docker-backed execution instead of shallow mocks.
Drop-in Azure SDK compatibility
Point standard Azure SDK clients at http://localhost:4577. Existing connection strings, credentials, and SDK workflows stay unchanged.
Fast enough for CI
The native image starts in milliseconds and keeps idle memory low, making it practical for local development and test pipelines.
Configurable persistence
Choose from in-memory, persistent, hybrid, and write-ahead log storage depending on the durability profile you need.
Floci AZ gives you more services than the official local tools, consolidated on a single port, with a native image that starts in milliseconds.
| Feature | Floci AZ | Azurite | Functions Core Tools |
|---|---|---|---|
| Blob Storage | ✅ | ✅ | ❌ |
| Queue Storage | ✅ | ✅ | ❌ |
| Table Storage | ✅ | ✅ | ❌ |
| Azure Functions | ✅ | ❌ | ✅ |
| App Configuration | ✅ | ❌ | ❌ |
| Cosmos DB (SQL API) | ✅ | ❌ | ❌ |
| Key Vault | ✅ | ❌ | ❌ |
| Event Hubs | ✅ | ❌ | ❌ |
| Service Bus | ✅ | ❌ | ❌ |
| Azure SQL Database | ✅ | ❌ | ❌ |
| Azure DB for PostgreSQL | ✅ | ❌ | ❌ |
| AKS (Kubernetes) | ✅ | ❌ | ❌ |
| Container Apps | ✅ | ❌ | ❌ |
| API Management | ✅ | ❌ | ❌ |
| Virtual Machines | ✅ | ❌ | ❌ |
| Azure Cache for Redis | ✅ | ❌ | ❌ |
| Container Registry | ✅ | ❌ | ❌ |
| Container Instances | ✅ | ❌ | ❌ |
| Event Grid | ✅ | ❌ | ❌ |
| Azure Monitor / Logs | ✅ | ❌ | ❌ |
| Communication Email | ✅ | ❌ | ❌ |
| Managed Identity | ✅ | ❌ | ❌ |
| Microsoft Entra ID | ✅ | ❌ | ❌ |
| Microsoft Graph | ✅ | ❌ | ❌ |
| Native binary | ✅ | ❌ | ✅ |
| Unified port | ✅ (4577) | ❌ | ❌ |
| Storage modes | ✅ (persistent/WAL/Hybrid) | ❌ | ❌ |
| Startup time | ** | ||
| Azure Cosmos DB Emulator vs Floci AZ |
The Azure Cosmos DB Emulator is Microsoft's official local emulator for Cosmos DB. It ships as a Windows installer or a Windows-container Docker image, exposes a built-in Data Explorer UI, and supports multiple Cosmos DB APIs (SQL, MongoDB, Cassandra, Gremlin, Table). It is a faithful replica of the cloud service, but it carries the full weight of that fidelity.
| Feature | Azure Cosmos DB Emulator | Floci AZ |
|---|---|---|
| Platform | Windows-first (Windows containers historically required) | Linux-native containers: runs on Mac, Linux, and Windows |
| Docker image size | Heavy (~GBs depending on version/base image) | Lightweight modular engines (~50 MB to a few hundred MB depending on selected APIs) |
| Startup time | Slow startup (tens of seconds) | On-demand startup: only starts the required Cosmos API engine |
| RAM required | High memory usage (commonly ≥ 2 GB) | Minimal footprint: only active engines consume resources |
| Cosmos DB APIs | SQL (NoSQL), MongoDB, Cassandra, Gremlin, Table | SQL (NoSQL), MongoDB, PostgreSQL, Cassandra, Gremlin, Table |
| Cosmos API implementation | Microsoft proprietary emulator | API-specific compatibility engines |
| NoSQL / SQL API provider | Native Cosmos Emulator | Embedded in-process engine: full SQL dialect, no Docker, instant startup |
| MongoDB API provider | Native Cosmos Emulator | MongoDB Community Server: identical wire protocol (BSON + OP_MSG) |
| PostgreSQL API provider | Native Cosmos Emulator | Citus (the exact engine Azure runs): standard JDBC driver, zero code changes |
| Cassandra API provider | Native Cosmos Emulator | ScyllaDB: CQL-compatible, same DataStax driver |
| Gremlin API provider | Native Cosmos Emulator | Apache TinkerPop: standard traversals work; Cosmos extensions not emulated |
| Table API provider | Native Cosmos Emulator | In-memor |
No open issues yet, or sync has not completed.