Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
djclarkson opened this issue Nov 10, 2022 · 2 comments
Open

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

djclarkson opened this issue Nov 10, 2022 · 2 comments

Comments

@djclarkson
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants