Azure Visualizer aka 'AzViz' - PowerShell module to automatically generate Azure resource topology diagrams by just typing a PowerShell cmdlet and passing the name of one or more Azure Resource Group(s).
Cloud admins are not anymore doomed to manually document a cloud environment! The pain of inheriting an undocumented cloud landscape to support is gone ๐๐ so please share this project with your colleagues and friends.
It is capable of:
- Finding Resources in a Azure Resource Group and identifying their dependencies.
- Plot nodes and edges to represent Azure Resources and their dependencies on a graph.
- Insert appropriate Azure Icons on basis of resource category/sub-category.
- Label each resource with information like Name, Category, Type etc.
- Generate visualization in formats like: .png and .svg
- Output image can be in 'light', 'dark' or 'neon' theme.
- Can target more than one resource group at once.
- Change direction in which resource groups are plotted, i.e, left-to-right or top-to-bottom.
# clone the project from github
git clone https://github.com/PrateekKumarSingh/AzViz.git
Set-Location .\AzViz\
# import the powershell module
Import-Module .\AzViz.psm1 -Verbose
# login to azure
Connect-AzAccount
# target single resource group
Get-AzViz -ResourceGroups demo-2 -Theme light -Verbose -OutputFormat png -ShowVisualization
# target single resource group with more sub-categories
Get-AzViz -ResourceGroups demo-2 -Theme light -Verbose -OutputFormat png -ShowVisualization -CategoryDepth 2
# target multiple resource groups
Get-AzViz -ResourceGroups demo-2, demo-3 -LabelVerbosity 1 -CategoryDepth 1 -Theme light -Verbose -ShowVisualization -OutputFormat png
# adding more information in resource label like: Name, type, Provider etc
Get-AzViz -ResourceGroups demo-2 -Theme light -Verbose -OutputFormat png -ShowVisualization -LabelVerbosity 2