Skip to content

Commit 621c282

Browse files
committed
Azure Batch cost management updates
1 parent bf7ca41 commit 621c282

File tree

7 files changed

+75
-29
lines changed

7 files changed

+75
-29
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6599,6 +6599,11 @@
65996599
"redirect_url": "/azure/batch/batch-rendering-service",
66006600
"redirect_document_id": false
66016601
},
6602+
{
6603+
"source_path_from_root": "/articles/batch/budget.md",
6604+
"redirect_url": "/azure/batch/plan-to-manage-costs",
6605+
"redirect_document_id": false
6606+
},
66026607
{
66036608
"source_path_from_root": "/articles/best-practices-network-security.md",
66046609
"redirect_url": "/azure/architecture/vdc/networking-virtual-datacenter",

articles/batch/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133
href: batch-account-create-portal.md
134134
- name: Manage Batch accounts with Batch Management .NET
135135
href: batch-management-dotnet.md
136-
- name: Get cost analysis and set budgets
137-
href: budget.md
136+
- name: Plan to manage costs for Azure Batch
137+
href: plan-to-manage-costs.md
138138
- name: Configure public network access with Batch accounts
139139
href: public-network-access.md
140140
- name: Use private endpoints with Batch accounts
80.8 KB
Loading

articles/batch/budget.md renamed to articles/batch/plan-to-manage-costs.md

Lines changed: 68 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,96 @@
11
---
2-
title: Get cost analysis and set budgets for Azure Batch
3-
description: Learn how to get a cost analysis, set a budget, and reduce costs for the underlying compute resources and software licenses used to run your Batch workloads.
2+
title: Plan to manage costs for Azure Batch
3+
description: Learn how to plan for and manage costs for Azure Batch workloads by using cost analysis in the Azure portal.
44
ms.topic: how-to
5-
ms.date: 12/13/2021
5+
ms.author: tomcassidy
6+
author: tomvcassidy
7+
ms.service: batch
8+
ms.date: 01/09/2024
69
---
710

8-
# Get cost analysis and set budgets for Azure Batch
11+
# Plan to manage costs for Azure Batch
912

10-
This topic will help you understand costs that may be associated with Azure Batch, how to set a budget for a Batch pool or account, and ways to reduce the costs for Batch workloads.
13+
This article describes how you plan for and manage costs for Azure Batch. Before you deploy the service, you can use the [Azure pricing calculator](https://azure.microsoft.com/pricing/calculator/) to estimate costs for Azure Batch. Later, as you deploy Azure resources, review the estimated costs.
1114

12-
## Understand costs associated with Batch resources
15+
After you've started using running Batch workloads, use Cost Management features to set budgets and monitor costs. You can also review forecasted costs and identify spending trends to identify areas where you might want to act. Costs for Azure Batch are only a portion of the monthly costs in your Azure bill. Although this article explains how to plan for and manage costs for Azure Batch, you're billed for all Azure services and resources used in your Azure subscription, including the third-party services.
1316

14-
There are no costs for using Azure Batch itself, although there can be charges for the underlying compute resources and software licenses used to run Batch workloads. Costs may be incurred from virtual machines (VMs) in a pool, data transfer from the VM, or any input or output data stored in the cloud.
17+
## Prerequisites
1518

16-
### Virtual machines
19+
Cost analysis in Cost Management supports most Azure account types, but not all of them. To view the full list of supported account types, see [Understand Cost Management data](../cost-management-billing/costs/understand-cost-mgt-data.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn). To view cost data, you need at least read access for an Azure account. For information about assigning access to Azure Cost Management data, see [Assign access to data](../cost-management/assign-access-acm-data.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
1720

18-
Virtual machines are the most significant resource used for Batch processing. The cost of using VMs for Batch is calculated based on the type, quantity, and the duration of use. VM billing options include [Pay-As-You-Go](https://azure.microsoft.com/offers/ms-azr-0003p/) or [reservation](../cost-management-billing/reservations/save-compute-costs-reservations.md) (pay in advance). Both payment options have different benefits depending on your compute workload and will affect your bill differently.
21+
## Estimate costs before using Azure Batch
1922

20-
Each VM in a pool created with [Virtual Machine Configuration](nodes-and-pools.md#virtual-machine-configuration) has an associated OS disk that uses Azure-managed disks. Azure-managed disks have an additional cost, and other disk performance tiers have different costs as well.
23+
Use the [Azure pricing calculator](https://azure.microsoft.com/pricing/calculator/) to estimate costs before you add virtual machines.
2124

22-
### Storage
25+
1. On the **Products** tab, go to the **Compute** section or search for *Batch* in the search bar. on the **Batch** tile, select **Add to estimate** and scroll down to the **Your Estimate** section.
2326

24-
When applications are deployed to Batch nodes (VMs) using [application packages](batch-application-packages.md), you are billed for the Azure Storage resources that your application packages consume. You're also billed for the storage of any input or output files, such as resource files and other log data.
27+
1. Notice that Azure Batch is a free service and that the costs associated with Azure Batch are for the underlying resources that run your workloads. When adding Azure Batch to your estimate, the pricing calculator automatically creates a selection for **Cloud Services** and **Virtual machines**. You can read more about [Azure Cloud Services](../cloud-services/cloud-services-choose-me.md) and [Azure Virtual Machines (VMs)](../virtual-machines/overview.md) in each product's documentation. What you need to know for estimated the cost of Azure Batch is that virtual machines are the most significant resource.
2528

26-
In general, the cost of storage data associated with Batch is much lower than the cost of compute resources.
29+
Select options from the drop-downs. There are various options available to choose from. The options that have the largest impact on your estimate total are your virtual machine's operating system, the operating system license if applicable, the [VM size](../virtual-machines/sizes.md) you select under **INSTANCE**, the number of instances you choose, and the amount of time your month your instances to run.
2730

28-
### Networking resources
31+
Notice that the total estimate changes as you select different options. The estimate appears in the upper corner and the bottom of the **Your Estimate** section.
2932

30-
Batch pools use networking resources, some of which have associated costs. In particular, for Virtual Machine Configuration pools, standard load balancers are used, which require static IP addresses. The load balancers used by Batch are visible for [accounts](accounts.md#batch-accounts) configured in user subscription mode, but not those in Batch service mode.
33+
![Screenshot showing the your estimate section and main options available for Azure Batch.](media/plan-to-manage-costs/batch-pricing-calculator-overview.png)
3134

32-
Standard load balancers incur charges for all data passed to and from Batch pool VMs. Select Batch APIs that retrieve data from pool nodes (such as Get Task/Node File), task application packages, resource/output files, and container images will also incur charges.
35+
You can learn more about the cost of running virtual machines from the [Plan to manage costs for virtual machines documentation](../virtual-machines/plan-to-manage-costs.md).
3336

34-
### Additional services
37+
## Understand understand the full billing model for Azure Batch
3538

36-
Depending on which services you use with your Batch solution, you may incur additional fees. Refer to the [Pricing Calculator](https://azure.microsoft.com/pricing/calculator/) to determine the cost of each additional service. Services commonly used with Batch that may have associated costs include:
39+
Azure Batch runs on Azure infrastructure that accrues costs when you deploy new resources. It's important to understand that there could be other additional infrastructure costs that might accrue.
3740

38-
- Application Insights
39-
- Data Factory
40-
- Azure Monitor
41-
- Virtual Network
42-
- VMs with graphics applications
41+
### How you're charged for Azure Batch
42+
43+
Azure Batch is a free service. There are no costs for Batch itself. However, there can be charges for the underlying compute resources and software licenses used to run Batch workloads. Costs may be incurred from virtual machines in a pool, data transfer from the VM, or any input or output data stored in the cloud.
44+
45+
### Costs that might accrue with Azure Batch
46+
47+
Although Batch itself is a free service, many of the underlying resources that run your workloads aren't. These include:
48+
49+
- [Virtual Machines](https://azure.microsoft.com/pricing/details/virtual-machines/windows/)
50+
- To learn more about the costs associated with virtual machines, see the [How you're charged for virtual machines section of Plan to manage costs for virtual machines](../virtual-machines/plan-to-manage-costs.md#how-youre-charged-for-virtual-machines).
51+
- Each VM in a pool created with [Virtual Machine Configuration](nodes-and-pools.md#virtual-machine-configuration) has an associated OS disk that uses Azure-managed disks. Azure-managed disks have an additional cost, and other disk performance tiers have different costs as well.
52+
- Storage
53+
- When applications are deployed to Batch node virtual machines using [application packages](batch-application-packages.md), you're billed for the Azure Storage resources that your application packages consume. You're also billed for the storage of any input or output files, such as resource files and other log data.
54+
- In general, the cost of storage data associated with Batch is much lower than the cost of compute resources.
55+
- In some cases, a [load balancer](https://azure.microsoft.com/pricing/details/load-balancer/)
56+
- Networking resources
57+
- For Virtual Machine Configuration pools, standard load balancers are used, which require static IP addresses. The load balancers used by Batch are visible for [accounts](accounts.md#batch-accounts) configured in user subscription mode, but not those in Batch service mode.
58+
- Standard load balancers incur charges for all data passed to and from Batch pool VMs. Select Batch APIs that retrieve data from pool nodes (such as Get Task/Node File), task application packages, resource/output files, and container images will also incur charges.
59+
- [Virtual Network](https://azure.microsoft.com/pricing/details/virtual-network/)
60+
- Depending on what services you use, your Batch solution may incur additional fees. Services commonly used with Batch that may have associated costs include:
61+
- Application Insights
62+
- Data Factory
63+
- Azure Monitor
64+
65+
### Costs might accrue after resource deletion
66+
67+
After you delete Azure Batch resources, the following resources might continue to exist. They continue to accrue costs until you delete them.
68+
69+
- Virtual machine
70+
- Any disks deployed other than the OS and local disks
71+
- By default, the OS disk is deleted with the VM, but it can be [set not to during the VM's creation](delete.md)
72+
- Virtual network
73+
- Your virtual NIC and public IP, if applicable, can be set to delete along with your virtual machine
74+
- Bandwidth
75+
- Load balancer
76+
77+
For virtual networks, one virtual network is billed per subscription and per region. Virtual networks cannot span regions or subscriptions. Setting up private endpoints in vNet setups may also incur charges.
78+
79+
Bandwidth is charged by usage; the more data transferred, the more you're charged.
80+
81+
### Using Azure Prepayment with Azure Batch
82+
83+
While Azure Batch is a free service, you can pay for underlying resource charges with your Azure Prepayment credit. However, you can't use Azure Prepayment credit to pay for charges for third party products and services including those from the Azure Marketplace.
4384

4485
## View cost analysis and create budgets
4586

46-
[Azure Cost Management](../cost-management-billing/cost-management-billing-overview.md) lets you plan, analyze and reduce your spending to maximize your cloud investment. The usage costs for all Azure services are available, including Azure Batch. You can view and filter Batch costs to be viewed and filtered, forecast future costs, and set spending limits with alerts when those limits are reached.
87+
As you use Azure resources with Azure Batch, you incur costs. Azure resource usage unit costs vary by time intervals (seconds, minutes, hours, and days) or by unit usage (bytes, megabytes, and so on.) As soon as Azure resource use starts, costs are incurred, and you can see the costs in [cost analysis](../cost-management/quick-acm-cost-analysis.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn). [Azure Cost Management](../cost-management-billing/cost-management-billing-overview.md) lets you plan, analyze and reduce your spending to maximize your cloud investment. You can view and filter Batch costs to be viewed and filtered, forecast future costs, and set spending limits with alerts when those limits are reached.
4788

4889
In the Azure portal, you can create budgets and spending alerts for your Batch pools or Batch accounts. Budgets and alerts are useful for notifying stakeholders of any risks of overspending, although it's possible for there to be a delay in spending alerts and to slightly exceed a budget.
4990

5091
The following screenshot shows an example of the **Cost analysis** view for a subscription, filtered to only display the accumulated costs associated with all Batch accounts. The lower charts show how the total cost for the period selected can be categorized by consumed service, location, and meter. While this is an example and is not meant to be reflective of costs you may see for your subscriptions, it is typical in that the largest cost is for the virtual machines that are allocated for Batch pool nodes.
5192

52-
:::image type="content" source="media/batch-budget/subscription-cost-analysis.png" alt-text="Screenshot showing cost analysis in the Azure portal for all Batch accounts in a subscription.":::
93+
:::image type="content" source="media/plan-to-manage-costs/subscription-cost-analysis.png" alt-text="Screenshot showing cost analysis in the Azure portal for all Batch accounts in a subscription.":::
5394

5495
A further level of cost analysis detail can be obtained by specifying a **Resource** filter. For Batch accounts, these values are the Batch account name plus pool name. This allows you to view costs for a specific pool, multiple pools, or one or more accounts.
5596

@@ -64,7 +105,7 @@ For Batch accounts created with the Batch service pool allocation mode:
64105
1. Under **Cost Management**, select **Cost analysis**.
65106
1. Select **Add Filter**. In the first drop-down, select **Resource**.
66107
1. In the second drop-down, select the Batch pool. When the pool is selected, you will see the cost analysis for your pool. The screenshot below shows example data.
67-
:::image type="content" source="media/batch-budget/pool-cost-analysis.png" alt-text="Screenshot showing cost analysis of a Batch pool in the Azure portal.":::
108+
:::image type="content" source="media/plan-to-manage-costs/pool-cost-analysis.png" alt-text="Screenshot showing cost analysis of a Batch pool in the Azure portal.":::
68109

69110
The resulting cost analysis shows the cost of the pool as well as the resources that contribute to this cost. In this example, the VMs used in the pool are the most costly resource.
70111

@@ -83,7 +124,7 @@ For Batch accounts created with the user subscription pool allocation mode:
83124
1. Select **Add Filter**. In the first drop-down, select **Tag**.
84125
1. In the second drop-down, select **poolname**.
85126
1. In the third drop-down, select the Batch pool. When the pool is selected, you will see the cost analysis for your pool. The screenshot below shows example data.
86-
:::image type="content" source="media/batch-budget/user-subscription-pool.png" alt-text="Screenshot showing cost analysis of a user subscription Batch pool in the Azure portal.":::
127+
:::image type="content" source="media/plan-to-manage-costs/user-subscription-pool.png" alt-text="Screenshot showing cost analysis of a user subscription Batch pool in the Azure portal.":::
87128

88129
Note that if you're interested in viewing cost data for all pools in a user subscription Batch account, you can select **batchaccountname** in the second drop-down and the name of your Batch account in the third drop-down.
89130

0 commit comments

Comments
 (0)