From 53a2e9c7a1b8a4d15377aa25640e611d3b1fba11 Mon Sep 17 00:00:00 2001 From: ivanbuzyka <> Date: Fri, 10 Nov 2017 14:11:12 +0100 Subject: [PATCH 1/2] Fixed reading of the parameters fom parameters JSON file --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c496b4de..2bcb2890 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,11 @@ $additionalParams = New-Object -TypeName Hashtable $params = Get-Content $ArmParametersPath -Raw | ConvertFrom-Json +if ($params.parameters -ne $null) +{ + $params = $params.parameters +} + foreach($p in $params | Get-Member -MemberType *Property) { $additionalParams.Add($p.Name, $params.$($p.Name).value) From 921adea01487c68ffc7e231e3715b86895019e85 Mon Sep 17 00:00:00 2001 From: ivanbuzyka <> Date: Fri, 10 Nov 2017 14:16:54 +0100 Subject: [PATCH 2/2] Fixed the error that New-AzureRmResourceGroupDeployment couldn't validate template because of invalid data in licenseXML parameter --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2bcb2890..c242b57e 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,8 @@ foreach($p in $params | Get-Member -MemberType *Property) $additionalParams.Add($p.Name, $params.$($p.Name).value) } -$additionalParams.licenseXml = $licenseFileContent -$additionalParams.deploymentId = $Name +$additionalParams.Set_Item('licenseXml', $licenseFileContent) +$additionalParams.Set_Item('deploymentId', $Name); # Inject Certificate Blob and Password into the parameters if ($certificateBlob) {