# azure/azops architecture

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

- Interactive diagram: https://gitdiagram.com/azure/azops
- Repository: https://github.com/azure/azops

## Overview

AzOps manages Azure infrastructure declaratively through a Git representation of Azure scopes. The documented workflows deploy Resource Templates and Bicep files to Azure (Push), and export composite templates from ARM back into the repository (Pull). The README establishes these relationships; source excerpts were not provided, so implementation-level calls and internal sequencing are not shown.

Main entry points: [`src/functions/Invoke-AzOpsPull.ps1`](https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPull.ps1) (Pull), [`src/functions/Invoke-AzOpsPush.ps1`](https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPush.ps1) (Push), [`src/data/template`](https://github.com/azure/azops/tree/main/src/data/template) (Templates and Bicep), [`src`](https://github.com/azure/azops/tree/main/src) (Scope Hierarchy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Git Workflows"]
  node_gitrepo[("Git Repository")]
  node_scope_tree["Scope Hierarchy"]
  node_templates["Templates and Bicep"]
end

subgraph group_runtime["AzOps Runtime"]
  node_azops["AzOps Module<br/>[AzOps.psm1]"]
  node_push["Push"]
  node_pull["Pull"]
end

subgraph group_azure["Azure Management"]
  node_arm["Azure Resource Manager"]
  node_azure_scopes["Azure Scopes"]
end

node_operator(("Operator"))

node_operator -->|"manages declaratively"| node_gitrepo
node_gitrepo -->|"represents scopes"| node_scope_tree
node_gitrepo -->|"stores templates"| node_templates
node_operator -->|"deploys with"| node_push
node_templates -->|"deployed by"| node_push
node_push -->|"deploys to"| node_arm
node_arm -->|"targets scopes"| node_azure_scopes
node_operator -->|"exports with"| node_pull
node_pull -->|"exports from"| node_arm
node_pull -->|"writes templates"| node_gitrepo

click node_scope_tree "https://github.com/azure/azops/tree/main/src"
click node_templates "https://github.com/azure/azops/tree/main/src/data/template"
click node_azops "https://github.com/azure/azops/blob/main/src/AzOps.psm1"
click node_push "https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPush.ps1"
click node_pull "https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPull.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_gitrepo,node_scope_tree,node_templates toneBlue
class node_azops,node_push,node_pull toneAmber
class node_arm,node_azure_scopes toneMint
class node_operator toneIndigo
```

## Components

### Git Workflows

- **Git Repository**
- [Scope Hierarchy](https://github.com/azure/azops/tree/main/src): `src`
- [Templates and Bicep](https://github.com/azure/azops/tree/main/src/data/template): `src/data/template`

### AzOps Runtime

- [AzOps Module](https://github.com/azure/azops/blob/main/src/AzOps.psm1): `src/AzOps.psm1`
- [Push](https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPush.ps1): `src/functions/Invoke-AzOpsPush.ps1`
- [Pull](https://github.com/azure/azops/blob/main/src/functions/Invoke-AzOpsPull.ps1): `src/functions/Invoke-AzOpsPull.ps1`

### Azure Management

- **Azure Resource Manager**
- **Azure Scopes**

### Other components

- **Operator**

## Connections

- Operator → Git Repository: manages declaratively (evidence: `README.md`)
- Git Repository → Scope Hierarchy: represents scopes (evidence: `README.md`)
- Git Repository → Templates and Bicep: stores templates (evidence: `README.md`)
- Operator → Push: deploys with (evidence: `README.md`)
- Templates and Bicep → Push: deployed by (evidence: `README.md`)
- Push → Azure Resource Manager: deploys to (evidence: `README.md`)
- Azure Resource Manager → Azure Scopes: targets scopes (evidence: `README.md`)
- Operator → Pull: exports with (evidence: `README.md`)
- Pull → Azure Resource Manager: exports from (evidence: `README.md`)
- Pull → Git Repository: writes templates (evidence: `README.md`)
