Skip to content

Commit 63b2cab

Browse files
authored
Merge pull request #216091 from bandersmsft/tag-inheritance
MCM - Adding Enable tag inheritance
2 parents fd2d094 + c8e4931 commit 63b2cab

10 files changed

+703
-4
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: Group and allocate costs using tag inheritance
3+
titleSuffix: Microsoft Cost Management
4+
description: This article explains how to group costs using tag inheritance.
5+
author: bandersmsft
6+
ms.author: banders
7+
ms.date: 11/16/2022
8+
ms.topic: how-to
9+
ms.service: cost-management-billing
10+
ms.subservice: cost-management
11+
ms.reviewer: sadoulta
12+
---
13+
14+
# Group and allocate costs using tag inheritance
15+
16+
Azure tags are widely used to group costs to align with different business units, engineering environments, and cost departments. Tags provide the visibility needed for businesses to manage and allocate costs across the different groups.
17+
18+
This article explains how to use the tag inheritance setting in Cost Management. When enabled, tag inheritance applies resource group and subscription tags to child resource usage records. You don't have to tag every resource or rely on resources that emit usage to have their own tags.
19+
20+
Tag inheritance is available for customers with an Enterprise Account (EA) or a Microsoft Customer Agreement (MCA) account.
21+
22+
## Required permissions
23+
24+
- For subscriptions:
25+
- Cost Management reader to view
26+
- Cost Management Contributor to edit
27+
- For EA billing accounts:
28+
- Enterprise Administrator (read-only) to view
29+
- Enterprise Administrator to edit
30+
- For MCA billing profiles:
31+
- Billing profile reader to view
32+
- Billing profile contributor to edit
33+
34+
## Enable tag inheritance
35+
36+
You can enable the tag inheritance setting in the Azure portal. You apply the setting at the EA billing account, MCA billing profile, and subscription scopes. After the setting is enabled, all resource group and subscription tags are automatically applied to child resource usage records.
37+
38+
To enable tag inheritance in the Azure portal:
39+
40+
1. In the Azure portal, navigate to Cost Management.
41+
2. Select a scope.
42+
3. In the left menu under **Settings**, select either **Manage billing account** or **Manage subscription**, depending on your scope.
43+
4. Under **Tag inheritance**, select **Edit**.
44+
:::image type="content" source="./media/enable-tag-inheritance/edit-tag-inheritance.png" alt-text="Screenshot showing the Edit option for Tag inheritance." lightbox="./media/enable-tag-inheritance/edit-tag-inheritance.png" :::
45+
5. In the Tag inheritance (Preview) window, select **Automatically apply subscription and resource group tags to new data**.
46+
:::image type="content" source="./media/enable-tag-inheritance/automatically-apply-tags-new-usage-data.png" alt-text="Screenshot showing the Automatically apply subscription and resource group tags to new data option." lightbox="./media/enable-tag-inheritance/automatically-apply-tags-new-usage-data.png" :::
47+
48+
Here's an example diagram showing how a tag is inherited.
49+
50+
:::image type="content" source="./media/enable-tag-inheritance/tag-example-01.svg" alt-text="Example diagram showing how a tag is inherited." border="false" lightbox="./media/enable-tag-inheritance/tag-example-01.svg":::
51+
52+
## Choose between resource and inherited tags
53+
54+
When a resource tag matches the resource group or subscription tag being applied, the resource tag is applied to its usage record by default. You can change the default behavior to have the subscription or resource group tag override the resource tag.
55+
56+
In the Tag inheritance window, select the **Use the subscription or resource group tag** option.
57+
58+
:::image type="content" source="./media/enable-tag-inheritance/use-subscription-resource-group-tag.png" alt-text="Screenshot showing the override options." lightbox="./media/enable-tag-inheritance/use-subscription-resource-group-tag.png" :::
59+
60+
Let's look at an example of how a resource tag gets applied. In the following diagram, resource 4 and resource group 2 have the same tag: *App*. Because the user chose to keep the resource tag, usage record 4 is updated with the resource tag value *E2E*.
61+
62+
:::image type="content" source="./media/enable-tag-inheritance/tag-example-02.svg" alt-text="Example diagram showing how a resource tag gets applied." border="false" lightbox="./media/enable-tag-inheritance/tag-example-02.svg":::
63+
64+
Let's look at another example where a resource tag gets overridden. In the following diagram, resource 4 and resource group 2 have the same tag: **App**. Because the user chose to use the resource group or subscription tag, usage record 4 is updated with the resource group tag value, which is *backend*.
65+
66+
:::image type="content" source="./media/enable-tag-inheritance/tag-example-03.svg" alt-text="Example diagram showing how a resource tag gets overridden." border="false" lightbox="./media/enable-tag-inheritance/tag-example-03.svg":::
67+
68+
## Usage record updates
69+
70+
After the tag inheritance setting is enabled, it takes about 8-24 hours for the child resource usage records to get updated with subscription and resource group tags. The usage records are updated for the current month using the existing subscription and resource group tags.
71+
72+
For example, if the tag inheritance setting is enabled on October 20, child resource usage records are updated from October 1 using the tags that existed on October 20.
73+
74+
Similarly, if the tag inheritance setting is disabled, the inherited tags will be removed from the usage records for the current month.
75+
76+
> [!NOTE]
77+
> If there are purchases or resources that don’t emit usage at a subscription scope, they will not have the subscription tags applied even if the setting is enabled.
78+
79+
## View costs grouped by tags
80+
81+
You can use cost analysis to view the costs grouped by tags.
82+
83+
1. In the Azure portal, navigate to **Cost Management**.
84+
1. In the left menu, select **Cost Analysis**.
85+
1. Select a scope.
86+
1. In the **Group by** list, select the tag you want to view costs for.
87+
88+
Here's an example showing costs for the *org* tag.
89+
90+
:::image type="content" source="./media/enable-tag-inheritance/cost-analysis-view-tag.png" alt-text="Screenshot showing costs for the org example tag." lightbox="./media/enable-tag-inheritance/cost-analysis-view-tag.png" :::
91+
92+
You can also view the inherited tags by downloading your Azure usage. For more information, see [View and download your Azure usage and charges](../understand/download-azure-daily-usage.md).
93+
94+
## Next steps
95+
96+
- Learn how to [split shared costs](allocate-costs.md).
157 KB
Loading
185 KB
Loading
201 KB
Loading

0 commit comments

Comments
 (0)