ARI icon indicating copy to clipboard operation
ARI copied to clipboard

Draw.io graph is almost empty

Open klemen-df opened this issue 3 years ago • 5 comments

Hi,

Windows 11 Enterprise 22H2 PSVersion 5.1.22621.963 { "azure-cli": "2.44.1", "azure-cli-core": "2.44.1", "azure-cli-telemetry": "1.0.8", "extensions": { "account": "0.2.5", "aks-preview": "0.5.122", "azure-devops": "0.25.0", "containerapp": "0.3.20", "log-analytics": "0.2.2", "resource-graph": "2.1.0" } }

I run the script like this : .\AzureResourceInventory.ps1 -Diagram -TenantID -Subscription

On the diagram I get :

  • 'On Premises Environment' icon
  • two local network gateways

Debug mode doesn't really output anything useful.

klemen-df avatar Jan 12 '23 10:01 klemen-df

Hello,

By default the diagram will only show the VNETs that are peered with your OnPrem infrastructure.

But there is a way to force the diagram to show every single VNET, you have to edit the file DrawIODiagram.ps1 at the line 23 and change:

$Global:FullEnvironment = $false

to

$Global:FullEnvironment = $true

Claudio-Merola avatar Jan 26 '23 14:01 Claudio-Merola

OK, this explains my experience - I did get most of the environment in my diagram, but a few isolated VNets were missed out. Is that something that could be added as a parameter instead of editing the PS script?

PeterBursky avatar Feb 28 '23 09:02 PeterBursky

For now editing the script is the only way, we might include it as a "hidden" parameter or something in the future.

I'm working in a upgrade for the script, so we might include this as well.

Claudio-Merola avatar Mar 13 '23 12:03 Claudio-Merola

Hello,

We added that feature in the new version 3.0, can you try that and let me know if works?

Thanks

Claudio-Merola avatar May 04 '23 20:05 Claudio-Merola

This Issue is stale and may be automatically close soon.

github-actions[bot] avatar Jun 04 '23 14:06 github-actions[bot]