Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Azure/ALZ-Bicep into patch-…
Browse files Browse the repository at this point in the history
…policy-library
  • Loading branch information
oZakari committed Feb 20, 2025
2 parents 8db45e0 + a8e7803 commit a6512b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/Invoke-PolicyToBicep.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ function New-PolicySetDefinitionsBicepInputTxtFile {
$groups = $($policySetDefinitionsOutputForBicep[$_][1])
$definitionVersion = $($policySetDefinitionsOutputForBicep[$_][2])

# Ensure definitionVersion is always set to ''
# Ensure definitionVersion is always set to '' if empty, otherwise wrap it in single quotes
if ([string]::IsNullOrEmpty($definitionVersion)) {
$definitionVersion = "''"
} else {
$definitionVersion = "'$definitionVersion'"
}

# If definitionReferenceId or definitionReferenceIdForParameters contains apostrophes, replace that apostrophe with a backslash and an apostrophe for Bicep string escaping
Expand Down

0 comments on commit a6512b7

Please sign in to comment.