Open karpikpl opened 7 months ago
@karpikpl Thanks for reporting the issue. Can you confirm you are using a key vault reference in the calling deployment or parameter file?
I'm using a parameter file in the deployment. It has tokenized values, so it looks something like this:
"sqlAdminLogin": {
"value": "__sqlAdminLogin__"
},
but I've been running TemplateAnalyzer
with the param file and without it - same results.
My first thought was that analyzers don't know that values are not hardcoded but tokenized, it doesn't seem to be the case.
Ok thanks for that @karpikpl. Let me investigate these bugs and get back to you.
Is there an update on this issue or a suggested work around? I have tested on PSRule 1.37.0 and am also encountering this issue.
@BernieWhite following up again as I have tested with version 1.20 where this issue was reportedly first resolved but I still encountered the same error.
Existing rule
AZR-000284
Description of the issue
When creating SQL server
AZR-000284
andAZR-000316
are raised for username and password, even though they are passed asSecure
in bicep.This is similar to #1762
Error messages
Reproduction
main.bicep
modules/sqlDatabase.bicep
Version of PSRule
2.9.0
Version of PSRule for Azure
1.33.2
Additional context
I'm testing using
TemplateAnalyzer
- latest version. Version ofMicrosoft.PSRule.Rules.Azure.Core.dll
is1.33.2.0