PrateekKumarSingh / AzViz

⚡ ☁ Azure Visualizer aka 'AzViz' : A #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 groups
MIT License
587 stars 146 forks source link

Error: SubGraph is not recognized #42

Closed jrachwalski closed 3 years ago

jrachwalski commented 3 years ago

Command: Export-AzViz -ResourceGroup "test-rg" -Theme light -OutputFormat png -Show

Error:

ConvertTo-DOTLanguage: /Users/jaredr/Documents/Repos/AzViz/AzViz/src/public/Export-AzViz.ps1:269:18
Line |
 269 |  …    $graph = ConvertTo-DOTLanguage -TargetType $TargetType -Targets $T …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'SubGraph' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling
     | of the name, or if a path was included, verify that the path is correct and try again.
jrachwalski commented 3 years ago

Fixed by running:

# Install PSGraph from the Powershell Gallery
Find-Module PSGraph | Install-Module

# Import Module
Import-Module PSGraph

I mistaken thought brew install graphviz was enough.