ConvertTo-DOTLanguage.ps1:50 / GenericArguments[0] Error on Mac
djclarkson opened this issue · comments
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'.
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
Hi, I have updated my Az module to 10.x and still getting this error :(