turbot / guardrails-samples

Provides teams using Turbot Guardrails automation and configuration-as-code examples for effective management of Guardrails for their organization.
https://turbot.com/guardrails
Apache License 2.0
25 stars 29 forks source link

Add policy pack - Enforce replace Azure tag keys with incorrect casing #871

Open dboeke opened 2 months ago

dboeke commented 2 months ago

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.

Categories tagging

github-actions[bot] commented 4 days ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.