@@ -13,26 +13,50 @@ Creates a pool in the Batch service.
1313
1414## SYNTAX
1515
16- ### VirtualMachineAndTargetDedicated (Default)
16+ ### CloudServiceAndTargetDedicated (Default)
1717```
1818New-AzBatchPool [-Id] <String> -VirtualMachineSize <String> [-DisplayName <String>] [-ResizeTimeout <TimeSpan>]
1919 [-TargetDedicatedComputeNodes <Int32>] [-TargetLowPriorityComputeNodes <Int32>] [-TaskSlotsPerNode <Int32>]
20- [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>]
21- [-Metadata <IDictionary>] [-InterComputeNodeCommunicationEnabled]
22- [-StartTask <PSStartTask>] [-ApplicationPackageReferences <PSApplicationPackageReference[]>]
20+ [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>] [-Metadata <IDictionary>]
21+ [-InterComputeNodeCommunicationEnabled] [-StartTask <PSStartTask>]
22+ [-ApplicationPackageReferences <PSApplicationPackageReference[]>]
23+ [-NetworkConfiguration <PSNetworkConfiguration>] [-MountConfiguration <PSMountConfiguration[]>]
24+ [-UserAccount <PSUserAccount[]>] -BatchContext <BatchAccountContext>
25+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
26+ ```
27+
28+ ### VirtualMachineAndTargetDedicated
29+ ```
30+ New-AzBatchPool [-Id] <String> -VirtualMachineSize <String> [-DisplayName <String>] [-ResizeTimeout <TimeSpan>]
31+ [-TargetDedicatedComputeNodes <Int32>] [-TargetLowPriorityComputeNodes <Int32>] [-TaskSlotsPerNode <Int32>]
32+ [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>] [-Metadata <IDictionary>]
33+ [-InterComputeNodeCommunicationEnabled] [-StartTask <PSStartTask>]
34+ [-ApplicationPackageReferences <PSApplicationPackageReference[]>]
2335 [-VirtualMachineConfiguration <PSVirtualMachineConfiguration>]
2436 [-NetworkConfiguration <PSNetworkConfiguration>] [-MountConfiguration <PSMountConfiguration[]>]
25- [-UserAccount <PSUserAccount[]>] -BatchContext <BatchAccountContext>
37+ [-UserAccount <PSUserAccount[]>] -BatchContext <BatchAccountContext>
38+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
39+ ```
40+
41+ ### CloudServiceAndAutoScale
42+ ```
43+ New-AzBatchPool [-Id] <String> -VirtualMachineSize <String> [-DisplayName <String>]
44+ [-AutoScaleEvaluationInterval <TimeSpan>] [-AutoScaleFormula <String>] [-TaskSlotsPerNode <Int32>]
45+ [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>] [-Metadata <IDictionary>]
46+ [-InterComputeNodeCommunicationEnabled] [-StartTask <PSStartTask>]
47+ [-ApplicationPackageReferences <PSApplicationPackageReference[]>]
48+ [-NetworkConfiguration <PSNetworkConfiguration>] [-MountConfiguration <PSMountConfiguration[]>]
49+ [-UserAccount <PSUserAccount[]>] -BatchContext <BatchAccountContext>
2650 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2751```
2852
2953### VirtualMachineAndAutoScale
3054```
3155New-AzBatchPool [-Id] <String> -VirtualMachineSize <String> [-DisplayName <String>]
3256 [-AutoScaleEvaluationInterval <TimeSpan>] [-AutoScaleFormula <String>] [-TaskSlotsPerNode <Int32>]
33- [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>]
34- [-Metadata <IDictionary> ] [-InterComputeNodeCommunicationEnabled ]
35- [-StartTask <PSStartTask>] [- ApplicationPackageReferences <PSApplicationPackageReference[]>]
57+ [-UpgradePolicy <PSUpgradePolicy>] [-TaskSchedulingPolicy <PSTaskSchedulingPolicy>] [-Metadata <IDictionary>]
58+ [-InterComputeNodeCommunicationEnabled ] [-StartTask <PSStartTask> ]
59+ [-ApplicationPackageReferences <PSApplicationPackageReference[]>]
3660 [-VirtualMachineConfiguration <PSVirtualMachineConfiguration>]
3761 [-NetworkConfiguration <PSNetworkConfiguration>] [-MountConfiguration <PSMountConfiguration[]>]
3862 [-UserAccount <PSUserAccount[]>] -BatchContext <BatchAccountContext>
@@ -44,8 +68,6 @@ The **New-AzBatchPool** cmdlet creates a pool in the Azure Batch service under t
4468
4569## EXAMPLES
4670
47- The pool is configured to use STANDARD_D1_V2 virtual machines with operating system version of family four.
48-
4971### Example 1: Create a new pool using the TargetDedicated parameter set using VirtualMachineConfiguration
5072``` powershell
5173$imageReference = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSImageReference" -ArgumentList @("WindowsServer", "MicrosoftWindowsServer", "2016-Datacenter", "*")
@@ -105,7 +127,7 @@ The default value is 15 minutes, and the minimum value is 5 minutes.
105127
106128` ` ` yaml
107129Type : System.Nullable`1[System.TimeSpan]
108- Parameter Sets : VirtualMachineAndAutoScale
130+ Parameter Sets : CloudServiceAndAutoScale, VirtualMachineAndAutoScale
109131Aliases :
110132
111133Required : False
@@ -120,7 +142,7 @@ Specifies the formula for automatically scaling the pool.
120142
121143` ` ` yaml
122144Type : System.String
123- Parameter Sets : VirtualMachineAndAutoScale
145+ Parameter Sets : CloudServiceAndAutoScale, VirtualMachineAndAutoScale
124146Aliases :
125147
126148Required : False
@@ -258,7 +280,7 @@ Specifies the time-out for allocating compute nodes to the pool.
258280
259281` ` ` yaml
260282Type : System.Nullable`1[System.TimeSpan]
261- Parameter Sets : VirtualMachineAndTargetDedicated
283+ Parameter Sets : CloudServiceAndTargetDedicated, VirtualMachineAndTargetDedicated
262284Aliases :
263285
264286Required : False
@@ -289,7 +311,7 @@ Specifies the target number of dedicated compute nodes to allocate to the pool.
289311
290312` ` ` yaml
291313Type : System.Nullable`1[System.Int32]
292- Parameter Sets : VirtualMachineAndTargetDedicated
314+ Parameter Sets : CloudServiceAndTargetDedicated, VirtualMachineAndTargetDedicated
293315Aliases : TargetDedicated
294316
295317Required : False
@@ -304,7 +326,7 @@ Specifies the target number of low-priority compute nodes to allocate to the poo
304326
305327` ` ` yaml
306328Type : System.Nullable`1[System.Int32]
307- Parameter Sets : VirtualMachineAndTargetDedicated
329+ Parameter Sets : CloudServiceAndTargetDedicated, VirtualMachineAndTargetDedicated
308330Aliases :
309331
310332Required : False
@@ -458,4 +480,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
458480
459481[Remove-AzBatchPool](./Remove-AzBatchPool.md)
460482
461- [Azure Batch Cmdlets](/powershell/module/Az.Batch/)
483+ [Azure Batch Cmdlets](/powershell/module/Az.Batch/)
0 commit comments