microsoft / ARI

Azure Resource Inventory - It's a Powerful tool to create EXCEL inventory from Azure Resources with low effort
MIT License
1.08k stars 392 forks source link

version 3.1.14 not producing any output in a simple environment without these changes. #179

Closed naimco closed 5 months ago

naimco commented 5 months ago

Running the script in our our simple QA environment with only 507 items the generated excel report was just black. Running from Windows in powershell or powershell_ise
azure-cli, 2.59.0 Resource-Graph Extension Version: 1.0.0

In script AzureResourceInventory.ps1 the following changes were required :

line 636 changed from
$EnvSizeNum = $EnvSize.data.'count' # Original to
$EnvSizeNum = $EnvSize.'count
'

then line 650 :
$Global:Resources += $Resource.data # Original to $Global:Resources += $Resource

naimco commented 5 months ago

Never mind my issues were caused by having Resource-Graph version 1.0.0 installed instead of 2.1.0. Disregard my bug report.