# geabdluca/agentsfoundrynetworking architecture

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

- Interactive diagram: https://gitdiagram.com/geabdluca/agentsfoundrynetworking
- Repository: https://github.com/geabdluca/agentsfoundrynetworking

## Overview

This is a menu-driven Azure deployment tool: users run the launcher to check prerequisites, configure and deploy a hub-spoke network, optionally install DNS and VPN client certificates, then deploy AI Foundry resources with BYO VNet or APIM. The launcher also tracks progress for resume and supports selective or full teardown. Terraform modules implement the infrastructure, while PowerShell scripts configure host-side DNS and VPN certificates. Relationship evidence is limited to the README and launcher excerpts; module internals were not sampled, so Terraform provisioning links are documented relationships.

Main entry points: [`launcher.py`](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py) (Deployment workflow), [`hub-spoke-network/code`](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/hub-spoke-network/code) (Hub-spoke infrastructure), [`byo-vnet/code`](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/byo-vnet/code) (BYO VNet Foundry), [`foundry-apim/code`](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/foundry-apim/code) (Foundry with APIM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Deployment Launcher"]
  node_launcher_app["Deployment workflow<br/>[launcher.py]"]
  node_prereqs["Prerequisite checks<br/>[launcher.py]"]
  node_deploy_state[("Resume and deployment state<br/>[launcher.py]")]
  node_destroy["Resource cleanup<br/>[launcher.py]"]
end

subgraph group_network["Hub-Spoke Network"]
  node_hub_network["Hub-spoke infrastructure"]
  node_vpn_gateway["Point-to-Site VPN<br/>[vpn-gateway.tf]"]
  node_network_security["Firewall and peering<br/>[firewall.tf]"]
  node_private_dns["Private DNS zones"]
  node_dns_vm["DNS server VM<br/>[dns-vm.tf]"]
end

subgraph group_foundry["Foundry Deployments"]
  node_byo_foundry["BYO VNet Foundry"]
  node_apim_foundry["Foundry with APIM"]
end

subgraph group_hostconfig["Host Configuration"]
  node_vpn_cert["VPN certificates"]
  node_dns_install["DNS configuration"]
end

node_operator(("Operator"))
node_azure[("Azure services")]
node_vpn_client["VPN client"]

node_operator -->|"selects workflow"| node_launcher_app
node_launcher_app -->|"checks prerequisites"| node_prereqs
node_launcher_app -->|"resumes and records"| node_deploy_state
node_launcher_app -->|"deploys network"| node_hub_network
node_launcher_app -->|"configures DNS"| node_dns_install
node_launcher_app -->|"installs certificates"| node_vpn_cert
node_launcher_app -->|"offers installation"| node_vpn_client
node_launcher_app -->|"deploys BYO VNet"| node_byo_foundry
node_launcher_app -->|"offers deployment"| node_apim_foundry
node_launcher_app -->|"offers cleanup"| node_destroy
node_hub_network -->|"provisions resources"| node_azure
node_byo_foundry -->|"provisions resources"| node_azure
node_apim_foundry -.->|"provisions resources"| node_azure
node_vpn_gateway -->|"provides access"| node_vpn_client
node_dns_vm -.->|"resolves private names"| node_private_dns
node_hub_network -->|"provides network"| node_byo_foundry

click node_launcher_app "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py"
click node_prereqs "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py"
click node_deploy_state "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py"
click node_destroy "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py"
click node_hub_network "https://github.com/geabdluca/agentsfoundrynetworking/tree/main/hub-spoke-network/code"
click node_vpn_gateway "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/vpn-gateway.tf"
click node_network_security "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/firewall.tf"
click node_private_dns "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/private-dns-zones.tf"
click node_dns_vm "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/dns-vm.tf"
click node_vpn_cert "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/install-vpn-certs.ps1"
click node_dns_install "https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/install-dns-server.ps1"
click node_byo_foundry "https://github.com/geabdluca/agentsfoundrynetworking/tree/main/byo-vnet/code"
click node_apim_foundry "https://github.com/geabdluca/agentsfoundrynetworking/tree/main/foundry-apim/code"

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_launcher_app,node_prereqs,node_deploy_state,node_destroy,node_vpn_client toneBlue
class node_hub_network,node_vpn_gateway,node_network_security,node_private_dns,node_dns_vm,node_azure toneAmber
class node_byo_foundry,node_apim_foundry toneMint
class node_vpn_cert,node_dns_install toneRose
class node_operator toneIndigo
```

## Components

### Deployment Launcher

- [Deployment workflow](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py): `launcher.py`
- [Prerequisite checks](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py): `launcher.py`
- [Resume and deployment state](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py): `launcher.py`
- [Resource cleanup](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/launcher.py): `launcher.py`

### Hub-Spoke Network

- [Hub-spoke infrastructure](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/hub-spoke-network/code): `hub-spoke-network/code`
- [Point-to-Site VPN](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/vpn-gateway.tf): `hub-spoke-network/code/vpn-gateway.tf`
- [Firewall and peering](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/firewall.tf): `hub-spoke-network/code/firewall.tf`
- [Private DNS zones](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/private-dns-zones.tf): `hub-spoke-network/code/private-dns-zones.tf`
- [DNS server VM](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/code/dns-vm.tf): `hub-spoke-network/code/dns-vm.tf`

### Foundry Deployments

- [BYO VNet Foundry](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/byo-vnet/code): `byo-vnet/code`
- [Foundry with APIM](https://github.com/geabdluca/agentsfoundrynetworking/tree/main/foundry-apim/code): `foundry-apim/code`

### Host Configuration

- [VPN certificates](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/install-vpn-certs.ps1): `hub-spoke-network/install-vpn-certs.ps1`
- [DNS configuration](https://github.com/geabdluca/agentsfoundrynetworking/blob/main/hub-spoke-network/install-dns-server.ps1): `hub-spoke-network/install-dns-server.ps1`

### Other components

- **Operator**
- **Azure services**
- **VPN client**

## Connections

- Operator → Deployment workflow: selects workflow (evidence: `README.md`)
- Deployment workflow → Prerequisite checks: checks prerequisites (evidence: `launcher.py`)
- Deployment workflow → Resume and deployment state: resumes and records (evidence: `launcher.py`)
- Deployment workflow → Hub-spoke infrastructure: deploys network (evidence: `README.md`)
- Deployment workflow → DNS configuration: configures DNS (evidence: `README.md`)
- Deployment workflow → VPN certificates: installs certificates (evidence: `README.md`)
- Deployment workflow → VPN client: offers installation (evidence: `README.md`)
- Deployment workflow → BYO VNet Foundry: deploys BYO VNet (evidence: `README.md`)
- Deployment workflow → Foundry with APIM: offers deployment (evidence: `launcher.py`)
- Deployment workflow → Resource cleanup: offers cleanup (evidence: `README.md`)
- Hub-spoke infrastructure → Azure services: provisions resources (evidence: `README.md`)
- BYO VNet Foundry → Azure services: provisions resources (evidence: `README.md`)
- Foundry with APIM → Azure services: provisions resources
- Point-to-Site VPN → VPN client: provides access (evidence: `README.md`)
- DNS server VM → Private DNS zones: resolves private names
- Hub-spoke infrastructure → BYO VNet Foundry: provides network (evidence: `README.md`)
