Skip to content

Commit bd30c7c

Browse files
committed
updated
1 parent ba1a560 commit bd30c7c

File tree

4 files changed

+29
-28
lines changed

4 files changed

+29
-28
lines changed

articles/cost-management-billing/costs/enable-tag-inheritance.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
title: Group costs using tag inheritance
2+
title: Group and allocate costs using tag inheritance
33
titleSuffix: Microsoft Cost Management
44
description: This article explains how to group costs using tag inheritance.
55
author: bandersmsft
66
ms.author: banders
7-
ms.date: 11/11/2022
7+
ms.date: 11/16/2022
88
ms.topic: how-to
99
ms.service: cost-management-billing
1010
ms.subservice: cost-management
1111
ms.reviewer: sadoulta
1212
---
1313

14-
# Group costs using tag inheritance
14+
# Group and allocate costs using tag inheritance
1515

1616
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.
1717

@@ -33,7 +33,7 @@ Tag inheritance is available for customers with an Enterprise Account (EA) or a
3333

3434
## Enable tag inheritance
3535

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.
3737

3838
To enable tag inheritance in the Azure portal:
3939

@@ -45,27 +45,11 @@ To enable tag inheritance in the Azure portal:
4545
5. In the Tag inheritance (Preview) window, select **Automatically apply subscription and resource group tags to new data**.
4646
:::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" :::
4747

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-
6448
Here's an example diagram showing how a tag is inherited.
6549

6650
:::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":::
6751

68-
## Override resource tag behavior
52+
## Choose between resource and inherited tags
6953

7054
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.
7155

@@ -92,6 +76,21 @@ Similarly, if the tag inheritance setting is disabled, the inherited tags will b
9276
> [!NOTE]
9377
> 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.
9478
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+
9594
## Next steps
9695

97-
- Learn about [cost allocation](allocate-costs.md).
96+
- Learn how to [split shared costs](allocate-costs.md).
185 KB
Loading

articles/cost-management-billing/costs/understand-cost-mgt-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ titleSuffix: Microsoft Cost Management
44
description: This article helps you better understand data that's included in Cost Management and how frequently it's processed, collected, shown, and closed.
55
author: bandersmsft
66
ms.author: banders
7-
ms.date: 11/04/2022
7+
ms.date: 11/16/2022
88
ms.topic: conceptual
99
ms.service: cost-management-billing
1010
ms.subservice: cost-management
@@ -138,7 +138,7 @@ If you don't see a specific tag in Cost Management, consider the following quest
138138
Here are a few tips for working with tags:
139139

140140
- 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.
142142
- Use the Tags API with either Query or UsageDetails to get all cost based on the current tags.
143143

144144
## Cost and usage data updates and retention

articles/cost-management-billing/toc.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,12 @@
383383
href: costs/cost-mgt-alerts-monitor-usage-spending.md
384384
- name: Export cost data with a Storage SAS key
385385
href: costs/export-cost-data-storage-account-sas-key.md
386-
- name: Enable tag inheritance
387-
href: costs/enable-tag-inheritance.md
388-
- name: Allocate costs
389-
href: costs/allocate-costs.md
386+
- name: Cost allocation
387+
items:
388+
- name: Group and allocate costs using tag inheritance
389+
href: costs/enable-tag-inheritance.md
390+
- name: Split shared costs
391+
href: costs/allocate-costs.md
390392
- name: Connect with Power BI Desktop
391393
href: /power-bi/desktop-connect-azure-cost-management
392394
- name: Analyze Azure costs with the Power BI template app

0 commit comments

Comments
 (0)