From 6f21e8406c0881e6a8e369ff8e847979a4d7ecf9 Mon Sep 17 00:00:00 2001 From: Ednei Monteiro Date: Sun, 8 May 2022 00:50:53 -0300 Subject: [PATCH] Adjustment in resource parameter serialization --- AzureResourceInventory.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AzureResourceInventory.ps1 b/AzureResourceInventory.ps1 index fe35149..9402dd1 100644 --- a/AzureResourceInventory.ps1 +++ b/AzureResourceInventory.ps1 @@ -729,7 +729,7 @@ param ($TenantID, [switch]$SecurityCenter, $SubscriptionID, $Appid, $Secret, $Re $ScriptBlock = [Scriptblock]::Create($ModuSeq) - $DrawRun = ([PowerShell]::Create()).AddScript($ScriptBlock).AddArgument($($args[1])).AddArgument($($args[2])).AddArgument($($args[3])).AddArgument($($args[4])) + $DrawRun = ([PowerShell]::Create()).AddScript($ScriptBlock).AddArgument($($args[1])).AddArgument($($args[2] | ConvertFrom-Json)).AddArgument($($args[3])).AddArgument($($args[4])) $DrawJob = $DrawRun.BeginInvoke() @@ -739,7 +739,7 @@ param ($TenantID, [switch]$SecurityCenter, $SubscriptionID, $Appid, $Secret, $Re $DrawRun.Dispose() - } -ArgumentList $PSScriptRoot, $Subscriptions, $Resources, $Advisories, $DDFile, $RunOnline, $Repo, $RawRepo | Out-Null + } -ArgumentList $PSScriptRoot, $Subscriptions, ($Resources | ConvertTo-Json -Depth 50), $Advisories, $DDFile, $RunOnline, $Repo, $RawRepo | Out-Null } <######################################################### VISIO DIAGRAM JOB ######################################################################>