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/batch/batch-pool-node-error-checking.md
+49-2Lines changed: 49 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Pool and node errors
3
3
description: Learn about background operations, errors to check for, and how to avoid errors when you create Azure Batch pools and nodes.
4
-
ms.date: 06/27/2024
4
+
ms.date: 01/22/2025
5
5
ms.topic: how-to
6
6
---
7
7
@@ -13,7 +13,54 @@ Make sure to set your applications to implement comprehensive error checking, es
13
13
14
14
## Pool errors
15
15
16
-
Pool errors might be related to resize timeout or failure, automatic scaling failure, or pool deletion failure.
16
+
Pool errors might be related to resize timeout or failure, automatic scaling failure, or pool deletion failure. With the inclusion of more detailed error messages, diagnosing and resolving these issues has become more straightforward.
17
+
18
+
### Relay Provider Error Details
19
+
Relay provider errors are directly relayed from the underlying Azure resource providers, such as the Azure Virtual Machine Scale Set (VMSS), and they offer deeper insights into why a pool operation failed. These errors typically occur when a pool's creation, resizing, or deletion is impacted by a lower-layer service issue.
20
+
21
+
#### Structure of Relay Provider Error
22
+
These errors are provided in a structured JSON format containing the following key components:
23
+
24
+
-**Error Code**: The type of error encountered (e.g., AllocationFailed, BadRequest, etc.).
25
+
-**Error Message**: Brief description of the error
26
+
-**Provider Error Json**: A detailed error message generated by the underlying Azure service (e.g., VMSS).
27
+
-**Provider Error Truncated**: A Boolean indicating whether the provider error message has been truncated due to size limits.
28
+
29
+
#### Example Relay Provider Errors
30
+
31
+
##### Example 1
32
+
**Error Code**: `AllocationFailed`
33
+
**Error Message**: Desired number of dedicated nodes could not be allocated
34
+
**Provider Error JSON**:
35
+
```json
36
+
{
37
+
"error": {
38
+
"code": "BadRequest",
39
+
"message": "The selected VM size 'STANDARD_A1_V2' cannot boot Hypervisor Generation '2'. If this was a Create operation, please ensure that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation, please choose a Hypervisor Generation '2' VM Size."
40
+
}
41
+
}
42
+
```
43
+
**Provider Error JSON Truncated**: False
44
+
45
+
This error indicates a mismatch between the VM size and the Hypervisor generation. The error message suggests selecting a compatible VM size to resolve the issue.
46
+
47
+
##### Example 2
48
+
**Error Code**: `AllocationFailed`
49
+
**Error Message**: An internal error was occurred while resizing the pool
50
+
**Provider Error JSON**:
51
+
```json
52
+
{
53
+
"error": {
54
+
"code": "ScopeLocked",
55
+
"message": "The scope '/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/VirtualMachineScaleSets/<guid>-azurebatch-VMSS-D' cannot perform write operation because the following scope(s) are locked: '/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/VirtualMachineScaleSets/<guid>-azurebatch-VMSS-D'. Please remove the lock and try again."
56
+
}
57
+
}
58
+
```
59
+
**Provider Error JSON Truncated**: False
60
+
61
+
This error indicates that the pool resize operation failed because a scope was locked, preventing the write operation; removing the lock can resolve the issue.
62
+
63
+
Relay provider errors offer deeper insights into pool operation failures, making it easier to diagnose and resolve issues directly from the Azure services.
0 commit comments