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
@@ -131,16 +131,14 @@ You can get the value of these service-defined variables to make adjustments tha
131
131
| $TaskSlotsPerNode |The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. |
132
132
| $CurrentDedicatedNodes |The current number of dedicated compute nodes. |
133
133
| $CurrentLowPriorityNodes |The current number of Spot compute nodes, including any nodes that have been preempted. |
134
+
| $UsableNodeCount | The number of usable compute nodes. |
134
135
| $PreemptedNodeCount | The number of nodes in the pool that are in a preempted state. |
135
136
136
137
> [!WARNING]
137
138
> Select service-defined variables will be retired after **31 March 2024** as noted in the table above. After the retirement
138
139
> date, these service-defined variables will no longer be populated with sample data. Please discontinue use of these variables
139
140
> before this date.
140
141
141
-
> [!WARNING]
142
-
> `$PreemptedNodeCount` is currently not available and returns `0` valued data.
143
-
144
142
> [!NOTE]
145
143
> Use `$RunningTasks` when scaling based on the number of tasks running at a point in time, and `$ActiveTasks` when scaling based on the number of tasks that are queued up to run.
Because there might be a delay in sample availability, you should always specify a time range with a look-back start time that's older than one minute. It takes approximately one minute for samples to propagate through the system, so samples in the range `(0 * TimeInterval_Second, 60 * TimeInterval_Second)` might not be available. Again, you can use the percentage parameter of `GetSample()` to force a particular sample percentage requirement.
304
302
305
303
> [!IMPORTANT]
306
-
> We strongly recommend that you **avoid relying *only* on `GetSample(1)` in your autoscale formulas**. This is because `GetSample(1)` essentially says to the Batch service, "Give me the last sample you have, no matter how long ago you retrieved it." Since it's only a single sample, and it might be an older sample, it might not be representative of the larger picture of recent task or resource state. If you do use `GetSample(1)`, make sure that it's part of a larger statement and not the only data point that your formula relies on.
304
+
> We strongly recommend that you **avoid relying *only* on `GetSample(1)` in your autoscale formulas**. This is because `GetSample(1)` essentially says to the Batch service, "Give me the last sample you had, no matter how long ago you retrieved it." Since it's only a single sample, and it might be an older sample, it might not be representative of the larger picture of recent task or resource state. If you do use `GetSample(1)`, make sure that it's part of a larger statement and not the only data point that your formula relies on.
Copy file name to clipboardExpand all lines: articles/batch/batch-sig-images.md
+10-15Lines changed: 10 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ When you create an Azure Batch pool using the Virtual Machine Configuration, you
14
14
15
15
## Benefits of the Azure Compute Gallery
16
16
17
-
When you use the Azure Compute Gallery for your custom image, you have control over the operating system type and configuration, as well as the type of data disks. Your Shared Image can include applications and reference data that become available on all the Batch pool nodes as soon as they are provisioned.
17
+
When you use the Azure Compute Gallery for your custom image, you have control over the operating system type and configuration, as well as the type of data disks. Your Shared Image can include applications and reference data that become available on all the Batch pool nodes as soon as they're provisioned.
18
18
19
19
You can also have multiple versions of an image as needed for your environment. When you use an image version to create a VM, the image version is used to create new disks for the VM.
20
20
@@ -32,13 +32,11 @@ Using a Shared Image configured for your scenario can provide several advantages
32
32
33
33
## Prerequisites
34
34
35
-
> [!NOTE]
36
-
> Currently, Azure Batch does not support the ‘TrustedLaunch’ feature. You must use the standard security type to create a custom image instead.
37
-
>
38
-
> You need to authenticate using Microsoft Entra ID. If you use shared-key-auth, you will get an authentication error.
39
-
40
35
-**An Azure Batch account.** To create a Batch account, see the Batch quickstarts using the [Azure portal](quick-create-portal.md) or [Azure CLI](quick-create-cli.md).
41
36
37
+
> [!NOTE]
38
+
> Authentication using Microsoft Entra ID is required. If you use Shared Key Auth, you will get an authentication error.
39
+
42
40
-**an Azure Compute Gallery image**. To create a Shared Image, you need to have or create a managed image resource. The image should be created from snapshots of the VM's OS disk and optionally its attached data disks.
43
41
44
42
> [!NOTE]
@@ -67,7 +65,7 @@ The following steps show how to prepare a VM, take a snapshot, and create an ima
67
65
68
66
### Prepare a VM
69
67
70
-
If you are creating a new VM for the image, use a first party Azure Marketplace image supported by Batch as the base image for your managed image. Only first party images can be used as a base image.
68
+
If you're creating a new VM for the image, use a first party Azure Marketplace image supported by Batch as the base image for your managed image. Only first party images can be used as a base image.
71
69
72
70
To get a full list of current Azure Marketplace image references supported by Azure Batch, use one of the following APIs to return a list of Windows and Linux VM images including the node agent SKU IDs for each image:
73
71
@@ -82,10 +80,10 @@ To get a full list of current Azure Marketplace image references supported by Az
82
80
Follow these guidelines when creating VMs:
83
81
84
82
- Ensure the VM is created with a managed disk. This is the default storage setting when you create a VM.
85
-
-Do not install Azure extensions, such as the Custom Script extension, on the VM. If the image contains a pre-installed extension, Azure may encounter problems when deploying the Batch pool.
83
+
-Don't install Azure extensions, such as the Custom Script extension, on the VM. If the image contains a pre-installed extension, Azure may encounter problems when deploying the Batch pool.
86
84
- When using attached data disks, you need to mount and format the disks from within a VM to use them.
87
85
- Ensure that the base OS image you provide uses the default temp drive. The Batch node agent currently expects the default temp drive.
88
-
- Ensure that the OS disk is not encrypted.
86
+
- Ensure that the OS disk isn't encrypted.
89
87
- Once the VM is running, connect to it via RDP (for Windows) or SSH (for Linux). Install any necessary software or copy desired data.
90
88
- For faster pool provisioning, use the [ReadWrite disk cache setting](../virtual-machines/premium-storage-performance.md#disk-caching) for the VM's OS disk.
91
89
@@ -110,9 +108,6 @@ Once you have successfully created your managed image, you need to create an Azu
110
108
111
109
To create a pool from your Shared Image using the Azure CLI, use the `az batch pool create` command. Specify the Shared Image ID in the `--image` field. Make sure the OS type and SKU matches the versions specified by `--node-agent-sku-id`
112
110
113
-
> [!NOTE]
114
-
> You need to authenticate using Microsoft Entra ID. If you use shared-key-auth, you will get an authentication error.
115
-
116
111
> [!IMPORTANT]
117
112
> The node agent SKU id must align with the publisher/offer/SKU in order for the node to start.
118
113
@@ -233,7 +228,7 @@ Use the following steps to create a pool from a Shared Image in the Azure portal
233
228
1. In the **Image Type** section, select **Azure Compute Gallery**.
234
229
1. Complete the remaining sections with information about your managed image.
235
230
1. Select **OK**.
236
-
1. Once the node is allocated, use **Connect** to generate user and the RDP file for Windows OR use SSH to for Linux to login to the allocated node and verify.
231
+
1. Once the node is allocated, use **Connect** to generate user and the RDP file for Windows OR use SSH to for Linux to log in to the allocated node and verify.
237
232
238
233

239
234
@@ -242,9 +237,9 @@ Use the following steps to create a pool from a Shared Image in the Azure portal
242
237
243
238
If you plan to create a pool with hundreds or thousands of VMs or more using a Shared Image, use the following guidance.
244
239
245
-
-**Azure Compute Gallery replica numbers.** For every pool with up to 300 instances, we recommend you keep at least one replica. For example, if you are creating a pool with 3000 VMs, you should keep at least 10 replicas of your image. We always suggest keeping more replicas than minimum requirements for better performance.
240
+
-**Azure Compute Gallery replica numbers.** For every pool with up to 300 instances, we recommend you keep at least one replica. For example, if you're creating a pool with 3,000 VMs, you should keep at least 10 replicas of your image. We always suggest keeping more replicas than minimum requirements for better performance.
246
241
247
-
-**Resize timeout.** If your pool contains a fixed number of nodes (if it doesn't autoscale), increase the `resizeTimeout` property of the pool depending on the pool size. For every 1000 VMs, the recommended resize timeout is at least 15 minutes. For example, the recommended resize timeout for a pool with 2000 VMs is at least 30 minutes.
242
+
-**Resize timeout.** If your pool contains a fixed number of nodes (if it doesn't autoscale), increase the `resizeTimeout` property of the pool depending on the pool size. For every 1,000 VMs, the recommended resize timeout is at least 15 minutes. For example, the recommended resize timeout for a pool with 2,000 VMs is at least 30 minutes.
0 commit comments