rfernandezdo/Azure Infrastructure Diagrams for Draw.io
Generate dynamic Azure infrastructure diagrams from real Azure resources and export as draw.io files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Feb 3, 2026
- License
- Apache 2.0
Pinned Snippet
uses: rfernandezdo/inventariographdrawio@545dfb92667d3309e21197f227896a135dce03b2 # v2.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| diagram-mode | Type of diagram to generate: infrastructure (default), components, network, all | no | infrastructure |
| output-path | Path for the generated draw.io file | no | azure-infrastructure-diagram.drawio |
| tenant-filter | Filter resources by specific Tenant ID | no | — |
| all-tenants | Include resources from all tenants (disables automatic tenant filtering) | no | false |
| no-embed-data | Do not embed all data in nodes, only the type field | no | false |
| no-hierarchy-edges | In network mode, hide hierarchical edges (RGs and VNet-Subnet) keeping network dependencies | no | false |
| include-ids | Space-separated list of management group, subscription or resource group IDs to include (and their descendants) | no | — |
| exclude-ids | Space-separated list of management group, subscription or resource group IDs to exclude (and their descendants) | no | — |
| export-json | Export data to JSON file for later processing | no | — |
| commit-changes | Whether to commit the generated diagram files. Options: none, push, pr | no | none |
| target-branch | Target branch for committing changes (when commit-changes is push or pr) | no | main |
| pr-title | Title for the pull request (when commit-changes is pr) | no | Update Azure Infrastructure Diagrams |
| pr-body | Body for the pull request (when commit-changes is pr) | no | Automated update of Azure infrastructure diagrams generated from current Azure resources. |
| commit-message | Commit message for the changes | no | Update Azure infrastructure diagrams |
Outputs
| name | description |
|---|---|
| diagram-path | Path to the generated draw.io diagram file |
| json-export-path | Path to the exported JSON file (if export-json was specified) |
| total-resources | Total number of resources found |
| total-dependencies | Total number of dependencies found |
| tenant-id | Tenant ID used for filtering (if applicable) |
| pr-number | Pull request number (if commit-changes is pr and PR was created) |
| commit-sha | Commit SHA of the changes (if commit-changes is push or pr) |