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
584 stars 146 forks source link

Executable for Mac not available / documented #89

Open nishant-vashisth opened 2 years ago

nishant-vashisth commented 2 years ago

I'm trying to use this with a mac, and after installing it from brew

brew install graphviz

When I try to execute the How To Command, I get executable not found

Export-AzViz -ResourceGroup demo-2 -Theme light -OutputFormat png -Show
-bash: Export-AzViz: command not found

The documentation unfortunately doesn't point to if the executable is different in case of Mac installation.

P.S. While this is a powershell module, I'm presuming that Mac is supported since mac installation command was provided.

moiaune commented 2 years ago

According to your error message you are trying to run Export-AzViz command from bash. You must run it from within pwsh on a Mac.

If you have pwsh installed on your mac you can just type pwsh into the terminal to start a Powershell session. And from there you can run Export-AzViz.