I am using utcNow() in resource tags, But instead of getting the date and time, am getting the "[utcNow()]" only again. Below is the format am using it Arm template.
ARM Template parameters:
"resourceTags": {
"type": "object"
}
parameters.json value:
"resourceTags": {
"value": {
"criticality": "Tier1",
"applicationName": "Devzone",
"owner": "abcd",
"costCenter": "1234",
"contactEmail": "abcd@gmail.com",
"dataClassification": "Confidential",
"environment": "Dev",
"CreatedDate": "[utcNow()]"
}
}
I tried to use in the pipeline variable groups. Still am getting the same "[utcNow()]" instead of value.
What am I doing wrong? How can I get utcNow() substituted?