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

Export-AzResourceGroup - An error occurred while sending the request. Line 55 #109

Open Svyatk0 opened 1 year ago

Svyatk0 commented 1 year ago

Hiya. i have used this tool successfully few days ago visualizing the exact same resource group. Today all of a sudden i am getting the below error. I am running this in Win11

I have tried signing out and back in, switching back to PWShell 7.2 but without success, reinstalling for some smaller groups it still works but for the larger ones (~50 resources) i am now getting this error. Any suggestions/help appreciated.

` Export-AzViz -ResourceGroup core-cloud -Theme dark -Show -OutputFormat png -CategoryDepth 2

█████╗ ███████╗██╗   ██╗██╗███████╗

██╔══██╗╚══███╔╝██║ ██║██║╚══███╔╝ Author : Prateek Singh (Twitter @singhprateik) ███████║ ███╔╝ ██║ ██║██║ ███╔╝ Module : Azure Visualizer v1.2.1 ██╔══██║ ███╔╝ ╚██╗ ██╔╝██║ ███╔╝ Github : https://github.com/PrateekKumarSingh/AzViz ██║ ██║███████╗ ╚████╔╝ ██║███████╗ Document : https://azviz.readthedocs.io ╚═╝ ╚═╝╚══════╝ ╚═══╝ ╚═╝╚══════╝ ▶ Testing Graphviz installation... 534ms ▶ GraphViz installation path : C:\Program Files\Graphviz\bin\dot.exe ▶ Configuring Defaults... 553ms ▶ Target Type : Azure Resource Group ▶ Output Format : png ▶ Exluded Resource Types : ▶ Output File Path : C:\Users\user\AppData\Local\Temp\output.png ▶ Label Verbosity : 1 ▶ Category Depth : 2 ▶ Sub-graph Direction : top-to-bottom ▶ Theme : dark ▶ Launch Visualization : True ▶ Target Azure Resource Groups... 585ms ▶ core-cloud ▶ Starting to generate Azure visualization... 590ms ▶ Exporting network associations for resource group: 'core-cloud' ▶ Network watcher not found for resource group: 'core-cloud' ▶ Exporting ARM template of Azure resource group: 'core-cloud'

Export-AzResourceGroup: D:\OneDrive\Documents\PowerShell\Modules\AzViz\1.2.1\src\private\ConvertFrom-ARM.ps1:55 Line | 55 | … template = (Export-AzResourceGroup -ResourceGroupName $Target -SkipAl … | ~~~~~~~~~~~~~ | An error occurred while sending the request. `