{
 "$schema": "../../lib/umlimator.schema.json",
 "schemaVersion": 2,
 "title": "Azure diagram",
 "root": "on-azure",
 "nodes": [
  { "id": "az-subscription", "type": "azure.Group", "label": "Bookshop production", "props": { "groupType": "subscription" } },
  { "id": "az-rg", "type": "azure.Group", "label": "rg-bookshop-prod", "parent": "az-subscription", "props": { "groupType": "resource-group" } },
  { "id": "az-front-door", "type": "azure.Service", "label": "CDN and routing", "parent": "az-rg", "props": { "icon": "Front-Door-and-CDN-Profiles" } },
  { "id": "az-ops", "type": "azure.Group", "label": "Operations", "parent": "az-rg", "props": { "groupType": "generic" } },
  { "id": "az-monitor", "type": "azure.Service", "label": "Logs and alerts", "parent": "az-ops", "props": { "icon": "Monitor" } },
  { "id": "az-insights", "type": "azure.Service", "label": "Application Insights", "parent": "az-ops", "props": { "icon": "Application-Insights" } },
  { "id": "az-region", "type": "azure.Group", "label": "West Europe", "parent": "az-rg", "props": { "groupType": "region" } },
  { "id": "az-assets", "type": "azure.Service", "label": "Storefront files", "parent": "az-region", "props": { "icon": "Storage-Accounts" } },
  { "id": "az-queue", "type": "azure.Service", "label": "Order queue", "parent": "az-region", "props": { "icon": "Service-Bus" } },
  { "id": "az-vault", "type": "azure.Service", "label": "Secrets", "parent": "az-region", "props": { "icon": "Key-Vaults" } },
  { "id": "az-vnet", "type": "azure.Group", "label": "vnet-bookshop", "parent": "az-region", "props": { "groupType": "virtual-network" } },
  { "id": "az-snet-apps", "type": "azure.Group", "label": "snet-apps", "parent": "az-vnet", "props": { "groupType": "subnet" } },
  { "id": "az-api", "type": "azure.Service", "label": "Shop API", "parent": "az-snet-apps", "props": { "icon": "App-Services" } },
  { "id": "az-worker", "type": "azure.Service", "label": "Order worker\nqueue trigger", "parent": "az-snet-apps", "props": { "icon": "Function-Apps" } },
  { "id": "az-snet-data", "type": "azure.Group", "label": "snet-data", "parent": "az-vnet", "props": { "groupType": "subnet" } },
  { "id": "az-db", "type": "azure.Service", "label": "Database", "parent": "az-snet-data", "props": { "icon": "SQL-Database" } },
  { "id": "az-cache", "type": "azure.Service", "label": "Basket cache", "parent": "az-region", "props": { "icon": "Cache-Redis" } },
  { "id": "az-standby-region", "type": "azure.Group", "label": "North Europe", "parent": "az-rg", "props": { "groupType": "region" } },
  { "id": "az-standby-db", "type": "azure.Service", "label": "Standby database", "parent": "az-standby-region", "props": { "icon": "SQL-Database" } }
 ],
 "edges": [
  { "id": "az-front-door-assets", "type": "azure.Connector", "from": "az-front-door", "to": "az-assets", "label": "storefront" },
  { "id": "az-front-door-api", "type": "azure.Connector", "from": "az-front-door", "to": "az-api", "label": "/api" },
  { "id": "az-api-db", "type": "azure.Connector", "from": "az-api", "to": "az-db", "label": "SQL" },
  { "id": "az-api-cache", "type": "azure.Connector", "from": "az-api", "to": "az-cache", "label": "baskets" },
  { "id": "az-api-queue", "type": "azure.Connector", "from": "az-api", "to": "az-queue", "label": "paid order" },
  { "id": "az-queue-worker", "type": "azure.Connector", "from": "az-queue", "to": "az-worker", "label": "next order" },
  { "id": "az-worker-db", "type": "azure.Connector", "from": "az-worker", "to": "az-db", "label": "SQL" },
  { "id": "az-api-vault", "type": "azure.Connector", "from": "az-api", "to": "az-vault", "label": "secrets" },
  { "id": "az-api-insights", "type": "azure.Connector", "from": "az-api", "to": "az-insights", "label": "traces" },
  { "id": "az-apps-monitor", "type": "azure.Connector", "from": "az-snet-apps", "to": "az-monitor", "label": "logs, metrics" },
  { "id": "az-db-standby", "type": "azure.Connector", "from": "az-db", "to": "az-standby-region", "label": "geo-replica" }
 ],
 "views": [
  { "id": "on-azure", "diagram": "azure", "title": "Bookshop on Azure", "caption": "Icons from a pack you fetch: umlimator.py pack fetch azure, after Microsoft's terms; glyphs and full names without it. Umlimator is not affiliated with, endorsed by or sponsored by Amazon Web Services, Google or Microsoft.", "parent": null, "layout": {"az-vault": [2, 1], "az-cache": [2, 0]},
   "nodeIds": ["az-subscription", "az-rg", "az-front-door", "az-ops", "az-monitor", "az-insights", "az-region", "az-assets", "az-queue", "az-vault",
    "az-vnet", "az-snet-apps", "az-api", "az-worker", "az-snet-data", "az-db", "az-cache", "az-standby-region"] }
 ],
 "iconPacks": { "azure": "V25" }
}
