# expressbazaar/terraform-azurerm-modules architecture

> Architecture diagram of the GitHub repository expressbazaar/terraform-azurerm-modules, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/expressbazaar/terraform-azurerm-modules
- Repository: https://github.com/expressbazaar/terraform-azurerm-modules

## Overview

This repository is a versioned library of composable Terraform modules for provisioning Azure infrastructure. A consumer pins and configures modules, which expose outputs for composition; the README’s examples illustrate network, platform, and workload stacks. The graph preserves the documented phases and the additional module directories present in the tree. Source excerpts were unavailable, so module-to-module calls and resource-level dependencies are omitted; example composition edges reflect README descriptions only.

Main entry points: [`examples/simple-network/main.tf`](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/simple-network/main.tf) (Simple Network Example), [`examples/complete-stack/main.tf`](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/complete-stack/main.tf) (Complete Stack Example), [`examples/platform-stack/main.tf`](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/platform-stack/main.tf) (Platform Stack Example), [`examples/workload-stack/main.tf`](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/workload-stack/main.tf) (Workload Stack Example)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_network["Network Foundation"]
  node_resource_group["Resource Group<br/>[main.tf]"]
  node_vnet["Virtual Network<br/>[main.tf]"]
  node_subnet["Subnet<br/>[main.tf]"]
  node_nsg["Network Security<br/>[main.tf]"]
  node_route_table["Route Table<br/>[main.tf]"]
end

subgraph group_platform["Platform Services"]
  node_key_vault["Key Vault<br/>[main.tf]"]
  node_storage["Storage Account<br/>[main.tf]"]
  node_log_analytics["Log Analytics<br/>[main.tf]"]
  node_private_dns["Private DNS<br/>[main.tf]"]
end

subgraph group_workloads["Workload Services"]
  node_aks["AKS Cluster<br/>[main.tf]"]
  node_app_service["App Service<br/>[main.tf]"]
  node_linux_vm["Linux VM<br/>[main.tf]"]
  node_sql["SQL Services<br/>[main.tf]"]
  node_acr["Container Registry<br/>[main.tf]"]
end

subgraph group_data_ai["Data and AI"]
  node_databricks["Databricks Workspace<br/>[main.tf]"]
  node_databricks_connector["Access Connector<br/>[main.tf]"]
end

subgraph group_additional["Additional Modules"]
  node_app_insights["App Insights<br/>[main.tf]"]
  node_application_insights["Application Insights<br/>[main.tf]"]
  node_app_registration["App Registration<br/>[main.tf]"]
  node_container_environment["Container App Environment<br/>[main.tf]"]
  node_diagnostics["Diagnostic Settings<br/>[main.tf]"]
  node_frontdoor["Front Door<br/>[main.tf]"]
  node_frontdoor_policy["Front Door Policy<br/>[main.tf]"]
  node_managed_identity["Managed Identity<br/>[main.tf]"]
  node_private_endpoint["Private Endpoint<br/>[main.tf]"]
  node_waf["Web Application Firewall<br/>[main.tf]"]
end

node_consumer(("Terraform Consumer"))
node_simple_network["Simple Network Example<br/>[main.tf]"]
node_complete_stack["Complete Stack Example<br/>[main.tf]"]
node_platform_stack["Platform Stack Example<br/>[main.tf]"]
node_workload_stack["Workload Stack Example<br/>[main.tf]"]

node_consumer -->|"pins module"| node_resource_group
node_simple_network -->|"uses"| node_resource_group
node_simple_network -->|"uses"| node_vnet
node_simple_network -->|"uses"| node_subnet
node_simple_network -->|"uses"| node_nsg
node_complete_stack -->|"uses"| node_resource_group
node_complete_stack -->|"uses"| node_vnet
node_complete_stack -->|"uses"| node_subnet
node_complete_stack -->|"uses"| node_route_table
node_platform_stack -->|"uses"| node_key_vault
node_platform_stack -->|"uses"| node_storage
node_platform_stack -->|"uses"| node_log_analytics
node_platform_stack -->|"uses"| node_private_dns
node_workload_stack -->|"uses"| node_aks
node_workload_stack -->|"uses"| node_acr
node_workload_stack -->|"uses"| node_app_service
node_workload_stack -->|"uses"| node_sql

click node_resource_group "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/resource-group/main.tf"
click node_vnet "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/vnet/main.tf"
click node_subnet "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/subnet/main.tf"
click node_nsg "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/nsg/main.tf"
click node_route_table "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/route-table/main.tf"
click node_key_vault "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/key-vault/main.tf"
click node_storage "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/storage-account/main.tf"
click node_log_analytics "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/log-analytics/main.tf"
click node_private_dns "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/private-dns-zone/main.tf"
click node_aks "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/aks/main.tf"
click node_app_service "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-service/main.tf"
click node_linux_vm "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/linux-vm/main.tf"
click node_sql "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/sql/main.tf"
click node_acr "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/acr/main.tf"
click node_databricks "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/databricks-workspace/main.tf"
click node_databricks_connector "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/databricks-access-connector/main.tf"
click node_app_insights "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-insights/main.tf"
click node_application_insights "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/application-insights/main.tf"
click node_app_registration "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-registration/main.tf"
click node_container_environment "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/container-app-environment/main.tf"
click node_diagnostics "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/diagnostic-settings/main.tf"
click node_frontdoor "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/frontdoor/main.tf"
click node_frontdoor_policy "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/frontdoor-security-policy/main.tf"
click node_managed_identity "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/managed-identity/main.tf"
click node_private_endpoint "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/private-endpoint/main.tf"
click node_waf "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/waf/main.tf"
click node_simple_network "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/simple-network/main.tf"
click node_complete_stack "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/complete-stack/main.tf"
click node_platform_stack "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/platform-stack/main.tf"
click node_workload_stack "https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/workload-stack/main.tf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_resource_group,node_vnet,node_subnet,node_nsg,node_route_table toneBlue
class node_key_vault,node_storage,node_log_analytics,node_private_dns toneAmber
class node_aks,node_app_service,node_linux_vm,node_sql,node_acr toneMint
class node_databricks,node_databricks_connector toneRose
class node_app_insights,node_application_insights,node_app_registration,node_container_environment,node_diagnostics,node_frontdoor,node_frontdoor_policy,node_managed_identity,node_private_endpoint,node_waf,node_consumer toneIndigo
class node_simple_network,node_complete_stack,node_platform_stack,node_workload_stack toneTeal
```

## Components

### Network Foundation

- [Resource Group](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/resource-group/main.tf): `modules/resource-group/main.tf`
- [Virtual Network](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/vnet/main.tf): `modules/vnet/main.tf`
- [Subnet](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/subnet/main.tf): `modules/subnet/main.tf`
- [Network Security](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/nsg/main.tf): `modules/nsg/main.tf`
- [Route Table](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/route-table/main.tf): `modules/route-table/main.tf`

### Platform Services

- [Key Vault](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/key-vault/main.tf): `modules/key-vault/main.tf`
- [Storage Account](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/storage-account/main.tf): `modules/storage-account/main.tf`
- [Log Analytics](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/log-analytics/main.tf): `modules/log-analytics/main.tf`
- [Private DNS](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/private-dns-zone/main.tf): `modules/private-dns-zone/main.tf`

### Workload Services

- [AKS Cluster](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/aks/main.tf): `modules/aks/main.tf`
- [App Service](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-service/main.tf): `modules/app-service/main.tf`
- [Linux VM](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/linux-vm/main.tf): `modules/linux-vm/main.tf`
- [SQL Services](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/sql/main.tf): `modules/sql/main.tf`
- [Container Registry](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/acr/main.tf): `modules/acr/main.tf`

### Data and AI

- [Databricks Workspace](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/databricks-workspace/main.tf): `modules/databricks-workspace/main.tf`
- [Access Connector](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/databricks-access-connector/main.tf): `modules/databricks-access-connector/main.tf`

### Additional Modules

- [App Insights](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-insights/main.tf): `modules/app-insights/main.tf`
- [Application Insights](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/application-insights/main.tf): `modules/application-insights/main.tf`
- [App Registration](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/app-registration/main.tf): `modules/app-registration/main.tf`
- [Container App Environment](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/container-app-environment/main.tf): `modules/container-app-environment/main.tf`
- [Diagnostic Settings](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/diagnostic-settings/main.tf): `modules/diagnostic-settings/main.tf`
- [Front Door](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/frontdoor/main.tf): `modules/frontdoor/main.tf`
- [Front Door Policy](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/frontdoor-security-policy/main.tf): `modules/frontdoor-security-policy/main.tf`
- [Managed Identity](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/managed-identity/main.tf): `modules/managed-identity/main.tf`
- [Private Endpoint](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/private-endpoint/main.tf): `modules/private-endpoint/main.tf`
- [Web Application Firewall](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/modules/waf/main.tf): `modules/waf/main.tf`

### Other components

- **Terraform Consumer**
- [Simple Network Example](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/simple-network/main.tf): `examples/simple-network/main.tf`
- [Complete Stack Example](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/complete-stack/main.tf): `examples/complete-stack/main.tf`
- [Platform Stack Example](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/platform-stack/main.tf): `examples/platform-stack/main.tf`
- [Workload Stack Example](https://github.com/expressbazaar/terraform-azurerm-modules/blob/main/examples/workload-stack/main.tf): `examples/workload-stack/main.tf`

## Connections

- Terraform Consumer → Resource Group: pins module (evidence: `README.md`)
- Simple Network Example → Resource Group: uses (evidence: `README.md`)
- Simple Network Example → Virtual Network: uses (evidence: `README.md`)
- Simple Network Example → Subnet: uses (evidence: `README.md`)
- Simple Network Example → Network Security: uses (evidence: `README.md`)
- Complete Stack Example → Resource Group: uses (evidence: `README.md`)
- Complete Stack Example → Virtual Network: uses (evidence: `README.md`)
- Complete Stack Example → Subnet: uses (evidence: `README.md`)
- Complete Stack Example → Route Table: uses (evidence: `README.md`)
- Platform Stack Example → Key Vault: uses (evidence: `README.md`)
- Platform Stack Example → Storage Account: uses (evidence: `README.md`)
- Platform Stack Example → Log Analytics: uses (evidence: `README.md`)
- Platform Stack Example → Private DNS: uses (evidence: `README.md`)
- Workload Stack Example → AKS Cluster: uses (evidence: `README.md`)
- Workload Stack Example → Container Registry: uses (evidence: `README.md`)
- Workload Stack Example → App Service: uses (evidence: `README.md`)
- Workload Stack Example → SQL Services: uses (evidence: `README.md`)
