# anftechteam/terraform-avg architecture

> Architecture diagram of the GitHub repository anftechteam/terraform-avg, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anftechteam/terraform-avg
- Repository: https://github.com/anftechteam/terraform-avg

## Overview

##### Project type and purpose
- This is an Infrastructure-as-Code (IaC) Terraform example repository for provisioning and managing Azure NetApp Files application volume groups (AVGs), specifically demonstrating destination AVG creation for Oracle workloads.

##### File structure
- Top-level files:
- README.md – describes purpose and usage
- LICENSE, .gitignore – repo metadata
- Directory “oracle‐destination‐avg”: contains the Terraform configuration for one example
- provider.tf – configures the AzureRM provider (credentials, subscription, region)
- variables.tf – declares inputs (resource group, NetApp account, pool IDs, volume names, etc.)
- terraform.tfvars.sample – sample values for variables
- destination_avg.tf – resource blocks that create the application volume group and destination volumes

##### README for additional insights
- Describes prerequisites: Terraform CLI, Azure credentials, ANF (Azure NetApp Files) enabled
- Usage workflow: init → plan → apply → destroy
- Highlights that this example shows cross-zone or cross-region replication destination volumes

## Diagram (Mermaid)

```mermaid
flowchart TB
    classDef onprem fill:#c6f6d5,stroke:#2f855a,color:#22543d;
    classDef azure fill:#bee3f8,stroke:#2b6cb0,color:#2c5282;
    classDef config fill:#fefcbf,stroke:#d69e2e,color:#975a16;
    classDef doc fill:#e2e8f0,stroke:#4a5568,color:#2d3748;

    subgraph "Developer Side"
        Dev["Developer Machine (Terraform CLI)"]:::onprem
        subgraph "Project Documentation"
            README["README.md"]:::doc
            License["LICENSE"]:::doc
            Gitignore[".gitignore"]:::doc
        end
        subgraph "Terraform Configurations"
            Prov["provider.tf"]:::config
            Vars["variables.tf"]:::config
            TFV["terraform.tfvars.sample"]:::config
            Dest["destination_avg.tf"]:::config
        end
    end

    TerraformCore["Terraform Core"]:::onprem
    AzureRM["AzureRM Provider"]:::onprem
    ARM["Azure ARM API"]:::azure

    subgraph "Azure NetApp Files Deployment"
        RG["Resource Group"]:::azure
        ANF["NetApp Account"]:::azure
        Pool["Capacity Pool"]:::azure
        AVG["Application Volume Group"]:::azure
        Vols["Destination Volumes"]:::azure
    end

    Dev --> TerraformCore
    Dev --> Prov
    Dev --> Vars
    Dev --> TFV
    Dev --> Dest

    Prov --> TerraformCore
    Vars --> TerraformCore
    TFV --> TerraformCore
    Dest --> TerraformCore

    TerraformCore --> AzureRM
    AzureRM --> ARM
    ARM --> RG
    RG --> ANF
    ANF --> Pool
    Pool --> AVG
    AVG --> Vols

    click README "https://github.com/anftechteam/terraform-avg/blob/main/README.md"
    click License "https://github.com/anftechteam/terraform-avg/tree/main/LICENSE"
    click Gitignore "https://github.com/anftechteam/terraform-avg/blob/main/.gitignore"
    click Prov "https://github.com/anftechteam/terraform-avg/blob/main/oracle-destination-avg/provider.tf"
    click Vars "https://github.com/anftechteam/terraform-avg/blob/main/oracle-destination-avg/variables.tf"
    click TFV "https://github.com/anftechteam/terraform-avg/blob/main/oracle-destination-avg/terraform.tfvars.sample"
    click Dest "https://github.com/anftechteam/terraform-avg/blob/main/oracle-destination-avg/destination_avg.tf"
```
