Resources created in Azure are not by default tagged with a creation date property. Adding this tag is great for auditing purposes.
Its important to keep track whom and when resources are deployed for chargeback and accountability purposes. Applying this CreatedOnDate tag to a resource will exist for the life of the resource, especially since the Azure Monitor default retention period is only 90 days and instead of provisioning Log Analytics Workspaces with larger retention periods for this purpose when tagging is free.
New Policy Definition > Management Group T1
Name Tag Compliance - Tag - CreatedOnDate
Description
Category
{
"mode": "All",
"policyRule": {
"if": {
"allOf": [
{
"field": "tags['CreatedOnDate']",
"exists": "false"
}
]
},
"then": {
"effect": "append",
"details": [
{
"field": "tags['CreatedOnDate']",
"value": "[utcNow()]"
}
]
}
},
"parameters": {}
}
Simply wanna remark on few general things, The website design and style is perfect, the articles is very superb : D.
Normally I do not read article on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, very nice post.
I’ve read a few good stuff here. Definitely worth bookmarking for revisiting. I wonder how much effort you put to create such a great informative web site.