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

ConvertTo-DOTLanguage.ps1:50 / GenericArguments[0] Error on Mac #105

Open djclarkson opened 1 year ago

djclarkson commented 1 year ago

On an intel Macbook.

Get-AzVirtualNetwork: /Users/xxxxxxxx/.local/share/powershell/Modules/AzViz/1.2.1/src/private/ConvertTo-DOTLangauge.ps1:50
Line |
  50 |  …    $VNets = Get-AzVirtualNetwork -ResourceGroupName $Target.Name -Ver …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | GenericArguments[0], 'Microsoft.Azure.Management.Network.Models.SecurityRule', on 'T MaxInteger[T](System.Collections.Generic.IEnumerable`1[T])'
     | violates the constraint of type 'T'.
Greven145 commented 1 year ago

This repo appears to be abandoned, but for anyone trying to use it as we are, the solution here was to update our AZ powershell module. 9.6.0 eliminated this error

YichenTFlexciton commented 12 months ago

Hi, I have updated my Az module to 10.x and still getting this error :(