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.