Tagging#
Allocation rules are only as good as the tags they read. On the Tagging page AI drafts one tagging convention for your whole estate, Reply CMP checks every resource against it, and the corrected tags are written back to your clouds, where allocation and every other tool read them.
Navigate: left navigation → FinOps → Allocate → Tagging in the page header.
Tagging covers the resources that Discovery fully supports, shown as Supported in Discovery. Cost-only resources are left out of the convention, its figures and the tags written back.
Reading the page requires FinOps.Allocation / Read. Generating, saving and deleting the convention, and writing tags to the clouds, require FinOps.Allocation / Write.
How it works#
A convention defines canonical keys (for example environment, cost-center, owner). For every resource and canonical key, Reply CMP resolves one value in this order:
Tag: the canonical key or one of the keys listed under Also written as, in that order. The tag value is mapped to an allowed value, or to one of the other ways that value is written.
Rules: tried in order when no tag gives a value. A rule reads the resource name, the container (Azure resource group, AWS account ID or GCP project ID), the connection name, the resource type or the region.
Values in names: for a key with allowed values, each allowed value and its other spellings are searched as whole words in the names you choose, in order:
devis found inrg-dev-01andapi-dev2, not indevops.Default value: used when nothing else applies.
Keys and values are compared ignoring case, spaces and separators: Env, ENV and env_ are one key, Prod and PROD one value. Anything else, such as prd for production, is listed explicitly in the convention.
A tag whose value is not allowed, or is a placeholder such as tbd or N/A, stays Not allowed and is not compliant. A resource without a tag, a matching rule and a default is Missing.
Note
Saving a convention changes nothing in your clouds. Allocation keeps reading the cloud tags, so it follows the convention when the tags are written back (see Fix tags at source).
Generate the convention#
The first time you open the page, click Generate convention. In about 10 to 20 seconds AI reads your tag keys and values and a sample of your resource group, account, project, connection and resource names, and drafts:
one canonical key for every dimension, with the other spellings found in your tags, in any language;
allowed values with the ways each is written, including abbreviations and evident typos; placeholders such as
N/Aortbdare never allowed;rules that find the value of untagged resources from their names;
the keys that should be required.
The draft opens in the Convention tab with the notes of the AI at the top. Nothing is saved until you click Save. If the draft cannot be generated, the page says so: try again in a few minutes or use or define it manually.
Regenerate drafts a new convention from the current tags at any time, for example after new keys appeared.
Review the convention#
In the Convention tab each key is a card; expand it to edit:
Field |
Meaning |
|---|---|
Canonical key, Description, Required |
Required keys make the tagging score. |
Also written as |
Other keys read as this one, in order. |
Allowed values |
The values the key can have and the other ways each is written. Leave empty for free text such as owners or cost center codes: any value is accepted except placeholders such as |
Values in names |
Only for keys with allowed values. Turn on Find the values in names and choose where to look: resource group, account or project, then resource name, then connection name. No pattern to write: a spelling added to an allowed value is found in names too. Search the connection name only for connections of a single environment, because every resource of the connection gets its value. |
More rules (Rules for untagged resources for keys without allowed values) |
Conditions on names that give a value, for what the names do not say, such as one AWS account per environment. A matches regex rule can use a captured group as value ( |
Default value |
Used when neither a tag nor a rule gives a value. |
Still without a value |
Where the resources that are still Missing live (resource group, account, project or connection), the most expensive first. Assign a value to a place and a rule is added for it. |
Under each rule and each name searched, the editor shows how many resources take their value from it, with examples, or warns when none does. The figures follow the draft while you edit.
Trust names over tags decides what happens when a tag contradicts the name of the resource, its resource group, account or project (for example a tag left behind after a promotion). Off, the tag wins; on, the value from the name is used. Either way the resource is listed as likely outdated.
While you edit, the Compliance tab shows the effect of the draft, marked Draft preview. Save stores the convention; ⋯ → Discard unsaved changes goes back to the saved one.
Check compliance#
The Compliance tab shows how well your estate follows the convention:
Indicator |
Meaning |
|---|---|
Score |
Share of the last 30 days’ cost with a valid value for every required key (all keys when none is required). |
Compliant resources |
Active supported resources with a valid value for every required key. |
Values to review |
Required keys without a value or with a value that is not allowed. |
Likely outdated tags |
Tags that disagree with the resource group, account, project or name. |
Tags to fix at source |
Values of the convention that differ from the cloud tags. |
Below, each key shows where its values come from (correct tag, normalized, from names, default, not allowed, missing), its coverage by resources and cost, and what to review. Expand a key to:
click a status to list its resources;
accept a value that is not allowed as another way to write the suggested value (→ value), then save;
see the likely outdated tags.
The saved convention is evaluated again every day and after a discovery you start, so new resources are covered without any action.
Using the CMP Agent#
Ask the CMP Agent questions such as “How good is our tagging?” or “Which tags are outdated?”. It reads the convention and its last evaluation; without a convention it summarizes the tags in your clouds.
Writing tags back does not create allocation groups. After Fix at source, select Update groups on the Allocate page: the Agent creates the missing environment and project groups for the values of the convention, adds the matching rule to the existing ones and sets a budget from last month’s cost where there is none, with your confirmation.