# scautomation/workbook-costmanagement-example architecture

> Architecture diagram of the GitHub repository scautomation/workbook-costmanagement-example, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/scautomation/workbook-costmanagement-example
- Repository: https://github.com/scautomation/workbook-costmanagement-example

## Overview

This repository is a small Azure Cost Management example workbook, not an application codebase. Its documented purpose is to demonstrate querying and parameterizing a JSON body in Azure Workbooks for cost-data visualizations. The tree contains separate ARM and gallery template files, but no source excerpts explain how they are consumed or wired together, so those relationships are not inferred.

Main entry points: [`galleryTemplate/template.json`](https://github.com/scautomation/workbook-costmanagement-example/blob/master/galleryTemplate/template.json) (Gallery template)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Workbook user"))
node_arm_template["ARM template<br/>[template.json]"]
node_gallery_template["Gallery template<br/>[template.json]"]
node_workbooks["Azure Workbooks"]
node_cost_management[("Azure Cost Management")]

node_user -->|"views visualizations"| node_workbooks
node_gallery_template -->|"example workbook"| node_workbooks
node_workbooks -->|"queries cost data"| node_cost_management

click node_arm_template "https://github.com/scautomation/workbook-costmanagement-example/blob/master/armTemplate/template.json"
click node_gallery_template "https://github.com/scautomation/workbook-costmanagement-example/blob/master/galleryTemplate/template.json"

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_user toneBlue
class node_arm_template,node_gallery_template toneTeal
class node_workbooks toneIndigo
class node_cost_management toneAmber
```

## Components

### Other components

- **Workbook user**
- [ARM template](https://github.com/scautomation/workbook-costmanagement-example/blob/master/armTemplate/template.json): `armTemplate/template.json`
- [Gallery template](https://github.com/scautomation/workbook-costmanagement-example/blob/master/galleryTemplate/template.json): `galleryTemplate/template.json`
- **Azure Workbooks**
- **Azure Cost Management**

## Connections

- Workbook user → Azure Workbooks: views visualizations
- Gallery template → Azure Workbooks: example workbook
- Azure Workbooks → Azure Cost Management: queries cost data
