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
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/enable-tag-inheritance.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
-
title: Group costs using tag inheritance
2
+
title: Group and allocate costs using tag inheritance
3
3
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: 11/11/2022
7
+
ms.date: 11/16/2022
8
8
ms.topic: how-to
9
9
ms.service: cost-management-billing
10
10
ms.subservice: cost-management
11
11
ms.reviewer: sadoulta
12
12
---
13
13
14
-
# Group costs using tag inheritance
14
+
# Group and allocate costs using tag inheritance
15
15
16
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
17
@@ -33,7 +33,7 @@ Tag inheritance is available for customers with an Enterprise Account (EA) or a
33
33
34
34
## Enable tag inheritance
35
35
36
-
You can enable the tag inheritance setting in the Azure portal and the [Settings API](/rest/api/cost-management/settings). 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.
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
37
38
38
To enable tag inheritance in the Azure portal:
39
39
@@ -45,27 +45,11 @@ To enable tag inheritance in the Azure portal:
45
45
5. In the Tag inheritance (Preview) window, select **Automatically apply subscription and resource group tags to new data**.
46
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
47
48
-
You can also enable tag inheritance using the Settings API.
49
-
50
-
51
-
Here's a sample request:
52
-
53
-
```http
54
-
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance?api-version=2022-10-01-preview
55
-
56
-
{
57
-
"kind": "taginheritance",
58
-
"properties": {
59
-
"preferContainerTags": true
60
-
}
61
-
}
62
-
```
63
-
64
48
Here's an example diagram showing how a tag is inherited.
65
49
66
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":::
67
51
68
-
## Override resource tag behavior
52
+
## Choose between resource and inherited tags
69
53
70
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.
71
55
@@ -92,6 +76,21 @@ Similarly, if the tag inheritance setting is disabled, the inherited tags will b
92
76
> [!NOTE]
93
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.
94
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
+
95
94
## Next steps
96
95
97
-
- Learn about [cost allocation](allocate-costs.md).
96
+
- Learn how to [split shared costs](allocate-costs.md).
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/understand-cost-mgt-data.md
+2-2Lines changed: 2 additions & 2 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 helps you better understand data that's included in Cost Management and how frequently it's processed, collected, shown, and closed.
5
5
author: bandersmsft
6
6
ms.author: banders
7
-
ms.date: 11/04/2022
7
+
ms.date: 11/16/2022
8
8
ms.topic: conceptual
9
9
ms.service: cost-management-billing
10
10
ms.subservice: cost-management
@@ -138,7 +138,7 @@ If you don't see a specific tag in Cost Management, consider the following quest
138
138
Here are a few tips for working with tags:
139
139
140
140
- Plan ahead and define a tagging strategy that allows you to break down costs by organization, application, environment, and so on.
141
-
-Use Azure Policy to copy resource group tags to individual resources and enforce your tagging strategy.
141
+
-[Enable tag inheritance](enable-tag-inheritance.md) to apply resource group and subscription tags to child resource usage records.
142
142
- Use the Tags API with either Query or UsageDetails to get all cost based on the current tags.
0 commit comments