Skip to content

Commit 3da5598

Browse files
Merge pull request #218310 from alfpark/batch1
Update Batch no public ip simplified REST API
2 parents 159d593 + 08b98f5 commit 3da5598

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

articles/batch/simplified-node-communication-pool-no-public-ip.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create a simplified node communication pool without public IP addresses (preview)
33
description: Learn how to create an Azure Batch simplified node communication pool without public IP addresses.
44
ms.topic: how-to
5-
ms.date: 11/08/2022
5+
ms.date: 11/14/2022
66
ms.custom: references_regions
77
---
88

@@ -85,23 +85,23 @@ The example below shows how to use the [Batch Service REST API](/rest/api/batchs
8585
### REST API URI
8686

8787
```http
88-
POST {batchURL}/pools?api-version=2020-03-01.11.0
88+
POST {batchURL}/pools?api-version=2022-10-01.16.0
8989
client-request-id: 00000000-0000-0000-0000-000000000000
9090
```
9191

9292
### Request body
9393

9494
```json
9595
"pool": {
96-
"id": "pool2",
97-
"vmSize": "standard_a1",
96+
"id": "pool-npip",
97+
"vmSize": "standard_d2s_v3",
9898
"virtualMachineConfiguration": {
9999
"imageReference": {
100100
"publisher": "Canonical",
101-
"offer": "UbuntuServer",
102-
"sku": "18.04-lts"
101+
"offer": "0001-com-ubuntu-server-jammy",
102+
"sku": "22_04-lts"
103103
},
104-
"nodeAgentSKUId": "batch.node.ubuntu 18.04"
104+
"nodeAgentSKUId": "batch.node.ubuntu 22.04"
105105
}
106106
"networkConfiguration": {
107107
"subnetId": "/subscriptions/<your_subscription_id>/resourceGroups/<your_resource_group>/providers/Microsoft.Network/virtualNetworks/<your_vnet_name>/subnets/<your_subnet_name>",
@@ -110,20 +110,15 @@ client-request-id: 00000000-0000-0000-0000-000000000000
110110
}
111111
},
112112
"resizeTimeout": "PT15M",
113-
"targetDedicatedNodes": 5,
113+
"targetDedicatedNodes": 2,
114114
"targetLowPriorityNodes": 0,
115-
"taskSlotsPerNode": 3,
115+
"taskSlotsPerNode": 1,
116116
"taskSchedulingPolicy": {
117117
"nodeFillType": "spread"
118118
},
119119
"enableAutoScale": false,
120-
"enableInterNodeCommunication": true,
121-
"metadata": [
122-
{
123-
"name": "myproperty",
124-
"value": "myvalue"
125-
}
126-
]
120+
"enableInterNodeCommunication": false,
121+
"targetNodeCommunicationMode": "simplified"
127122
}
128123
```
129124

0 commit comments

Comments
 (0)