File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,6 @@ start_task = batchmodels.StartTask(
163
163
)
164
164
start_task.run_elevated = True
165
165
166
- # Create the unbound pool
167
- new_pool = batchmodels.PoolAddParameter(
168
- id = pool_id,
169
- vm_size = vm_size,
170
- target_dedicated_nodes = node_count,
171
- start_task = start_task
172
- )
173
-
174
166
# Create an ImageReference which specifies the image from
175
167
# Shared Image Gallery to install on the nodes.
176
168
ir = batchmodels.ImageReference(
@@ -185,8 +177,14 @@ vmc = batchmodels.VirtualMachineConfiguration(
185
177
node_agent_sku_id = " batch.node.ubuntu 18.04"
186
178
)
187
179
188
- # Assign the virtual machine configuration to the pool
189
- new_pool.virtual_machine_configuration = vmc
180
+ # Create the unbound pool
181
+ new_pool = batchmodels.PoolAddParameter(
182
+ id = pool_id,
183
+ vm_size = vm_size,
184
+ target_dedicated_nodes = node_count,
185
+ virtual_machine_configuration = vmc,
186
+ start_task = start_task
187
+ )
190
188
191
189
# Create pool in the Batch service
192
190
client.pool.add(new_pool)
You can’t perform that action at this time.
0 commit comments