From dc6b94bbf9b9a619a43ed1cfc897cdc59f729251 Mon Sep 17 00:00:00 2001 From: "J.R. Phillips" Date: Mon, 13 Jan 2025 20:05:35 -0700 Subject: [PATCH] Update Deploy-FinOpsHub.ps1 when expressing a [switch] as a boolean in a hashtable you need to express the .IsPresent property. enableInfrastructureEncryption was being parsed as an object rather than a boolean causing the error: Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The provided value for the template parameter 'enableInfrastructureEncryption' is not valid. Expected a value of type 'Boolean', but received a value of type 'Object'. --- src/powershell/Public/Deploy-FinOpsHub.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powershell/Public/Deploy-FinOpsHub.ps1 b/src/powershell/Public/Deploy-FinOpsHub.ps1 index ab79eadef..6c2ed4b47 100644 --- a/src/powershell/Public/Deploy-FinOpsHub.ps1 +++ b/src/powershell/Public/Deploy-FinOpsHub.ps1 @@ -211,7 +211,7 @@ function Deploy-FinOpsHub if ($Version -eq 'latest' -or [version]$Version -ge '0.7') { - $parameterSplat.TemplateParameterObject.Add('enableInfrastructureEncryption', $EnableInfrastructureEncryption) + $parameterSplat.TemplateParameterObject.Add('enableInfrastructureEncryption', $EnableInfrastructureEncryption.IsPresent) $parameterSplat.TemplateParameterObject.Add('dataExplorerName', $DataExplorerName) $parameterSplat.TemplateParameterObject.Add('dataExplorerSku', $DataExplorerSku) $parameterSplat.TemplateParameterObject.Add('dataExplorerCapacity', $DataExplorerCapacity)