Control objective
Azure resource tags have case insensitive keys, but they maintain case information in the key. For example setting a key to Cost_center, prevents you from creating another key Cost_Center, however when calling the API to get the resource tags, the value Cost_center is returned. This can cause confusion and errors when using programing languages that are case sensitive.
The goal of this policy pack is to demonstrate how to write a tagging template that will delete an Azure tag with incorrect casing and replace it with the correct tag key.
Remediation
Remove existing tags with incorrect casing, and replace with the correct tag key and a default value.
Control objective Azure resource tags have case insensitive keys, but they maintain case information in the key. For example setting a key to
Cost_center
, prevents you from creating another keyCost_Center
, however when calling the API to get the resource tags, the valueCost_center
is returned. This can cause confusion and errors when using programing languages that are case sensitive.The goal of this policy pack is to demonstrate how to write a tagging template that will delete an Azure tag with incorrect casing and replace it with the correct tag key.
Remediation Remove existing tags with incorrect casing, and replace with the correct tag key and a default value.
Categories tagging