Skip to content

Commit cd93657

Browse files
Merge pull request #293163 from Turupu-Sameera/main
Add Relay RPError Documentation in Pool Errors
2 parents 95ba6b1 + a85f105 commit cd93657

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

articles/batch/batch-pool-node-error-checking.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Pool and node errors
33
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
55
ms.topic: how-to
66
---
77

@@ -13,7 +13,54 @@ Make sure to set your applications to implement comprehensive error checking, es
1313

1414
## Pool errors
1515

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

1865
### Resize timeout or failure
1966

0 commit comments

Comments
 (0)