From 945d01b4d41cb933a2a3cdea0ea9c39396972971 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Sat, 27 Sep 2025 09:34:04 +0100 Subject: [PATCH] fix: nested array handling for bicep --- src/ALZ/Private/Config-Helpers/Set-Config.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ALZ/Private/Config-Helpers/Set-Config.ps1 b/src/ALZ/Private/Config-Helpers/Set-Config.ps1 index f913451..90eb91c 100644 --- a/src/ALZ/Private/Config-Helpers/Set-Config.ps1 +++ b/src/ALZ/Private/Config-Helpers/Set-Config.ps1 @@ -54,9 +54,12 @@ function Set-Config { Write-Verbose "Input config item value type pre-standardization: $inputConfigItemValueType" # Convert to standard type - $inputConfigItemValue = $inputConfigItemValue | ConvertTo-Json | ConvertFrom-Json + $inputConfigItemValueJson = ConvertTo-Json -InputObject $inputConfigItemValue -Depth 100 + Write-Verbose "Input config item value pre-standardization: $inputConfigItemValueJson" + $inputConfigItemValue = ConvertFrom-Json -InputObject $inputConfigItemValueJson -Depth 100 -NoEnumerate $inputConfigItemValueType = $inputConfigItemValue.GetType().FullName Write-Verbose "Input config item value type post-standardization: $inputConfigItemValueType" + Write-Verbose "Input config item value post-standardization: $(ConvertTo-Json $inputConfigItemValue -Depth 100)" $indexString = $indexSplit[1].Replace("`"", "").Replace("'", "") Write-Verbose "Using index $indexString for input config item $inputConfigName"