Add Date() to Resource Group Template Functions
Extending the RG Template Functions to support date and time would allow names, settings, etc. to dynamically include timestamps.
ex. "name": "web-[date('year')]", could return "web-2016"
Would be helpful for scenarios such as setting up daily builds as part of a dev/test scenario, connection strings that may require date configuration, or other times where you don't want to have to go back to a .ps1 or .sh for grabbing dates. Thanks!
Looks like this might be possible now with the date fucntion for those SAS keys?
Greg Lloyd commented
This is desperately needed with the recent implementation of getting SASTokens within ARM Templates. Right now we have to hard code or pass the signedExpiry value. With this we, assuming we can do an add, we cast the signedExpiry to a future date making templates very dynamic and reducing the number of parameters.
Patrick Picard commented
+1 on needing this. Especially when deploying SAS keys...we want to put those out a few years.
Same for automation runbooks, start dates always have to be in the future
Agreed with James as we need to manipulate the serviceSAS in ARM template.
James Kerens commented
This would help with blob calls as well like when you need to do a listAccountSas and pass in this SAS property.
Date() with Unix format function would be useful.
Justin Clareburt commented
I would like to use this feature in an ARM template for an ASP.NET VM to append to DNS label when generating the DNS name.
I am in dire need of this functionality.