azure-to-docker-master
Migrate Azure infrastructure to a local Docker Compose stack with 2025 Azure emulators and generated Dockerfiles.
- CCM score
- 44 of 100
- version
- 1.1.9
- GitHub stars
- 67
Own this plugin? Claim it
What it does
- Adds the
/extract-infrastructureand/export-databasecommands and theazure-to-docker-expertagent for Azure-to-Docker work - Covers service mapping from App Service, Azure SQL, Redis, Storage, Cosmos DB, and Service Bus to Docker images
- Enforces health checks, non-root users, read-only filesystems, and runtime-only secrets mounted in
/run/secrets - Designed for teams mirroring Azure infrastructure locally, with Compose Watch hot reload for development
Complete Azure-to-Docker migration for local development with 2025 emulators. PROACTIVELY activate for: (1) any Azure-to-Docker migration, (2) Azure infra extraction and Compose generation, (3) emulator setup (Azurite, SQL Server 2025, Cosmos DB vnext, Service Bus), (4) Compose Watch hot reload, (5) database export from Azure SQL/Postgres/MySQL, (6) Dockerfile generation from App Service, (7) multi-container orchestration, (8) health checks and runtime secrets, (9) service mapping (App Service/SQL/Storage/Redis/Cosmos), (10) dev-to-prod parity.
Add marketplace
/plugin marketplace add JosiahSiegel/claude-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install azure-to-docker-master@claude-plugin-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAzure Service Emulators for Local Development (2025)
Overview
This skill provides comprehensive knowledge of Azure service emulators available as Docker containers for local development in 2025.
Available Azure Emulators
1. Azurite (Azure Storage Emulator)
Official replacement for Azure Storage Emulator (deprecated)
Image: mcr.microsoft.com/azure-storage/azurite:latest
Supported Services:
- Blob Storage
- Queue Storage
- Table Storage
Configuration:
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
container_name: azurite
command: azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --loose
ports:
- "10000:10000" # Blob service
- "10001:10001" # Queue service
- "10002:10002" # Table service
volumes:
- azurite-data:/data
restart: unless-stopped
Standard Development Connection String:
DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;
Features:
- Cross-platform (Windows, Linux, macOS)
- Written in Node.js/JavaScript
- Supports latest Azure Storage APIs
- Persistence to disk
- Compatible with Azure Storage Explorer
--looseflag for relaxed validation (useful for local development)
2025 API Version Support:
- Latest release (v3.35.0) targets 2025-11-05 API version
- Blob service: 2025-11-05
- Queue service: 2025-11-05
- Table service: 2025-11-05 (preview)
- RA-GRS support for geo-redundant replication testing
CLI Usage:
# Install via npm (alternative to Docker)
npm install -g azurite
# Run with custom location
azurite --location /path/to/data --debug /path/to/debug.log
Application Integration:
// Node.js with @azure/storage-blob
const { BlobServiceClient } = require('@azure/storage-blob');
const connectionString = process.env.AZURITE_CONNECTION_STRING;
const blobServiceClient = BlobServiceClient.fromConnectionString(connectionString);
// .NET with Azure.Storage.Blobs
using Azure.Storage.Blobs;
var connectionString = Environment.GetEnvironmentVariable("AZURITE_CONNECTION_STRING");
var blobServiceClient = new BlobServiceClient(connectionString);
2. Azure SQL Server 2025
Latest SQL Server with AI features
Image: mcr.microsoft.com/mssql/server:2025-latest
2025 Features:
- Built-in Vector Search for AI similarity queries
- Semantic Queries alongside traditional full-text search
- Optimized Locking (TID Locking, LAQ)
- Native JSON and RegEx support
- Fabric Mirroring integration
- REST API support
Configuration:
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2025-latest
container_name: sqlserver
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
- MSSQL_SA_PASSWORD_FILE=/run/secrets/sa_password
secrets:
- sa_password
ports:
- "1433:1433"
volumes:
- sqlserver-data:/var/opt/mssql
- ./init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $$MSSQL_SA_PASSWORD -Q 'SELECT 1' -C || exit 1"]
interval: 10s
timeout: 3s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '2'
memory: 4G
reservations:
cpus: '1'
memory: 2G
networks:
- backend
security_opt:
- no-new-privileges:true
restart: unless-stopped
secrets:
sa_password:
file: ./secrets/sa_password.txt
volumes:
sqlserver-data:
driver: local
Connection String:
Server=sqlserver;Database=MyApp;User Id=sa;Password=YourStrong!Passw0rd;TrustServerCertificate=True;
Important Notes:
- Azure SQL Edge retired September 30, 2025 - Use SQL Server 2025 instead
- Use
mssql-tools18for TLS 1.3 support (-Cflag trusts certificate) - Developer edition is free for non-production use
- Supports arm64 via Rosetta 2 on macOS
Vector Search Example (2025 Feature):
-- Create vector index for AI similarity search
CREATE TABLE Documents (
Id INT PRIMARY KEY,
Content NVARCHAR(MAX),
ContentVector VECTOR(1536)
);
-- Perform similarity search
SELECT TOP 10 Id, Content
FROM Documents
ORDER BY VECTOR_DISTANCE(ContentVector, @queryVector);
2025 vnext-preview Features:
- Entirely Linux-based emulator (cross-platform: x64, ARM64, Apple Silicon)
- No virtual machines required on Apple Silicon or Microsoft ARM
- Changefeed support (April 2025+)
- Document TTL (Time-to-Live) support
- OpenTelemetry V2 support
- API for NoSQL in gateway mode
- Currently in preview (active development)
Image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
3. Cosmos DB Emulator
NoSQL database emulator
Image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
Configuration:
services:
cosmosdb:
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
container_name: cosmosdb
environment:
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true
- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
ports:
- "8081:8081" # Data Explorer
- "10251:10251"
- "10252:10252"
- "10253:10253"
- "10254:10254"
volumes:
- cosmos-data:/data/db
deploy:
resources:
limits:
cpus: '2'
memory: 4G
networks:
- backend
restart: unless-stopped
Emulator Endpoint:
https://localhost:8081
Emulator Key (Standard):
C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
Data Explorer:
Access at https://localhost:8081/_explorer/index.html
Application Integration:
// Node.js with @azure/cosmos
const { CosmosClient } = require('@azure/cosmos');
const endpoint = 'https://localhost:8081';
const key = process.env.COSMOS_EMULATOR_KEY;
const client = new CosmosClient({ endpoint, key });
// .NET with Microsoft.Azure.Cosmos
using Microsoft.Azure.Cosmos;
var endpoint = "https://localhost:8081";
var key = Environment.GetEnvironmentVariable("COSMOS_EMULATOR_KEY");
var client = new CosmosClient(endpoint, key);
Limitations:
- Performance not representative of production
- Limited to single partition for local development
- Certificate trust required (self-signed)
2025 Official Azure Service Bus Emulator:
- Released as official Docker container
- Linux-based emulator with cross-platform support
- Requires SQL Server Linux as dependency
- Supports AMQP protocol (port 5672)
- Connection string format with UseDevelopmentEmulator=true
- Current limitations: No JMS protocol, no partitioned entities, no AMQP Web Sockets
Official Emulator Image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
Connection String:
Endpoint=sb://host.docker.internal;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;
4. Azure Service Bus Emulator
Message queue emulator
Note: Official emulator has limited Docker support. Use RabbitMQ as alternative.
Official Emulator (Preview):
services:
servicebus-sql:
image: mcr.microsoft.com/mssql/server:2025-latest
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=ServiceBus123!
volumes:
- servicebus-sql-data:/var/opt/mssql
servicebus:
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
depends_on:
- servicebus-sql
environment:
- ACCEPT_EULA=Y
- SQL_SERVER=servicebus-sql
- SQL_SA_PASSWORD=ServiceBus123!
ports:
- "5672:5672" # AMQP
networks:
- backend
RabbitMQ Alternative (Recommended):
services:
rabbitmq:
image: rabbitmq:3.14-alpine
container_name: rabbitmq
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management UI
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin123
volumes:
- rabbitmq-data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- backend
restart: unless-stopped
5. PostgreSQL (Azure Database for PostgreSQL)
Image: postgres:16.6-alpine
Configuration:
services:
postgres:
image: postgres:16.6-alpine
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_DB=myapp
secrets:
- postgres_password
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 3s
retries: 3
deploy:
resources:
limits:
cpus: '1'
memory: 2G
networks:
- backend
security_opt:
- no-new-privileges:true
restart: unless-stopped
Extensions: Match Azure PostgreSQL Flexible Server extensions:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
6. MySQL (Azure Database for MySQL)
Image: mysql:9.2
Configuration:
services:
mysql:
image: mysql:9.2
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql_root_password
- MYSQL_DATABASE=myapp
- MYSQL_USER=appuser
- MYSQL_PASSWORD_FILE=/run/secrets/mysql_password
secrets:
- mysql_root_password
- mysql_password
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"]
interval: 10s
timeout: 3s
retries: 3
deploy:
resources:
limits:
cpus: '1'
memory: 2G
networks:
- backend
security_opt:
- no-new-privileges:true
restart: unless-stopped
7. Redis (Azure Cache for Redis)
Image: redis:7.4-alpine
Configuration:
services:
redis:
image: redis:7.4-alpine
container_name: redis
command: >
redis-server
--appendonly yes
--requirepass ${REDIS_PASSWORD}
--maxmemory 512mb
--maxmemory-policy allkeys-lru
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 3s
retries: 3
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
networks:
- backend
security_opt:
- no-new-privileges:true
restart: unless-stopped
8. Application Insights Alternative (Jaeger + Grafana)
OpenTelemetry-compatible observability stack
services:
jaeger:
image: jaegertracing/all-in-one:latest
container_name: jaeger
ports:
- "16686:16686" # UI
- "14268:14268" # HTTP collector
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
networks:
- monitoring
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana-data:/var/lib/grafana
networks:
- monitoring
restart: unless-stopped
Complete Azure Stack Example
services:
# Application Services
frontend:
build: ./frontend
ports: ["3000:3000"]
networks: [frontend]
depends_on:
backend:
condition: service_healthy
backend:
build: ./backend
ports: ["8080:8080"]
networks: [frontend, backend]
depends_on:
sqlserver:
condition: service_healthy
redis:
condition: service_started
azurite:
condition: service_started
# Databases
sqlserver:
image: mcr.microsoft.com/mssql/server:2025-latest
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
ports: ["1433:1433"]
volumes: [sqlserver-data:/var/opt/mssql]
networks: [backend]
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $$MSSQL_SA_PASSWORD -Q 'SELECT 1' -C"]
interval: 10s
postgres:
image: postgres:16.6-alpine
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports: ["5432:5432"]
volumes: [postgres-data:/var/lib/postgresql/data]
networks: [backend]
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
# Cache
redis:
image: redis:7.4-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
ports: ["6379:6379"]
volumes: [redis-data:/data]
networks: [backend]
# Storage
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
command: azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --loose
ports: ["10000:10000", "10001:10001", "10002:10002"]
volumes: [azurite-data:/data]
networks: [backend]
# NoSQL
cosmosdb:
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
ports: ["8081:8081"]
volumes: [cosmos-data:/data/db]
networks: [backend]
# Monitoring
jaeger:
image: jaegertracing/all-in-one:latest
ports: ["16686:16686", "4317:4317"]
networks: [monitoring]
networks:
frontend:
driver: bridge
backend:
driver: bridge
internal: true
monitoring:
driver: bridge
volumes:
sqlserver-data:
postgres-data:
redis-data:
azurite-data:
cosmos-data:
Best Practices
- Use health checks - Ensure dependencies are ready before app starts
- Network isolation - Keep databases on internal backend network
- Resource limits - Prevent emulators from consuming all system resources
- Persistence - Use named volumes for data that should survive restarts
- Secrets management - Use Docker secrets or environment files
- Version pinning - Use specific tags, not
latest - Security hardening - Drop capabilities, run as non-root where possible
- Documentation - Document differences between emulators and Azure services
Known Limitations
- Performance: Emulators are slower than Azure services
- Scale: Single-instance only, no clustering
- Features: Some Azure-specific features unavailable locally
- SSL/TLS: Self-signed certificates require trust configuration
- Azure AD: Authentication not replicated locally
- Networking: VNets, Private Endpoints not available
Migration Checklist
When moving from Azure to Docker emulators:
- Replace Azure Storage connection strings with Azurite
- Update SQL Server connection strings (remove Azure-specific options)
- Configure Cosmos DB with emulator endpoint and key
- Replace Service Bus with RabbitMQ or emulator
- Set up alternative for Application Insights
- Update authentication (remove Azure AD dependencies)
- Configure network isolation
- Test all integrations
- Document feature parity gaps
- Create init scripts for sample data
References
Readme
Azure-to-Docker Master Plugin
Complete Azure-to-Docker migration system for creating production-ready local development environments with 2025 best practices.
Overview
The azure-to-docker-master plugin provides autonomous expertise for migrating Azure infrastructure to local Docker-based development environments. It extracts Azure resource configurations, generates optimized Docker Compose stacks with Azure service emulators, creates production-ready Dockerfiles, and exports databases—all following 2025 industry standards.
Why Use This Plugin?
- Autonomous Azure Migration: Automatically extract Azure infrastructure and convert to Docker
- 2025 Azure Emulators: Latest emulators (Azurite, SQL Server 2025, Cosmos DB, Service Bus)
- Production-Ready Compose: Generate secure, optimized docker-compose.yml with health checks
- Complete Database Export: Export and import Azure SQL/PostgreSQL/MySQL to Docker
- Modern Best Practices: No version field (Compose v2.42+), security hardening, resource limits
- Development-Production Parity: Mirror Azure infrastructure locally for efficient development
Key Features
Azure Service Mapping
Maps all Azure services to their Docker equivalents:
| Azure Service | Docker Image | Purpose |
|---|---|---|
| App Service | Custom build | Application containers |
| Azure SQL Database | mcr.microsoft.com/mssql/server:2025-latest | SQL Server with AI features |
| PostgreSQL | postgres:16.6-alpine | PostgreSQL database |
| MySQL | mysql:9.2 | MySQL database |
| Redis Cache | redis:7.4-alpine | Redis cache |
| Storage Account | mcr.microsoft.com/azure-storage/azurite | Blob/Queue/Table storage |
| Cosmos DB | mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview | NoSQL database |
| Service Bus | mcr.microsoft.com/azure-messaging/servicebus-emulator or rabbitmq:3.14-alpine | Message queue |
| App Insights | jaegertracing/all-in-one | Observability |
2025 Features
Azure Emulators:
- Azurite: Azure Storage emulator (v3.35.0, API 2025-11-05)
- SQL Server 2025: Latest with Vector Search and AI features
- Cosmos DB Emulator: vnext-preview (Linux-based, ARM64 support)
- Service Bus Emulator: Official Docker container (mcr.microsoft.com/azure-messaging/servicebus-emulator)
Docker Compose v2.42+:
- No
versionfield (obsolete in 2025) - Health check conditions for dependencies
- Multi-environment configuration (dev/prod)
- YAML anchors for reusable config
- Docker Compose Watch mode (GA) for hot reload
Security Hardening:
- Non-root users in all containers
- Read-only filesystems with tmpfs
- Capability drops (ALL) and selective adds
no-new-privilegessecurity option- Runtime-only secrets (mounted in /run/secrets, never persisted)
- Secrets management (Docker secrets)
Production Patterns:
- Resource limits (CPU, memory)
- Comprehensive health checks
- Network isolation (frontend/backend)
- Logging configuration
- Restart policies
Installation
From Claude Code Marketplace
# Add to your project
claude-code plugin add azure-to-docker-master
From GitHub
git clone https://github.com/JosiahSiegel/claude-plugin-marketplace.git
cd claude-plugin-marketplace/plugins/azure-to-docker-master
Commands
/extract-infrastructure
Extract Azure infrastructure and generate Docker Compose stack.
What it does:
- Authenticates with Azure CLI
- Extracts resource configurations (App Services, databases, caches, storage)
- Analyzes service dependencies
- Maps Azure services to Docker equivalents
- Generates production-ready docker-compose.yml
- Creates .env.template with all required variables
- Generates Makefile for common operations
- Produces comprehensive README
Usage:
/azure-to-docker-master:extract-infrastructure
Example output:
azure-project/
├── docker-compose.yml # Main compose file
├── docker-compose.override.yml # Development overrides
├── .env.template # Environment variables
├── Makefile # Common operations
├── README.md # Setup documentation
├── init/ # Database init scripts
│ ├── 01-create-db.sql
│ └── 02-seed-data.sql
└── secrets/ # Secrets (gitignored)
├── sa_password.txt
└── postgres_password.txt
/generate-dockerfile
Generate production-ready Dockerfiles from Azure App Service configurations.
What it does:
- Analyzes App Service runtime stack
- Selects appropriate base image
- Generates multi-stage Dockerfile
- Applies security hardening
- Implements health checks
- Optimizes layer caching
- Creates .dockerignore
Supports:
- .NET (Core, Framework)
- Node.js
- Python
- Java (Spring Boot)
- PHP
- Static sites (Next.js, Angular)
Usage:
/azure-to-docker-master:generate-dockerfile
/export-database
Export Azure databases and import into local Docker containers.
What it does:
- Configures Azure firewall rules
- Exports database (BACPAC, SQL script, pg_dump, mysqldump)
- Transfers to local environment
- Imports into Docker container
- Verifies data integrity
- Cleans up firewall rules
Supports:
- Azure SQL Database
- Azure Database for PostgreSQL
- Azure Database for MySQL
Usage:
/azure-to-docker-master:export-database
Skills
azure-emulators-2025
Comprehensive knowledge of Azure service emulators:
- Azurite (Storage)
- SQL Server 2025
- Cosmos DB Emulator
- Service Bus Emulator
- PostgreSQL
- MySQL
- Redis
Includes configuration examples, connection strings, limitations, and migration checklists.
compose-patterns-2025
Production Docker Compose patterns:
- Multi-environment strategy
- Security hardening
- Health checks
- Dependency management
- Network isolation
- Resource limits
- YAML anchors
- Validation and testing
Agent
azure-docker-expert
Specialized agent for generating Docker Compose files from Azure configurations. Provides:
- Azure service mapping expertise
- 2025 emulator configuration
- Production-ready patterns
- Security best practices
- Network architecture
- Volume management
- Health check strategies
Quick Start
1. Extract Azure Infrastructure
# Authenticate with Azure
az login
# Extract infrastructure
/azure-to-docker-master:extract-infrastructure
# Follow prompts to select resource group
2. Review Generated Files
# Validate Compose syntax
docker compose config
# Check services
docker compose config --services
# Review environment template
cat .env.template
3. Configure Environment
# Copy template and set passwords
cp .env.template .env
nano .env # Set all passwords
4. Start Services
# Using Makefile
make up
# Or directly
docker compose up -d
# Check status
make health
# Or
docker compose ps
5. Export Databases (Optional)
/azure-to-docker-master:export-database
# Follow prompts for database selection
6. Generate Dockerfiles for Apps
/azure-to-docker-master:generate-dockerfile
# For each App Service in Azure
Example Scenarios
Scenario 1: Simple Web App + Database
Azure Resources:
- 1 App Service (Node.js)
- 1 Azure SQL Database
Generated Stack:
services:
webapp:
build: ./webapp
ports: ["8080:8080"]
depends_on:
sqlserver:
condition: service_healthy
sqlserver:
image: mcr.microsoft.com/mssql/server:2025-latest
healthcheck: ...
Scenario 2: Three-Tier Application
Azure Resources:
- Frontend App Service (React)
- Backend App Service (.NET)
- Azure SQL Database
- Redis Cache
- Storage Account
Generated Stack:
services:
frontend:
build: ./frontend
networks: [frontend]
backend:
build: ./backend
networks: [frontend, backend]
sqlserver:
image: mcr.microsoft.com/mssql/server:2025-latest
networks: [backend]
redis:
image: redis:7.4-alpine
networks: [backend]
azurite:
image: mcr.microsoft.com/azure-storage/azurite
networks: [backend]
Scenario 3: Microservices Architecture
Azure Resources:
- 5 App Services (microservices)
- Azure SQL + Cosmos DB
- Redis Cache
- Service Bus
- Application Insights
Generated Stack:
- Nginx gateway
- 5 microservice containers
- SQL Server 2025 + Cosmos DB Emulator
- Redis
- RabbitMQ (Service Bus alternative)
- Jaeger + Grafana (monitoring)
- Complete network isolation
- Health checks for all services
Configuration Examples
Environment Variables
# .env file
# SQL Server
MSSQL_SA_PASSWORD=YourStrong!Passw0rd
# PostgreSQL
POSTGRES_PASSWORD=postgres123
# Redis
REDIS_PASSWORD=redis123
# Azurite (standard development connection string)
AZURITE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;
# Application
ASPNETCORE_ENVIRONMENT=Development
NODE_ENV=development
Connection Strings
SQL Server:
Server=sqlserver;Database=MyApp;User Id=sa;Password=${MSSQL_SA_PASSWORD};TrustServerCertificate=True;
PostgreSQL:
postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/myapp
Redis:
redis://:${REDIS_PASSWORD}@redis:6379
Azurite (Blob Storage):
DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;
Cosmos DB:
AccountEndpoint=https://cosmosdb:8081;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==;
Best Practices
Security
- Never commit .env files - Use .env.template
- Use Docker secrets for production
- Run as non-root users in all containers
- Apply capability drops (drop ALL, add selectively)
- Use read-only filesystems with tmpfs for writes
- Network isolation (frontend/backend separation)
Performance
- Set resource limits (CPU, memory)
- Use health checks for all services
- Implement dependency ordering with conditions
- Cache Docker layers appropriately
- Use alpine images where possible
Development Experience
- Use docker-compose.override.yml for dev settings
- Mount source code with hot reload
- Expose debugger ports (localhost only)
- Use Makefile for common operations
- Document connection strings in README
Maintainability
- Version pin all images (not
latest) - Comment complex configurations
- Use YAML anchors for repeated config
- Organize networks logically
- Keep compose files modular
Troubleshooting
Services Fail to Start
# Check logs
docker compose logs <service-name>
# Verify resource allocation
docker stats
# Check port conflicts
netstat -an | grep <port>
Database Connection Issues
# Verify health check
docker compose ps
# Test connection
docker compose exec <service> <db-client> -h localhost
# Check network
docker network inspect <network-name>
Import Failures
# Check disk space
df -h
# Verify file permissions
ls -la <import-file>
# Test connectivity to Azure
az account show
Limitations
Azure Emulators vs. Production:
- Performance characteristics differ
- Some Azure-specific features unavailable
- Single-instance only (no clustering)
- Self-signed certificates require trust
- Azure AD authentication not replicated
Database Emulators:
- SQL Server 2025: Developer edition only
- Cosmos DB: Limited partition support
- Service Bus: Official emulator in preview
Known Issues:
- Azure SQL Edge retired (use SQL Server 2025)
- Cosmos DB requires SSL/TLS trust
- Large database exports may timeout
Requirements
Host System:
- Docker Desktop 4.40+ with Compose v2.42+
- Minimum 8GB RAM (16GB recommended for full stack)
- Minimum 50GB disk space
- Azure CLI installed and configured
Azure Permissions:
- Read access to resource groups
- Database access credentials
- Network rule management (for database export)
Migration Checklist
- Extract Azure infrastructure
- Review generated docker-compose.yml
- Configure .env file with passwords
- Test service startup:
docker compose up - Verify health checks pass
- Export databases from Azure
- Import databases to Docker
- Generate Dockerfiles for apps
- Build and test application containers
- Update application connection strings
- Test full application locally
- Document any Azure-specific feature gaps
- Set up regular data refresh process
Contributing
Contributions are welcome! Please ensure:
- All examples use 2025 best practices
- No
versionfield in Compose files - Security hardening applied
- Comprehensive health checks included
- Documentation updated
Support
For issues, questions, or feature requests:
- GitHub Issues: claude-plugin-marketplace
- Documentation: Plugin README
License
MIT License - see LICENSE file for details
Author
Josiah Siegel (JosiahSiegel@users.noreply.github.com)
Version
1.0.0 (2025)
Keywords
azure, docker, migration, compose, emulator, azurite, local-dev, infrastructure, extraction, containerize, sql-server, cosmos, storage, devops, development-environment
References
Details
- Marketplace
- JosiahSiegel/claude-plugin-marketplace
- Source
- plugins/azure-to-docker-master
- Author
- Josiah Siegel
- Category
- Community
- Keywords
- azure, docker, migration, compose, emulator, azurite, local-dev, infrastructure, extraction, containerize, sql-server, cosmos, storage, watch-mode, hot-reload, service-bus
- Listed since
- Apr 7, 2026
Questions
What does the azure-to-docker-master plugin do for Claude Code?
The azure-to-docker-master plugin extracts Azure infrastructure and generates a Docker Compose stack with Azure service emulators such as Azurite and SQL Server 2025. It also has the /generate-dockerfile command for App Service applications and the /export-database command for moving Azure SQL, PostgreSQL or MySQL data into local containers.
How do I install the azure-to-docker-master plugin?
Run /plugin marketplace add JosiahSiegel/claude-plugin-marketplace inside Claude Code first, then run /plugin install azure-to-docker-master@claude-plugin-marketplace. After that, the azure-to-docker-master commands and skills are available in your session.
Which Azure services does azure-to-docker-master map to Docker containers?
The azure-to-docker-master plugin maps App Service to custom builds, Azure SQL to the SQL Server 2025 image, Storage Account to Azurite, and Cosmos DB to its vnext-preview emulator. It also maps Service Bus, Redis, PostgreSQL, MySQL and App Insights to matching Docker images.
Who should use the azure-to-docker-master plugin?
Developers who want to mirror Azure infrastructure on their own machine for local development should use the azure-to-docker-master plugin. It targets dev-to-prod parity, Compose Watch hot reload, and health checks with runtime secrets.
More from JosiahSiegel/claude-plugin-marketplace
All 43- bash-masterv2.0.7
- clerk-auth-masterv1.0.2
- cloudflare-masterv1.1.5
- context-masterv2.2.5
- doc-masterv1.6.1
- docker-masterv1.5.8
- dotnet-microservices-masterv1.0.9
- fal-ai-masterv2.0.5
- ffmpeg-corev1.0.1
- ffmpeg-effectsv1.0.1
- ffmpeg-masterv4.0.0
- ffmpeg-platformsv1.0.0
- ffmpeg-pythonv1.0.1
- ffmpeg-social-videov1.0.1
- git-masterv1.5.6
- kaggle-masterv1.0.2
- ml-masterv0.2.0
- modal-computev1.0.1
- modal-masterv4.0.0
- modal-sandboxesv1.0.0
- modal-storagev1.0.0
- modal-web-schedulingv1.0.1
- nextjs-masterv2.0.7
- plugin-masterv3.4.2
Similar to azure-to-docker-master
More DevOps & Clouddocker-masterPluginJosiahSiegel/claude-plugin-marketplace67 starsComplete Docker expertise across Windows/Linux/macOS with 2025 AI-powered features. PROACTIVELY activate for: (1) any Docker task (build/run/debug/optimize), (2
azure-masterPluginJosiahSiegel/claude-plugin-marketplace67 starsComplete Azure cloud expertise covering 2025-2026 features. This plugin should be used for ANY Azure resource provisioning, AKS Automatic, Container Apps GPU, A
azure-cloud-migrateSkillmicrosoft/azure-skills717.8K installsAssesses and migrates AWS, Heroku, GCP, and Kubernetes workloads to Azure Functions, App Service, or Container Apps.
azurePluginmicrosoft/skills3.2K starsMicrosoft Azure MCP and Skills integration for cloud resource management, deployments, and Azure services. Manage your Azure infrastructure, monitor application
dokploy-skillsPluginfcakyon/claude-codex-settings1.2K starsDeploy Docker Compose apps, databases, and domains on Dokploy Cloud or self-hosted.
azure-prepareSkillmicrosoft/github-copilot-for-azure103K installsPrepares azd-based Azure projects with azure.yaml, Bicep or Terraform infrastructure, and Dockerfiles, not cross-cloud migration.