Skip to content

Commit c387714

Browse files
Code fix for compatibility with schema-aware parameter files
1 parent efb750f commit c387714

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ $additionalParams = New-Object -TypeName Hashtable;
4444
4545
$params = Get-Content $ArmParametersPath -Raw | ConvertFrom-Json;
4646
47+
if ($params.parameters -ne $null) {
48+
$params = $params.parameters
49+
}
50+
4751
foreach($p in $params | Get-Member -MemberType *Property)
4852
{
4953
$additionalParams.Add($p.Name, $params.$($p.Name).value);

0 commit comments

Comments
 (0)