You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rules are processed in the order in which they're created and can take up to 24 hours to take effect.
78
+
79
+
Let's look at an example. Assume that an active rule, *Rule CA-1*, allocates costs from subscription A (the source) to subscription B (the target).
80
+
81
+
Later, a new rule, *Rule CA-2* gets created. Its source is subscription A and its target is subscription C. So, the rule has no effect because costs for subscription A are zero. The costs are zero because *Rule CA-1* is active. It already allocated all the costs from subscription A to subscription B.
82
+
78
83
## Verify the cost allocation rule
79
84
80
85
When the cost allocation rule is active, costs from the selected sources distribute to the specified allocation targets. Use the following information to verify proper cost allocation to targets.
@@ -127,7 +132,7 @@ However, cost allocation data results might be empty if you're using an unsuppor
127
132
128
133
If you have cost allocation rules enabled, the `UnitPrice` field in your usage details file is 0. We recommend that you use price sheet data to get unit price information until it's available in the usage details file.
129
134
130
-
Cost allocation to a target won't happen if that target doesn't have any costs associated with it.
135
+
Cost allocation to a target doesn't happen if that target doesn't have any costs associated with it.
description: This article explains what billing tags are how and how to apply them in Cost Management.
5
+
author: bandersmsft
6
+
ms.author: banders
7
+
ms.date: 12/15/2023
8
+
ms.topic: conceptual
9
+
ms.service: cost-management-billing
10
+
ms.subservice: cost-management
11
+
ms.reviewer: sadoulta
12
+
---
13
+
14
+
15
+
# Apply billing tags
16
+
17
+
Billing tags are metadata elements that you can apply to Microsoft Customer Agreement MCA billing entities including billing profiles and invoice sections. Just like Azure tags, billing tags are key-value pairs that are used to identify the entities.
18
+
19
+
For example, to identify an invoice section with subscriptions belonging to the marketing department, you could use the tag with `key` : *Department* and `value` : *Marketing*. The fully formed `key` : *value* pair would be `Department` : *Marketing*.
20
+
21
+
> [!NOTE]
22
+
> The limitations and recommendations that apply to Azure tags also apply to billing tags.
23
+
24
+
> [!WARNING]
25
+
> Tags are stored as plain text. Never add sensitive values to tags. Sensitive values could be exposed through many methods, including cost reports, commands that return existing tag definitions, deployment histories, exported templates, and monitoring logs.
26
+
27
+
## Tag application
28
+
29
+
**Required permissions**
30
+
Billing tags are applied in the Azure portal. The required permissions are:
31
+
32
+
- Billing profile contributor/owner for billing profile tags
33
+
- Invoice section contributor/owner for invoice section tags
34
+
35
+
**Billing profile tags**
36
+
37
+
1. Go to [https://portal.azure.com.](https://portal.azure.com.)
38
+
1. Search for and select **Cost Management + Billing**.
39
+
1. Select the billing profile where you want to set the tags.
40
+
1. On the left menu, select **Properties** under **Settings** and then select **Add or Update tags**.
41
+
:::image type="content" source="./media/billing-tags/billing-profile-tag.png" alt-text="Screenshot showing tag application to a billing profile." lightbox="./media/billing-tags/billing-profile-tag.png" :::
42
+
43
+
### Invoice section tags
44
+
45
+
1. Go to [https://portal.azure.com](https://portal.azure.com).
46
+
1. Search for and select **Cost Management + Billing**.
47
+
1. Select your billing profile.
48
+
1. On the left menu, select **Invoice sections** under **Billing**.
49
+
1. Select the invoice section where you want to set the tags.
50
+
1. On the left menu, select **Properties** under **Settings** and then select **Add or update Tags**.
51
+
:::image type="content" source="./media/billing-tags/invoice-section-tag.png" alt-text="Screenshot showing tag application to an invoice section." lightbox="./media/billing-tags/invoice-section-tag.png" :::
52
+
53
+
## Tag inheritance and billing tags
54
+
55
+
When you enable the **Tag inheritance** setting at the billing profile level, tags from billing profile and invoices sections are applied to usage records for all child resources. For more information about tag inheritance, see [Group and allocate costs using tag inheritance](enable-tag-inheritance.md).
56
+
57
+
## Next steps
58
+
59
+
- Learn how to [Group and allocate costs using tag inheritance](enable-tag-inheritance.md).
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/enable-tag-inheritance.md
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ titleSuffix: Microsoft Cost Management
4
4
description: This article explains how to group costs using tag inheritance.
5
5
author: bandersmsft
6
6
ms.author: banders
7
-
ms.date: 08/04/2023
7
+
ms.date: 12/15/2023
8
8
ms.topic: how-to
9
9
ms.service: cost-management-billing
10
10
ms.subservice: cost-management
@@ -13,17 +13,20 @@ ms.reviewer: sadoulta
13
13
14
14
# Group and allocate costs using tag inheritance
15
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.
16
+
Tags are widely used to group costs to align with different business units, engineering environments, cost departments, and so on. Tags provide the visibility needed for businesses to manage and allocate costs across the different groups.
17
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.
18
+
This article explains how to use the tag inheritance setting in Cost Management. When enabled, tag inheritance applies billing, 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
19
20
20
Tag inheritance is available for the following billing account types:
21
21
22
22
- Enterprise Agreement (EA)
23
23
- Microsoft Customer Agreement (MCA)
24
24
- Microsoft Partner Agreement (MPA) with Azure plan subscriptions
25
25
26
-
Here's an example diagram showing how a tag is inherited. *Note that inherited tags are applied to child resource usage records and not the resources themselves.*
26
+
Here's an example diagram showing how a tag is inherited.
27
+
28
+
>[!NOTE]
29
+
> Inherited tags are applied to child resource usage records and not the resources themselves.
27
30
28
31
:::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":::
29
32
@@ -41,7 +44,7 @@ Here's an example diagram showing how a tag is inherited. *Note that inherited t
41
44
42
45
## Enable tag inheritance
43
46
44
-
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.
47
+
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.
45
48
46
49
### To enable tag inheritance in the Azure portal for an EA billing account
47
50
@@ -53,16 +56,20 @@ You can enable the tag inheritance setting in the Azure portal. You apply the se
53
56
1. In the Tag inheritance window, select **Automatically apply subscription and resource group tags to new data**.
54
57
:::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 for a billing account." lightbox="./media/enable-tag-inheritance/automatically-apply-tags-new-usage-data.png":::
55
58
59
+
After tag inheritance is enabled, subscription and resource group tags are applied to child resource usage records for the current month within 24 hours.
60
+
56
61
### To enable tag inheritance in the Azure portal for an MCA billing profile
57
62
58
63
1. In the Azure portal, search for **Cost Management** and select it (the green hexagon-shaped symbol, *not* Cost Management + Billing).
59
64
1. Select a scope.
60
65
1. In the left menu under **Settings**, select **Manage billing profile**.
61
66
1. Under **Tag inheritance**, select **Edit**.
62
67
:::image type="content" source="./media/enable-tag-inheritance/edit-tag-inheritance-billing-profile.png" alt-text="Screenshot showing the Edit option for Tag inheritance for an MCA billing profile." lightbox="./media/enable-tag-inheritance/edit-tag-inheritance-billing-profile.png":::
63
-
1. In the Tag inheritance window, select **Automatically apply subscription and resource group tags to new data**.
68
+
1. In the Tag inheritance window, select **Automatically apply billing, subscription and resource group tags to new usage data**.
64
69
:::image type="content" source="./media/enable-tag-inheritance/automatically-apply-tags-new-usage-data-billing-profile.png" alt-text="Screenshot showing the Automatically apply subscription and resource group tags to new data option for a billing profile." lightbox="./media/enable-tag-inheritance/automatically-apply-tags-new-usage-data-billing-profile.png":::
65
70
71
+
After tag inheritance is enabled, billing profile, invoice section, subscription, and resource group tags are applied to child resource usage records for the current month within 24 hours.
72
+
66
73
### To enable tag inheritance in the Azure portal for a subscription
67
74
68
75
1. In the Azure portal, search for **Cost Management** and select it (the green hexagon-shaped symbol, *not* Cost Management + Billing).
@@ -75,19 +82,27 @@ You can enable the tag inheritance setting in the Azure portal. You apply the se
75
82
76
83
## Choose between resource and inherited tags
77
84
78
-
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.
85
+
When a resource tag matches the inherited tag being applied, the resource tag is applied to its usage record by default. You can change the default behavior to have the inherited tag override the resource tag.
86
+
87
+
**For EA customers**:
79
88
80
89
In the Tag inheritance window, select the **Use the subscription or resource group tag** option.
81
90
82
-
:::image type="content" source="./media/enable-tag-inheritance/use-subscription-resource-group-tag.png" alt-text="Screenshot showing the override options." :::
91
+
:::image type="content" source="./media/enable-tag-inheritance/use-subscription-resource-group-tag.png" alt-text="Screenshot showing the inherited tag option selected for EA customers." :::
92
+
93
+
**For MCA customers**:
94
+
95
+
In the tag inheritance window, select the **Use the inherited tag** option.
96
+
97
+
:::image type="content" source="./media/enable-tag-inheritance/tag-inheritance-use-inherited-tag.png" alt-text="Screenshot showing the inherited tag option selected for MCA customers." lightbox="./media/enable-tag-inheritance/tag-inheritance-use-inherited-tag.png" :::
83
98
84
99
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*.
85
100
86
101
:::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":::
87
102
88
103
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*¹.
89
104
90
-
¹ When the subscription and resource group tags are the same as the resource tag and you’ve selected the **Use the subscription or resource group tag** option, the subscription tag is used.
105
+
¹ When the subscription and resource group tags are the same as the resource tag and you select the **Use the subscription or resource group tag** option, the subscription tag is used.
91
106
92
107
:::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":::
93
108
@@ -97,14 +112,14 @@ After the tag inheritance setting is enabled, it takes about 8-24 hours for the
97
112
98
113
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.
99
114
100
-
Similarly, if the tag inheritance setting is disabled, the inherited tags will be removed from the usage records for the current month.
115
+
Similarly, if the tag inheritance setting is disabled, the inherited tags are removed from the usage records for the current month.
101
116
102
117
> [!NOTE]
103
118
> 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.
104
119
105
120
## View costs grouped by tags
106
121
107
-
You can use cost analysis to view the costs grouped by tags.
122
+
You can use Cost analysis to view the costs grouped by tags.
108
123
109
124
1. In the Azure portal, navigate to **Cost Management**.
0 commit comments