Skip to content

Commit 3e0e383

Browse files
authored
Merge pull request #302865 from v-albemi/cost-management
Freshness: Azure DevTest Labs - Set 2 of 2
2 parents 3127110 + 4557600 commit 3e0e383

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
2-
title: Track costs associated with a lab in Azure DevTest Labs
3-
description: Track the cost of your lab through Microsoft Cost Management with custom tags, tag inheritance, and filtered views.
2+
title: Track Costs Associated with a Lab in Azure DevTest Labs
3+
description: Track the cost of your lab by using Microsoft Cost Management and custom tags, tag inheritance, and filtered views.
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 06/03/2024
7+
ms.date: 07/18/2025
88
ms.custom: UpdateFrequency2
99

1010
#customer intent: As a developer, I want to use Microsoft Cost Management to track and manage the costs associated with my DevTest Labs resources.
1111
---
1212

1313
# Track costs associated with a lab in Azure DevTest Labs
1414

15-
This article provides information on how to track the cost of your lab through [Microsoft Cost Management](../cost-management-billing/cost-management-billing-overview.md) by applying tags to the lab to filter costs.
15+
This article provides information on how to track the cost of your lab by applying tags to the lab to filter costs so that you can use [Microsoft Cost Management](../cost-management-billing/cost-management-billing-overview.md).
1616

17-
DevTest Labs can create extra resource groups for resources related to your lab. The number of resource groups created depends on the features used by the lab and their settings. Because of the extra resource groups, it's often not straightforward to get a view of the total costs for your lab just by looking at **Resource groups** in the Azure portal. To create a single view of costs per lab in the Azure portal, you can use resource group **Tags**.
17+
DevTest Labs can create extra resource groups for resources related to your lab. The number of resource groups created depends on the features used by the lab and their settings. Because of the extra resource groups, it's not always easy to get a view of the total costs for your lab just by looking at **Resource groups** in the Azure portal. To create a single view of costs per lab in the Azure portal, you can use resource group **Tags**.
1818

1919
## Apply Cost Management for DevTest Labs
2020

21-
The process for using cost management for DevTest Labs involves four steps:
21+
The process for using Cost Management for DevTest Labs includes four steps:
2222

2323
1. Create tags and enable tag inheritance in the Azure portal.
2424
1. Apply the tags to your DevTest Labs resources.
2525
1. Provide permissions to allow users to view their resource costs.
26-
1. Use Microsoft Cost Management to view and filter costs for your DevTest Labs resources, based on your tags.
26+
1. Use Cost Management to view and filter costs for your DevTest Labs resources, based on your tags.
2727

2828
You might create tags to allow users to track billed charges by cost center, business unit, team project, and so on.
2929

@@ -33,54 +33,54 @@ The details for these steps are described in the following sections.
3333

3434
When DevTest Labs creates [environments](devtest-lab-create-environment-from-arm.md), it places each environment in its own resource group. For billing purposes, you must enable tag inheritance to ensure the lab tag definitions flow down from the resource group to the resources.
3535

36-
You can enable tag inheritance through billing properties or through Azure Policies. The billing properties method is the easiest and fastest to configure. However, it might affect billing reporting for other resources in the same subscription.
36+
You can enable tag inheritance by using billing properties or by using Azure Policy. The billing properties method is the easiest and fastest. However, it might affect billing reporting for other resources in the subscription.
3737

3838
The following articles describe how to create tags and enable tag inheritance:
3939

40-
- [Group and allocate costs by using tag inheritance](../cost-management-billing/costs/enable-tag-inheritance.md)
40+
- [Group and allocate costs by using tag inheritance in billing properties](../cost-management-billing/costs/enable-tag-inheritance.md)
4141
- [Use the "Inherit a tag from the resource group" Azure Policy](../azure-resource-manager/management/tag-policies.md)
4242

43-
If the lab is updated correctly by using the billing properties method, you see **Tag inheritance** is **Enabled**:
43+
If the lab is updated correctly by using the billing properties method, you can see that **Tag inheritance** is **Enabled** on the Cost Management **Configuration** page:
4444

45-
:::image type="content" source="./media/devtest-lab-configure-cost-management/devtest-tag-inheritance.png" alt-text="Screenshot that shows Tag Inheritance is Enabled for cost management in the Azure portal." lightbox="./media/devtest-lab-configure-cost-management/devtest-tag-inheritance-large.png":::
45+
:::image type="content" source="./media/devtest-lab-configure-cost-management/devtest-tag-inheritance.png" alt-text="Screenshot that shows that Tag inheritance is Enabled for Cost Management in the Azure portal." lightbox="./media/devtest-lab-configure-cost-management/devtest-tag-inheritance.png":::
4646

4747
## Apply tags to DevTest Labs
4848

49-
DevTest Labs automatically propagates tags applied at the lab level to resources created by the lab. For virtual machines, tags are applied to the billable resources. For environments, tags are applied to the resource group for the environment. To apply tags to your labs, follow the steps in [Add tags to a lab](devtest-lab-add-tag.md).
49+
DevTest Labs automatically propagates tags applied at the lab level to resources created by the lab. For virtual machines, tags are applied to the billable resources. For environments, tags are applied to the resource group for the environment. To apply tags to your labs, complete the steps in [Add tags to a lab](devtest-lab-add-tag.md).
5050

51-
:::image type="content" source="./media/devtest-lab-configure-cost-management/devtest-tags.png" alt-text="Screenshot that shows tags added for a DevTest Labs resource in the Azure portal." lightbox="./media/devtest-lab-configure-cost-management/devtest-tags-large.png":::
51+
:::image type="content" source="./media/devtest-lab-configure-cost-management/devtest-tags-large.png" alt-text="Screenshot that shows tags added for a DevTest Labs resource in the Azure portal." lightbox="./media/devtest-lab-configure-cost-management/devtest-tags-large.png":::
5252

5353
> [!NOTE]
54-
> After you apply a new tag to your lab, the tag is automatically applied to new lab resources when they're created. If you want to apply a new or updated tag to existing resources, you can use a script to propagate the tag correctly. Use the [Update-DevTestLabsTags script](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/Scripts/UpdateDtlTags) located in the DevTest Labs GitHub repository.
54+
> After you apply a new tag to your lab, the tag is automatically applied to new lab resources when they're created. If you want to apply a new or updated tag to existing resources, you can use a script to propagate the tag correctly. Use the [Update-DevTestLabsTags script](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/Scripts/UpdateDtlTags) that's in the DevTest Labs GitHub repository.
5555
5656
## Provide permissions to view costs
5757

5858
DevTest Labs users don't automatically have permission to view costs for their resources by using Cost Management. To add the permissions, follow the instructions in [enable users to view billing information](../cost-management-billing/costs/assign-access-acm-data.md#assign-billing-account-scope-access). Assign the _Billing Reader_ permission to users at the subscription level, if they don't already have permissions that include Billing Reader access.
5959

60-
For more information, see [Manage access to Azure billing - Microsoft Cost Management](../cost-management-billing/manage/manage-billing-access.md).
60+
For more information, see [Manage access to Azure billing](../cost-management-billing/manage/manage-billing-access.md).
6161

6262
## View and filter costs
6363

64-
After DevTest Labs is configured to provide the lab-specific information for Microsoft Cost Management, you're ready to get started with [Cost Management reporting - Azure - Microsoft Cost Management](../cost-management-billing/costs/reporting-get-started.md). You can visualize the costs in the Azure portal, download cost reporting information, or use Power BI to visualize the costs.
64+
After DevTest Labs is configured to provide the lab-specific information for Cost Management, you're ready to get started with [Cost Management reporting](../cost-management-billing/costs/reporting-get-started.md). You can visualize the costs in the Azure portal, download cost reporting information, or use Power BI to visualize the costs.
6565

66-
For a quick view of costs per lab, following these steps:
66+
For a quick view of costs per lab, complete these steps:
6767

68-
1. In the [Azure portal](https://portal.azure.com), go to your lab, and select a resource group that has tags.
68+
1. In the [Azure portal](https://portal.azure.com), go to your lab and select a resource group that has tags.
6969

70-
1. On the left menu, expand **Cost Management**, and select **Cost analysis**.
70+
1. In the left pane, expand **Cost Management** and select **Cost analysis**.
7171

72-
1. In the **Cost analysis** page, expand the **View** dropdown list, and select **Daily Costs**:
72+
1. On the **Cost analysis** page, in the **View** list, select **Daily Costs**:
7373

7474
:::image type="content" source="./media/devtest-lab-configure-cost-management/daily-costs.png" alt-text="Screenshot that shows how to view daily costs for resources in the Azure portal." lightbox="./media/devtest-lab-configure-cost-management/daily-costs-large.png":::
7575

7676
1. On the **Cost Analysis** page, expand the **Group By** filter, select **Tag**, and then select one of your applied tags:
7777

7878
:::image type="content" source="./media/devtest-lab-configure-cost-management/group-by-tag.png" border="false" alt-text="Screenshot that shows how to change the Group by filter to show cost details based on applied tags.":::
7979

80-
The updated view shows costs in the subscription grouped by the tag according to the lab its resources. For more information, see the [documentation on group and filter options in Cost Management](../cost-management-billing/costs/group-filter.md).
80+
The updated view shows costs in the subscription grouped by the tag according to the lab resources. For more information, see [Group and filter options in Cost Analysis and Budgets](../cost-management-billing/costs/group-filter.md).
8181

8282
## Related content
8383

8484
- [Use tags to organize your Azure resources and management hierarchy](/azure/azure-resource-manager/management/tag-resources)
85-
- Review the [resource naming and tagging decision guide - Cost management and optimization](/azure/cloud-adoption-framework/ready/azure-best-practices/resource-naming-and-tagging-decision-guide)
85+
- [Review the resource naming and tagging decision guide](/azure/cloud-adoption-framework/ready/azure-best-practices/resource-naming-and-tagging-decision-guide)
8686
- [Define DevTest Labs policies](devtest-lab-set-lab-policy.md)
-10.3 KB
Loading

0 commit comments

Comments
 (0)