How can we improve the Azure Resource Manager?

conditional output from ARM template

ARM template supports condition for resources which is a great feature. I can now include a storage account resource in the ARM template, but it will only be created under certain condition. However, if I would like to output the storage account's keys using reference() function, there will be an error when the resource isn't actually created. This would cause a deployment failure and no other output will be returned.

I would love to have the ability to set conditions on outputs so the reference() function won't be evaluated if the condition is not met.

32 votes
Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Chris Wu shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base