diff --git a/AzureResourceInventory.ps1 b/AzureResourceInventory.ps1 index 24c9815..9acaa11 100644 --- a/AzureResourceInventory.ps1 +++ b/AzureResourceInventory.ps1 @@ -2,9 +2,9 @@ # # # * Azure Resource Inventory ( ARI ) Report Generator * # # # -# Version: 3.1.12 # +# Version: 3.1.13 # # # -# Date: 01/19/2024 # +# Date: 02/15/2024 # # # ########################################################################################## <# @@ -442,7 +442,7 @@ param ($TenantID, } } $Global:DefaultPath = if($ReportDir) {$ReportDir} else {"C:\AzureResourceInventory\"} - $Global:DiagramCache = if($ReportDir) {$ReportDir} else {"C:\AzureResourceInventory\DiagramCache\"} + $Global:DiagramCache = if($ReportDir) {($ReportDir+'DiagramCache\')} else {"C:\AzureResourceInventory\DiagramCache\"} LoginSession } } diff --git a/Extras/DrawIODiagram.ps1 b/Extras/DrawIODiagram.ps1 index fee1dd7..4654c2a 100644 --- a/Extras/DrawIODiagram.ps1 +++ b/Extras/DrawIODiagram.ps1 @@ -12,7 +12,7 @@ https://github.com/microsoft/ARI/Extras/DrawIODiagram.ps1 This powershell Module is part of Azure Resource Inventory (ARI) .NOTES -Version: 3.1.0 +Version: 3.1.13 First Release Date: 19th November, 2020 Authors: Claudio Merola and Renato Gregio @@ -23,7 +23,9 @@ $Global:DiagramCache = $DiagramCache $Global:FullEnvironment = $FullEnvironment -$Global:Logfile = 'C:\AzureResourceInventory\DiagramLogFile.log' +$TempPath = $DiagramCache.split("DiagramCache\")[0] + +$Global:Logfile = ($TempPath+'DiagramLogFile.log') Function Network { Param($Subscriptions,$Resources,$Advisories,$DiagramCache,$FullEnvironment,$DDFile,$XMLFiles)