How can we improve the Azure Resource Manager?

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!

285 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Steven Follis shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

7 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Greg Lloyd commented  ·   ·  Flag as inappropriate

    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  ·   ·  Flag as inappropriate

    +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

  • don commented  ·   ·  Flag as inappropriate

    Agreed with James as we need to manipulate the serviceSAS in ARM template.

  • James Kerens commented  ·   ·  Flag as inappropriate

    This would help with blob calls as well like when you need to do a listAccountSas and pass in this SAS property.

    "accountSasProperties": {
    "defaultValue": {
    "signedServices": "b",
    "signedPermission": "r",
    "signedExpiry": "2018-12-28T11:42:03.1567373Z",
    "signedResourceTypes": "o"
    }
    }

  • Justin Clareburt commented  ·   ·  Flag as inappropriate

    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.

Feedback and Knowledge Base