⚡ ☁ 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-PSGraph System error when $OFS is not " " #106
My $OFS is set to "|||". When I run Export-AzViz, I get the following error:
Error: : syntax error in line 1 near '|'
Export-PSGraph: C:\Users...\PowerShell\Modules\AzViz\1.2.1\src\public\Export-AzViz.ps1:274
Line |
274 | "@ | Export-PSGraph -ShowGraph:$Show -OutputFormat $OutputFormat -Des …
| ~~~~~~~~~~~~~~~~
| System error.
If I change my $OFS back to " " like a default install, then it works. Issue looks to be that $graph is an array. Fix should be doing something like $($graph -join ' ') instead.
My
$OFS
is set to "|||". When I runExport-AzViz
, I get the following error:Error:: syntax error in line 1 near '|'
Export-PSGraph: C:\Users...\PowerShell\Modules\AzViz\1.2.1\src\public\Export-AzViz.ps1:274 Line | 274 | "@ | Export-PSGraph -ShowGraph:$Show -OutputFormat $OutputFormat -Des … |
~~~~~~~~~~~~~~~~ | System error.If I change my $OFS back to " " like a default install, then it works. Issue looks to be that $graph is an array. Fix should be doing something like
$($graph -join ' ')
instead.