Search code examples
azureunix-timestampazure-keyvaultazure-rm-template

How to generate unix timestamp in Azure ARM Template


I am creating an ARM template to provision keyvault and it's secrets. I want to generate unix timestamp inside template and supply to nbf and exp attributes which only take integers. Can't find much pointers on this.

i am referring to microsoft documentation https://learn.microsoft.com/en-us/azure/templates/microsoft.keyvault/vaults/secrets

If no solution in ARM template then i need to use powershell to generate and pass it to template which i may not prefer unless there is no other option.


Solution

  • There is no way to generate those with ARM templates. arm templates do not have a way to work with date\time