An expression that includes string() wrapped into single quotes produces incorrect result. See the correct result produced by az deployment group create --what-if ... command.
Error messages
The result of running repro steps below is incorrect - single quotes withing debug property should not be duplicated:
Existing rule
No response
Description of the issue
An expression that includes string() wrapped into single quotes produces incorrect result. See the correct result produced by az deployment group create --what-if ... command.
Error messages
The result of running repro steps below is incorrect - single quotes withing
debug
property should not be duplicated:Reproduction
Create bug.bicep:
From powershell run:
Running
az deployment group create --what-if -x Ignore --subscription <SUB-ID> -g <RG-NAME> -f bug.bicep
produces the expected result:Version of PSRule
2.9.0
Version of PSRule for Azure
1.31.3
Additional context