# manupanicker/testworkflow architecture

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

- Interactive diagram: https://gitdiagram.com/manupanicker/testworkflow
- Repository: https://github.com/manupanicker/testworkflow

## Overview

This repository is an operator-driven Citrix infrastructure automation platform. The principal workflow is to trigger GitHub Actions, provision Azure Windows VMs, then configure them through PowerShell, including domain joining and installing Citrix components. The README also describes VM lifecycle operations and media access. Its end-to-end Citrix build lifecycle is a target direction; the available excerpt does not establish all of those stages as implemented. No source excerpts were supplied, so relationships below rely on README statements.

Main entry points: [`.github/workflows`](https://github.com/manupanicker/testworkflow/tree/main/.github/workflows) (Citrix install workflows), [`Bicep/main.bicep`](https://github.com/manupanicker/testworkflow/blob/main/Bicep/main.bicep) (Azure resources), [`Terraform/main.tf`](https://github.com/manupanicker/testworkflow/blob/main/Terraform/main.tf) (Terraform resources), [`Scripts/Domain-Join.ps1`](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Domain-Join.ps1) (Domain configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow orchestration"]
  node_actions["GitHub Actions<br/>[workflows]"]
  node_create_vm["Create Windows VM"]
  node_bicep_workflow["Bicep VM workflow"]
  node_terraform_workflow["Terraform VM workflow"]
  node_domain_workflow["Domain join workflow<br/>[Domain-Join.yml]"]
  node_citrix_installs["Citrix install workflows<br/>[workflows]"]
  node_media_access["Media access workflow"]
end

subgraph group_provisioning["Azure provisioning"]
  node_bicep["Azure resources<br/>[main.bicep]"]
  node_terraform["Terraform resources<br/>[main.tf]"]
  node_azure["Azure platform"]
end

subgraph group_configuration["Windows and Citrix configuration"]
  node_domain_script["Domain configuration<br/>[Domain-Join.ps1]"]
  node_licensing["Licensing install"]
  node_ddc["Delivery Controller install"]
  node_storefront["StoreFront install"]
  node_recording["Session Recording install"]
  node_vda["VDA install"]
  node_director["Director capability"]
  node_media_script["Blob access configuration"]
  node_remove_domain["Remove domain membership"]
end

subgraph group_operations["Infrastructure operations"]
  node_vm_operations["VM lifecycle workflows<br/>[workflows]"]
  node_delete_vm["Delete VM"]
  node_power_vm["Power VM"]
  node_list_vms["List VMs<br/>[List-VMs.yml]"]
  node_cleanup["Orphan cleanup"]
end

node_operator(("Operator"))

node_operator -->|"triggers"| node_actions
node_actions -->|"deploys infrastructure"| node_bicep
node_actions -->|"deploys infrastructure"| node_terraform
node_bicep_workflow -->|"deploys"| node_bicep
node_terraform_workflow -->|"deploys"| node_terraform
node_bicep -->|"provisions resources"| node_azure
node_terraform -->|"provisions resources"| node_azure
node_actions -->|"runs in VM"| node_domain_script
node_domain_workflow -->|"runs in VM"| node_domain_script
node_actions -->|"runs scripts"| node_citrix_installs
node_citrix_installs -->|"calls PowerShell"| node_licensing
node_citrix_installs -->|"calls PowerShell"| node_ddc
node_citrix_installs -->|"calls PowerShell"| node_storefront
node_citrix_installs -->|"calls PowerShell"| node_recording
node_citrix_installs -->|"calls PowerShell"| node_vda
node_media_access -.->|"calls script"| node_media_script
node_delete_vm -.->|"removes VM"| node_azure
node_power_vm -.->|"controls VM"| node_azure
node_list_vms -.->|"lists VMs"| node_azure
node_cleanup -.->|"cleans resources"| node_azure

click node_actions "https://github.com/manupanicker/testworkflow/tree/main/.github/workflows"
click node_create_vm "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-VM.yml"
click node_bicep_workflow "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-Bicep.yml"
click node_terraform_workflow "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-Terraform.yml"
click node_bicep "https://github.com/manupanicker/testworkflow/blob/main/Bicep/main.bicep"
click node_terraform "https://github.com/manupanicker/testworkflow/blob/main/Terraform/main.tf"
click node_domain_workflow "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Domain-Join.yml"
click node_domain_script "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Domain-Join.ps1"
click node_citrix_installs "https://github.com/manupanicker/testworkflow/tree/main/.github/workflows"
click node_licensing "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-Licensing.ps1"
click node_ddc "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-DDC.ps1"
click node_storefront "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-StoreFront.ps1"
click node_recording "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-SessionRecording.ps1"
click node_vda "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-VDA.ps1"
click node_media_access "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Grant-CitrixMediaAccess.yml"
click node_media_script "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Grant-CitrixMediaBlobAccess.ps1"
click node_vm_operations "https://github.com/manupanicker/testworkflow/tree/main/.github/workflows"
click node_delete_vm "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Delete-Windows2022-VM.yml"
click node_power_vm "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Power-On-Off-Windows2022-VM.yml"
click node_list_vms "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/List-VMs.yml"
click node_cleanup "https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Cleanup-Orphaned-VM-Resources.yml"
click node_remove_domain "https://github.com/manupanicker/testworkflow/blob/main/Scripts/Remove-From-Domain.ps1"

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_actions,node_create_vm,node_bicep_workflow,node_terraform_workflow,node_domain_workflow,node_citrix_installs,node_media_access toneBlue
class node_bicep,node_terraform,node_azure toneAmber
class node_domain_script,node_licensing,node_ddc,node_storefront,node_recording,node_vda,node_director,node_media_script,node_remove_domain toneMint
class node_vm_operations,node_delete_vm,node_power_vm,node_list_vms,node_cleanup toneRose
class node_operator toneIndigo
```

## Components

### Workflow orchestration

- [GitHub Actions](https://github.com/manupanicker/testworkflow/tree/main/.github/workflows): `.github/workflows`
- [Create Windows VM](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-VM.yml): `.github/workflows/Create-Windows2022-VM.yml`
- [Bicep VM workflow](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-Bicep.yml): `.github/workflows/Create-Windows2022-Bicep.yml`
- [Terraform VM workflow](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Create-Windows2022-Terraform.yml): `.github/workflows/Create-Windows2022-Terraform.yml`
- [Domain join workflow](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Domain-Join.yml): `.github/workflows/Domain-Join.yml`
- [Citrix install workflows](https://github.com/manupanicker/testworkflow/tree/main/.github/workflows): `.github/workflows`
- [Media access workflow](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Grant-CitrixMediaAccess.yml): `.github/workflows/Grant-CitrixMediaAccess.yml`

### Azure provisioning

- [Azure resources](https://github.com/manupanicker/testworkflow/blob/main/Bicep/main.bicep): `Bicep/main.bicep`
- [Terraform resources](https://github.com/manupanicker/testworkflow/blob/main/Terraform/main.tf): `Terraform/main.tf`
- **Azure platform**

### Windows and Citrix configuration

- [Domain configuration](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Domain-Join.ps1): `Scripts/Domain-Join.ps1`
- [Licensing install](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-Licensing.ps1): `Scripts/Install-Citrix-Licensing.ps1`
- [Delivery Controller install](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-DDC.ps1): `Scripts/Install-Citrix-DDC.ps1`
- [StoreFront install](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-StoreFront.ps1): `Scripts/Install-Citrix-StoreFront.ps1`
- [Session Recording install](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-SessionRecording.ps1): `Scripts/Install-Citrix-SessionRecording.ps1`
- [VDA install](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Install-Citrix-VDA.ps1): `Scripts/Install-Citrix-VDA.ps1`
- **Director capability**
- [Blob access configuration](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Grant-CitrixMediaBlobAccess.ps1): `Scripts/Grant-CitrixMediaBlobAccess.ps1`
- [Remove domain membership](https://github.com/manupanicker/testworkflow/blob/main/Scripts/Remove-From-Domain.ps1): `Scripts/Remove-From-Domain.ps1`

### Infrastructure operations

- [VM lifecycle workflows](https://github.com/manupanicker/testworkflow/tree/main/.github/workflows): `.github/workflows`
- [Delete VM](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Delete-Windows2022-VM.yml): `.github/workflows/Delete-Windows2022-VM.yml`
- [Power VM](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Power-On-Off-Windows2022-VM.yml): `.github/workflows/Power-On-Off-Windows2022-VM.yml`
- [List VMs](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/List-VMs.yml): `.github/workflows/List-VMs.yml`
- [Orphan cleanup](https://github.com/manupanicker/testworkflow/blob/main/.github/workflows/Cleanup-Orphaned-VM-Resources.yml): `.github/workflows/Cleanup-Orphaned-VM-Resources.yml`

### Other components

- **Operator**

## Connections

- Operator → GitHub Actions: triggers (evidence: `README.md`)
- GitHub Actions → Azure resources: deploys infrastructure (evidence: `README.md`)
- GitHub Actions → Terraform resources: deploys infrastructure (evidence: `README.md`)
- Bicep VM workflow → Azure resources: deploys (evidence: `README.md`)
- Terraform VM workflow → Terraform resources: deploys (evidence: `README.md`)
- Azure resources → Azure platform: provisions resources (evidence: `README.md`)
- Terraform resources → Azure platform: provisions resources (evidence: `README.md`)
- GitHub Actions → Domain configuration: runs in VM (evidence: `README.md`)
- Domain join workflow → Domain configuration: runs in VM (evidence: `README.md`)
- GitHub Actions → Citrix install workflows: runs scripts (evidence: `README.md`)
- Citrix install workflows → Licensing install: calls PowerShell (evidence: `README.md`)
- Citrix install workflows → Delivery Controller install: calls PowerShell (evidence: `README.md`)
- Citrix install workflows → StoreFront install: calls PowerShell (evidence: `README.md`)
- Citrix install workflows → Session Recording install: calls PowerShell (evidence: `README.md`)
- Citrix install workflows → VDA install: calls PowerShell (evidence: `README.md`)
- Media access workflow → Blob access configuration: calls script
- Delete VM → Azure platform: removes VM
- Power VM → Azure platform: controls VM
- List VMs → Azure platform: lists VMs
- Orphan cleanup → Azure platform: cleans resources
