# mianyanwu25/azure-2tier-web-lab architecture

> Architecture diagram of the GitHub repository mianyanwu25/azure-2tier-web-lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mianyanwu25/azure-2tier-web-lab
- Repository: https://github.com/mianyanwu25/azure-2tier-web-lab

## Overview

This repository is a hands-on Azure lab guide, not an application codebase. Its principal workflow is to provision a two-subnet VNet and web/database VMs, secure the private database tier, then validate access through the web VM as a jump host. The graph reflects documented infrastructure and user actions; no implementation source was provided, and the deeper architecture notes were not sampled, so relationships are based on README instructions only.

Main entry points: [`README.md`](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md) (Web VM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_network["Network foundation"]
  node_resource_group["Resource group<br/>[README.md]"]
  node_vnet["Virtual network<br/>[README.md]"]
  node_web_subnet["Web subnet<br/>[README.md]"]
  node_db_subnet["Database subnet<br/>[README.md]"]
end

subgraph group_compute["Two-tier compute"]
  node_web_vm["Web VM<br/>[README.md]"]
  node_db_vm["Database VM<br/>[README.md]"]
  node_public_ip["Web public IP<br/>[README.md]"]
end

subgraph group_access["Access and security"]
  node_ssh_key["SSH key pair<br/>[README.md]"]
  node_nsg["Database NSG<br/>[README.md]"]
  node_jump_access["SSH jump access<br/>[README.md]"]
  node_connectivity["Connectivity check<br/>[README.md]"]
end

node_learner(("Lab learner"))
node_azure["Azure Portal"]

node_learner -->|"configures resources"| node_azure
node_azure -->|"creates"| node_resource_group
node_azure -->|"creates"| node_vnet
node_vnet -->|"segments network"| node_web_subnet
node_vnet -->|"segments network"| node_db_subnet
node_azure -->|"deploys"| node_web_vm
node_azure -->|"deploys"| node_db_vm
node_web_vm -->|"joins"| node_web_subnet
node_db_vm -->|"joins"| node_db_subnet
node_web_vm -->|"uses"| node_public_ip
node_learner -->|"downloads and uses"| node_ssh_key
node_learner -->|"SSH connects"| node_web_vm
node_web_vm -->|"pings privately"| node_db_vm
node_learner -->|"adds allow rule"| node_nsg
node_nsg -->|"restricts inbound"| node_db_vm
node_web_subnet -->|"allowed source"| node_nsg
node_learner -->|"validates"| node_connectivity
node_connectivity -->|"uses"| node_jump_access
node_learner -->|"deletes for cleanup"| node_resource_group

click node_resource_group "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_vnet "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_web_subnet "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_db_subnet "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_web_vm "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_db_vm "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_public_ip "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_ssh_key "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_nsg "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_jump_access "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"
click node_connectivity "https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md"

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_web_subnet,node_db_subnet toneBlue
class node_web_vm,node_db_vm,node_public_ip toneAmber
class node_ssh_key,node_nsg,node_jump_access,node_connectivity toneMint
class node_learner,node_azure toneIndigo
```

## Components

### Network foundation

- [Resource group](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Virtual network](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Web subnet](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Database subnet](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`

### Two-tier compute

- [Web VM](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Database VM](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Web public IP](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`

### Access and security

- [SSH key pair](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Database NSG](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [SSH jump access](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`
- [Connectivity check](https://github.com/mianyanwu25/azure-2tier-web-lab/blob/main/README.md): `README.md`

### Other components

- **Lab learner**
- **Azure Portal**

## Connections

- Lab learner → Azure Portal: configures resources (evidence: `README.md`)
- Azure Portal → Resource group: creates (evidence: `README.md`)
- Azure Portal → Virtual network: creates (evidence: `README.md`)
- Virtual network → Web subnet: segments network (evidence: `README.md`)
- Virtual network → Database subnet: segments network (evidence: `README.md`)
- Azure Portal → Web VM: deploys (evidence: `README.md`)
- Azure Portal → Database VM: deploys (evidence: `README.md`)
- Web VM → Web subnet: joins (evidence: `README.md`)
- Database VM → Database subnet: joins (evidence: `README.md`)
- Web VM → Web public IP: uses (evidence: `README.md`)
- Lab learner → SSH key pair: downloads and uses (evidence: `README.md`)
- Lab learner → Web VM: SSH connects (evidence: `README.md`)
- Web VM → Database VM: pings privately (evidence: `README.md`)
- Lab learner → Database NSG: adds allow rule (evidence: `README.md`)
- Database NSG → Database VM: restricts inbound (evidence: `README.md`)
- Web subnet → Database NSG: allowed source (evidence: `README.md`)
- Lab learner → Connectivity check: validates (evidence: `README.md`)
- Connectivity check → SSH jump access: uses (evidence: `README.md`)
- Lab learner → Resource group: deletes for cleanup (evidence: `README.md`)
