pillar | category | online version |
---|---|---|
Cost Optimization |
Metadata tagging |
Tag resource groups with mandatory tags.
Metadata tags store additional information about resource groups. Each tags is a key value pair, with a tag name and tag value. When used consistently, metadata tags can be used to identify resource groups for searching and reporting. Up to 50 tags can be set on each resource group.
Additionally tags can store information useful to automated tasks. Some examples include; de-provisioning, scaling, and patching.
Consider tagging resource groups with the mandatory tags. Additionally consider enforcing mandatory tags with Azure Policy.
Resources group pass when they have the required tags. If any of the tags are missing, this rule fails. By default:
- No mandatory tags are configured.
- Tag names are case-sensitive.
- Tag values are case-sensitive.
To configure this rule:
- Override the
CAF_ResourceGroupMandatoryTags
configuration value with an array of required tags. - Override
CAF_MatchTagNameCase
withfalse
to make tag names case-insensitive. By default tag names are case-sensitive. This option affects all tag rules. - Override
CAF_MatchTagValueCase
withfalse
to make tag values case-insensitive. By default tag values are case-sensitive. This option affects all tag rules.