Skip to content

Commit e2166f0

Browse files
Fix issue where json encoding is wrong in PS5 (#7538)
1 parent 8f4a997 commit e2166f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/GenerateResourcesAndImage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Function GenerateResourcesAndImage {
278278
$builderScriptPath_temp = $builderScriptPath.Replace(".json", "-temp.json")
279279
$packer_script = Get-Content -Path $builderScriptPath | ConvertFrom-Json
280280
$packer_script.builders | Add-Member -Name "azure_tags" -Value $Tags -MemberType NoteProperty
281-
$packer_script | ConvertTo-Json -Depth 3 | Out-File $builderScriptPath_temp
281+
$packer_script | ConvertTo-Json -Depth 3 | Out-File -Encoding Ascii $builderScriptPath_temp
282282
$builderScriptPath = $builderScriptPath_temp
283283
}
284284
}

0 commit comments

Comments
 (0)