# microsoft/azure_arc architecture

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

- Interactive diagram: https://gitdiagram.com/microsoft/azure_arc
- Repository: https://github.com/microsoft/azure_arc

## Overview

##### Project Type and Purpose
- This repository is not a conventional full-stack application but a collection of automation scripts, ARM/Bicep templates, Terraform code, Helm charts, and supporting scripts. Its purpose is to provide “jumpstart” deployments for Azure Arc–enabling various workloads (data services, Kubernetes, servers, SQL servers, etc.) to be managed and onboarded with Azure Arc.
- The readme clearly explains that this is the backend automation source that complements a separate documentation repository.

##### Analyzing the File Structure
- Key top-level directories include:
– arc_data_services: Contains charts, CRDs, and deployment manifests for Arc data services.
– azure_arc_…_jumpstart directories (such as azure_arc_app_services_jumpstart, azure_arc_data_jumpstart, azure_arc_k8s_jumpstart, azure_arc_servers_jumpstart, azure_arc_sqlsrv_jumpstart, azure_arc_vsphere_jumpstart, etc.): Each targets a specific deployment scenario for Azure Arc.
– Documentation and support files (README, CONTRIBUTING, policies, workflows): These are used for CI/CD and community contributions.
– .devcontainer, .github, and pipelines: These indicate environment setup and automation testing—hinting at CI/CD integration.
- The repository encompasses a very modular design with each “jumpstart” category having its own sub-directory that contains either ARM/bicep templates, Terraform modules, PowerShell scripts, or Helm/other IaC components.

##### Main Components
a. Automation Modules:
b. CI/CD and Infrastructure Integration:
– Include a component for CI/CD pipelines represented by the .github/workflows and azure-pipelines.yml files. This block shows automated builds, testing, and deployment of the automation scripts.
c. External Dependencies and Tools:
– Highlight integration with GitHub actions (using labels like GitHub Workflows for branch management, testing automation, etc.)
– Represent external tools such as containerization (the devcontainer files), GitOps components (Helm chart deployments, GitOps scripts), and possibly integration with Azure (indicating the usage of Azure Resource Manager and Azure Arc services).
d. Deployment Targets / Environments:

##### Relationships and Interactions
- Dependencies between shared templates or libraries (for example, common scripts used across multiple jumpstart modules).

##### Architectural Patterns and Design Principles
- Modularity: each jumpstart solution is its own module with its own set of templates and scripts.
- Use a layered approach: external integration (CI/CD and source control) on the top layer, automation modules in the middle, and target deployment environments at the bottom.
- Use of Infrastructure-as-Code (IaC) as the main design principle; represent blocks for ARM/bicep, Terraform, and script execution.
- The repository follows the “toolkit” model where changes in one module (e.g., for Arc data services) may be tested independently and then integrated via shared CI/CD pipelines.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% CI/CD and Integration Layer
    subgraph "CI/CD and Integration"
        CICD["CI/CD Pipeline\n(.github/workflows & azure-pipelines.yml)"]:::cicd
        DevCont["Containerization & Dev Setup\n(.devcontainer)"]:::external
    end

    %% Automation Modules Layer
    subgraph "Automation Modules"
        ADM1["Arc Data Services Module\n(ARM templates & Helm Charts)"]:::automation
        ADM2["Arc App Services Jumpstart Module\n(IaC & Scripts)"]:::automation
        ADM3["Arc Data Jumpstart Module\n(IaC & Scripts)"]:::automation
        ADM4["Arc Kubernetes Jumpstart Module\n(Terraform & Shell Scripts)"]:::automation
        ADM5["Arc ML Jumpstart Module\n(IaC & Scripts)"]:::automation
        ADM6["Arc Servers Jumpstart Module\n(PowerShell/Unix Scripts)"]:::automation
        ADM7["Arc SQL Server Jumpstart Module\n(IaC & Scripts)"]:::automation
        ADM8["Arc vSphere Jumpstart Module\n(IaC & Templates)"]:::automation
        ADM9["Azure Edge IoT Ops Jumpstart Module\n(IaC & Scripts)"]:::automation
    end

    %% Deployment Artifacts Node
    Deployment["Deployment Artifacts"]:::automation

    %% Target Deployment Environments Layer
    subgraph "Target Deployment Environments"
        T1["Public Cloud\n(Azure, AWS, GCP)"]:::environment
        T2["On-Premises\n(vSphere, local VMs)"]:::environment
        T3["Hybrid Deployments\n(IoT Edge, Servers)"]:::environment
    end

    %% Connections from Integration to Automation Modules
    DevCont --> CICD
    CICD --> ADM1
    CICD --> ADM2
    CICD --> ADM3
    CICD --> ADM4
    CICD --> ADM5
    CICD --> ADM6
    CICD --> ADM7
    CICD --> ADM8
    CICD --> ADM9

    %% Connections from Automation Modules to Deployment Artifacts
    ADM1 --> Deployment
    ADM2 --> Deployment
    ADM3 --> Deployment
    ADM4 --> Deployment
    ADM5 --> Deployment
    ADM6 --> Deployment
    ADM7 --> Deployment
    ADM8 --> Deployment
    ADM9 --> Deployment

    %% Connections from Deployment Artifacts to Target Deployment Environments
    Deployment --> T1
    Deployment --> T2
    Deployment --> T3

    %% Click Events
    click ADM1 "https://github.com/microsoft/azure_arc/tree/main/arc_data_services"
    click ADM2 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_app_services_jumpstart"
    click ADM3 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_data_jumpstart"
    click ADM4 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_k8s_jumpstart"
    click ADM5 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_ml_jumpstart"
    click ADM6 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_servers_jumpstart"
    click ADM7 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_sqlsrv_jumpstart"
    click ADM8 "https://github.com/microsoft/azure_arc/tree/main/azure_arc_vsphere_jumpstart"
    click ADM9 "https://github.com/microsoft/azure_arc/tree/main/azure_edge_iot_ops_jumpstart"
    click CICD "https://github.com/microsoft/azure_arc/blob/main/.github/workflows and azure-pipelines.yml"
    click DevCont "https://github.com/microsoft/azure_arc/blob/main/.devcontainer"

    %% Styles
    classDef cicd fill:#f9e79f,stroke:#f7dc6f,stroke-width:2px;
    classDef automation fill:#aed6f1,stroke:#85c1e9,stroke-width:2px;
    classDef environment fill:#abebc6,stroke:#27ae60,stroke-width:2px;
    classDef external fill:#f5b7b1,stroke:#e74c3c,stroke-width:2px;
```
