# javierjeronimo/azure-policy-deploy-example architecture

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

- Interactive diagram: https://gitdiagram.com/javierjeronimo/azure-policy-deploy-example
- Repository: https://github.com/javierjeronimo/azure-policy-deploy-example

## Overview

This is an Azure Policy deployment example that also demonstrates quality checks. The README establishes those capabilities, but the Terraform and workflow sources were not excerpted, so internal wiring is shown only as unverified; build and package tooling is omitted.

Main entry points: [`main.tf`](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/main.tf) (Terraform config), [`modules/policy-definition`](https://github.com/javierjeronimo/azure-policy-deploy-example/tree/master/modules/policy-definition) (Policy module), [`policies/d1_sta_audit_v1.0.0-rule.json`](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/policies/d1_sta_audit_v1.0.0-rule.json) (Policy rule), [`.github/workflows/terraform.yml`](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/.github/workflows/terraform.yml) (Quality checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Policy deployment"]
  node_terraform["Terraform config<br/>[main.tf]"]
  node_definition["Policy module"]
  node_policy["Policy rule"]
end

subgraph group_quality["Quality checks"]
  node_checks["Quality checks<br/>[terraform.yml]"]
end

node_operator(("Repository user"))
node_azure["Azure Policy"]

node_operator -.->|"configures"| node_terraform
node_terraform -.->|"uses"| node_definition
node_terraform -.->|"deploys"| node_policy
node_terraform -.->|"deploys to"| node_azure
node_operator -.->|"runs"| node_checks

click node_terraform "https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/main.tf"
click node_definition "https://github.com/javierjeronimo/azure-policy-deploy-example/tree/master/modules/policy-definition"
click node_policy "https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/policies/d1_sta_audit_v1.0.0-rule.json"
click node_checks "https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/.github/workflows/terraform.yml"

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_terraform,node_definition,node_policy,node_operator toneBlue
class node_checks toneAmber
class node_azure toneIndigo
```

## Components

### Policy deployment

- [Terraform config](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/main.tf): `main.tf`
- [Policy module](https://github.com/javierjeronimo/azure-policy-deploy-example/tree/master/modules/policy-definition): `modules/policy-definition`
- [Policy rule](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/policies/d1_sta_audit_v1.0.0-rule.json): `policies/d1_sta_audit_v1.0.0-rule.json`

### Quality checks

- [Quality checks](https://github.com/javierjeronimo/azure-policy-deploy-example/blob/master/.github/workflows/terraform.yml): `.github/workflows/terraform.yml`

### Other components

- **Repository user**
- **Azure Policy**

## Connections

- Repository user → Terraform config: configures
- Terraform config → Policy module: uses
- Terraform config → Policy rule: deploys
- Terraform config → Azure Policy: deploys to (evidence: `README.md`)
- Repository user → Quality checks: runs
