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

Error formatting a string: Index (zero based) must be greater... #115

Open
leolegenie opened this issue Mar 10, 2023 · 0 comments
Open

Error formatting a string: Index (zero based) must be greater... #115

leolegenie opened this issue Mar 10, 2023 · 0 comments

Comments

@leolegenie
Copy link

Hello

First of all thanks for providing this very nice utility!

We experience the error below with one of our resource groups.

It only appears when we set Category Depth to 2 AND Label Verbosity to 2.

When we only set Category Depth to 2 with Label Verbosity 1 it works. And also the other way round.

We then tried to filter out the types to pinpoint which one is probelmatic and it seems to be:

microsoft.compute/virtualmachinescalesets/virtualmachines (so the VMs of a Virtual Machine Scale Set).

If we exclude that the error does not appear. Interestingly the scale set is still visible even if we filter (at least partially).

Get-ImageNode: /home/user/.local/share/powershell/Modules/AzViz/1.2.1/src/private/ConvertTo-DOTLangauge.ps1:182
Line |
 182 |  …   $nodes += Get-ImageNode -Name "$tocateg/$to".tolower() -Rows ($to,  …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the
     | argument list..

Regards, Leo

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

1 participant