# prometheus-n/pike-infra-eaas-new architecture

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

- Interactive diagram: https://gitdiagram.com/prometheus-n/pike-infra-eaas-new
- Repository: https://github.com/prometheus-n/pike-infra-eaas-new

## Overview

BIFROST_NEW deploys PIKE Azure infrastructure from JSON configuration: a GitHub Actions workflow validates and authenticates, PowerShell maps configured objects to Bicep parameters and runs What-If/deployment operations, and resource modules define the Azure resources. The repository also contains RBAC and PIM access-management modules. Relationships here are based on the README’s architecture and deployment description; no source excerpts were provided, so the access-management components are shown without inferred runtime links.

Main entry points: [`scripts/Invoke-PimRequest.ps1`](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/scripts/Invoke-PimRequest.ps1) (PowerShell deployer), [`.github/workflows/deploy.yml`](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/.github/workflows/deploy.yml) (Deploy workflow), [`input.json`](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/input.json) (Deployment config), [`modules/RG/resourcegroup.bicep`](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/RG/resourcegroup.bicep) (Resource groups)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Deployment orchestration"]
  node_workflow["Deploy workflow<br/>[deploy.yml]"]
  node_powershell["PowerShell deployer"]
  node_auth["OIDC authentication<br/>[deploy.yml]"]
end

subgraph group_infrastructure["Infrastructure modules"]
  node_rg["Resource groups"]
  node_network["Networking"]
  node_compute["Virtual machines<br/>[vm.bicep]"]
  node_database["Databases"]
  node_storage["Storage accounts"]
  node_security["Key Vault<br/>[keyvault.bicep]"]
  node_ai["Azure OpenAI<br/>[openai.bicep]"]
  node_loadbalancer["Load balancer<br/>[lb.bicep]"]
end

subgraph group_access["Access management"]
  node_pim["PIM policies<br/>[pim.bicep]"]
  node_pimscript["PIM request script"]
  node_rbac["RBAC assignments"]
end

subgraph group_azure["Azure platform"]
  node_azure{{"Azure subscription"}}
  node_resources[("Azure resources")]
end

node_operator(("Workflow initiator"))
node_config["Deployment config<br/>[input.json]"]

node_operator -->|"dispatches"| node_workflow
node_config -->|"configures"| node_powershell
node_workflow -->|"invokes"| node_powershell
node_workflow -->|"authenticates"| node_auth
node_powershell -->|"deploys"| node_rg
node_powershell -->|"deploys"| node_network
node_powershell -->|"deploys"| node_compute
node_powershell -->|"deploys"| node_database
node_powershell -->|"deploys"| node_storage
node_powershell -->|"deploys"| node_security
node_powershell -->|"deploys"| node_ai
node_auth -->|"signs in"| node_azure
node_azure -->|"hosts"| node_resources

click node_config "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/input.json"
click node_workflow "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/.github/workflows/deploy.yml"
click node_powershell "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/scripts/Invoke-PimRequest.ps1"
click node_auth "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/.github/workflows/deploy.yml"
click node_rg "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/RG/resourcegroup.bicep"
click node_network "https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/networking"
click node_compute "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/compute/vm.bicep"
click node_database "https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/database"
click node_storage "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/storage/storageAccount.bicep"
click node_security "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/security/keyvault.bicep"
click node_ai "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/ai/openai.bicep"
click node_loadbalancer "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/loadbalancer/lb.bicep"
click node_pim "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/access/pim/pim.bicep"
click node_pimscript "https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/scripts/Invoke-PimRequest.ps1"
click node_rbac "https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/access/rbac"

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_workflow,node_powershell,node_auth toneBlue
class node_rg,node_network,node_compute,node_database,node_storage,node_security,node_ai,node_loadbalancer toneAmber
class node_pim,node_pimscript,node_rbac toneMint
class node_azure,node_resources toneRose
class node_operator toneIndigo
class node_config toneTeal
```

## Components

### Deployment orchestration

- [Deploy workflow](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- [PowerShell deployer](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/scripts/Invoke-PimRequest.ps1): `scripts/Invoke-PimRequest.ps1`
- [OIDC authentication](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`

### Infrastructure modules

- [Resource groups](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/RG/resourcegroup.bicep): `modules/RG/resourcegroup.bicep`
- [Networking](https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/networking): `modules/networking`
- [Virtual machines](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/compute/vm.bicep): `modules/compute/vm.bicep`
- [Databases](https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/database): `modules/database`
- [Storage accounts](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/storage/storageAccount.bicep): `modules/storage/storageAccount.bicep`
- [Key Vault](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/security/keyvault.bicep): `modules/security/keyvault.bicep`
- [Azure OpenAI](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/ai/openai.bicep): `modules/ai/openai.bicep`
- [Load balancer](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/loadbalancer/lb.bicep): `modules/loadbalancer/lb.bicep`

### Access management

- [PIM policies](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/modules/access/pim/pim.bicep): `modules/access/pim/pim.bicep`
- [PIM request script](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/scripts/Invoke-PimRequest.ps1): `scripts/Invoke-PimRequest.ps1`
- [RBAC assignments](https://github.com/prometheus-n/pike-infra-eaas-new/tree/feature/modules/access/rbac): `modules/access/rbac`

### Azure platform

- **Azure subscription**
- **Azure resources**

### Other components

- **Workflow initiator**
- [Deployment config](https://github.com/prometheus-n/pike-infra-eaas-new/blob/feature/input.json): `input.json`

## Connections

- Workflow initiator → Deploy workflow: dispatches (evidence: `README.md`)
- Deployment config → PowerShell deployer: configures (evidence: `README.md`)
- Deploy workflow → PowerShell deployer: invokes (evidence: `README.md`)
- Deploy workflow → OIDC authentication: authenticates (evidence: `README.md`)
- PowerShell deployer → Resource groups: deploys (evidence: `README.md`)
- PowerShell deployer → Networking: deploys (evidence: `README.md`)
- PowerShell deployer → Virtual machines: deploys (evidence: `README.md`)
- PowerShell deployer → Databases: deploys (evidence: `README.md`)
- PowerShell deployer → Storage accounts: deploys (evidence: `README.md`)
- PowerShell deployer → Key Vault: deploys (evidence: `README.md`)
- PowerShell deployer → Azure OpenAI: deploys (evidence: `README.md`)
- OIDC authentication → Azure subscription: signs in (evidence: `README.md`)
- Azure subscription → Azure resources: hosts (evidence: `README.md`)
