Interactive web tool to visualize Azure Availability Zone logical-to-physical mappings across subscriptions
Project description
az-mapping
Visualize how Azure maps logical Availability Zones to physical zones across your subscriptions.
Different subscriptions may map the same logical zone (e.g. Zone 1) to different physical datacenters. This tool lets you compare them side-by-side.
Quick start
# Make sure you are authenticated to Azure
az login
# Run the tool (no install required)
uvx az-mapping
Your browser opens automatically at http://127.0.0.1:5001.
CLI options
az-mapping [COMMAND] [OPTIONS]
az-mapping web (default)
Run the web UI. This is the default when no subcommand is given.
--host TEXT Host to bind to. [default: 127.0.0.1]
--port INTEGER Port to listen on. [default: 5001]
--no-open Don't open the browser automatically.
-v, --verbose Enable verbose logging.
--reload Auto-reload on code changes (development only).
--help Show this message and exit.
az-mapping mcp
Run the MCP server.
--sse Use SSE transport instead of stdio.
--port INTEGER Port for SSE transport. [default: 8080]
-v, --verbose Enable verbose logging.
--help Show this message and exit.
Alternative install
pip install az-mapping
az-mapping
Prerequisites
| Requirement | Details |
|---|---|
| Python | ≥ 3.11 |
| Azure credentials | Any method supported by DefaultAzureCredential (az login, managed identity, …) |
| RBAC | Reader on the subscriptions you want to query |
Features
- Region selector – AZ-enabled regions, loaded automatically.
- Subscription picker – searchable, multi-select.
- Collapsible sidebar – toggle the filter panel to maximize the results area.
- Graph view – D3.js bipartite diagram (Logical Zone → Physical Zone), colour-coded per subscription with interactive hover highlighting.
- Table view – comparison table with consistency indicators.
- SKU availability view – shows VM SKU availability per physical zone with filtering and CSV export.
- Export – download the graph as PNG or the tables as CSV.
- Shareable URLs – filters are reflected in the URL; reload or share a link to restore the exact view.
- MCP server – expose all capabilities as MCP tools for AI agents (see below).
MCP server
An MCP server is included, allowing AI agents (Claude Desktop, VS Code Copilot, etc.) to query zone mappings and SKU availability directly.
Available tools
| Tool | Description |
|---|---|
list_tenants |
Discover Azure AD tenants and authentication status |
list_subscriptions |
List enabled subscriptions (optionally scoped to a tenant) |
list_regions |
List regions that support Availability Zones |
get_zone_mappings |
Get logical→physical zone mappings for subscriptions in a region |
get_sku_availability |
Get VM SKU availability per zone with restrictions and capabilities |
get_sku_availability supports optional filters to reduce output size:
name, family, min_vcpus, max_vcpus, min_memory_gb, max_memory_gb.
Usage
stdio transport (default – for Claude Desktop, VS Code, etc.)
az-mapping mcp
Add to your MCP client configuration:
{
"mcpServers": {
"az-mapping": {
"command": "az-mapping",
"args": ["mcp"]
}
}
}
If using uv:
{
"mcpServers": {
"az-mapping": {
"command": "uvx",
"args": ["az-mapping", "mcp"]
}
}
}
SSE transport
az-mapping mcp --sse --port 8080
How it works
The backend calls the Azure Resource Manager REST API to fetch:
- Zone mappings:
availabilityZoneMappingsfrom/subscriptions/{id}/locationsendpoint - Resource SKUs: SKU details from
/subscriptions/{id}/providers/Microsoft.Compute/skusendpoint with zone restrictions and capabilities
The frontend renders the results as an interactive graph, comparison table, and SKU availability table.
API documentation is available at /docs (Swagger UI) and /redoc (ReDoc) when the server is running.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file az_mapping-2026.2.3.tar.gz.
File metadata
- Download URL: az_mapping-2026.2.3.tar.gz
- Upload date:
- Size: 153.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f30cece0906c5efc23c39bb8e95276158b4fca6f531c03573235f625e07f25ee
|
|
| MD5 |
ba5886bb23aea85de87b75ba09d92b94
|
|
| BLAKE2b-256 |
e7d2cda07d78b3895a75f2049deb2ca562f0a85c1f89632b9e7b947fbf1e79a3
|
Provenance
The following attestation bundles were made for az_mapping-2026.2.3.tar.gz:
Publisher:
publish.yml on lrivallain/az-mapping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_mapping-2026.2.3.tar.gz -
Subject digest:
f30cece0906c5efc23c39bb8e95276158b4fca6f531c03573235f625e07f25ee - Sigstore transparency entry: 955140085
- Sigstore integration time:
-
Permalink:
lrivallain/az-mapping@a0ff1da30bf4987fbfc19dc3d07b7b1970d71613 -
Branch / Tag:
refs/tags/v2026.2.3 - Owner: https://github.com/lrivallain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0ff1da30bf4987fbfc19dc3d07b7b1970d71613 -
Trigger Event:
push
-
Statement type:
File details
Details for the file az_mapping-2026.2.3-py3-none-any.whl.
File metadata
- Download URL: az_mapping-2026.2.3-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9adfa2d476e0dce9cbe5e16f9db0a4fe8ee8484902c0e46c3d267c5d1cee02
|
|
| MD5 |
d9e8dea7d3559c3b13c19f08570d4b11
|
|
| BLAKE2b-256 |
0f982b95cfd14b932cdf493129347a8f68f5e7082a440984ac2f9ab52e0eb034
|
Provenance
The following attestation bundles were made for az_mapping-2026.2.3-py3-none-any.whl:
Publisher:
publish.yml on lrivallain/az-mapping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_mapping-2026.2.3-py3-none-any.whl -
Subject digest:
5f9adfa2d476e0dce9cbe5e16f9db0a4fe8ee8484902c0e46c3d267c5d1cee02 - Sigstore transparency entry: 955140087
- Sigstore integration time:
-
Permalink:
lrivallain/az-mapping@a0ff1da30bf4987fbfc19dc3d07b7b1970d71613 -
Branch / Tag:
refs/tags/v2026.2.3 - Owner: https://github.com/lrivallain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0ff1da30bf4987fbfc19dc3d07b7b1970d71613 -
Trigger Event:
push
-
Statement type: