Azure / arm-ttk

Azure Resource Manager Template Toolkit
https://aka.ms/arm-ttk
MIT License
446 stars 190 forks source link

Create Outputs-Cannot-Contain-ListKeys-Variables.json #735

Closed dciborow closed 1 year ago

dciborow commented 1 year ago

Add example of case that is expected to fail.

@bmoore-msft, per the discussion over here seems that in Bicep, when the output of listKeys is assigned to a variable, and then an output, no alert is triggered. But, I thought I had seen ARM-TTK properly catch this in the past.... Proposing this test case to confirm or deny my memory.

If this test case passes, we could merge this PR in as confirmation. But if it fails, I expect the fix would be done on the bicep side.

dciborow commented 1 year ago

Oops, looks like ARM-TTK won't catch this case after all.

psah434 commented 1 year ago

Output cannot have secrets.