File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ containerConfig.ContainerRegistries = new List<ContainerRegistry> { containerReg
174
174
VirtualMachineConfiguration virtualMachineConfiguration = new VirtualMachineConfiguration (
175
175
imageReference : imageReference ,
176
176
nodeAgentSkuId : " batch.node.ubuntu 16.04" );
177
+ virtualMachineConfiguration .ContainerConfiguration = containerConfig ;
177
178
178
179
// Set a native host command line start task
179
180
StartTask startTaskContainer = new StartTask ( commandLine : " <native-host-command-line>" );
@@ -183,6 +184,9 @@ CloudPool pool = batchClient.PoolOperations.CreatePool(
183
184
poolId : poolId ,
184
185
virtualMachineSize : " Standard_NC6" ,
185
186
virtualMachineConfiguration : virtualMachineConfiguration );
187
+
188
+ // Start the task in the pool
189
+ pool .StartTask = startTaskContainer ;
186
190
.. .
187
191
```
188
192
You can’t perform that action at this time.
0 commit comments