Skip to content

Commit 5cc9db8

Browse files
author
jasper-schneider
committed
NewPool parameter tweak
1 parent 5bdf417 commit 5cc9db8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Test-NewPool
3131
$osFamily = "4"
3232
$targetDedicated = 1
3333
$resizeTimeout = ([TimeSpan]::FromMinutes(10))
34-
New-AzureBatchPool_ST -Name $poolName1 -OSFamily $osFamily -TargetDedicated $targetDedicated -ResizeTimeout $resizeTimeout -BatchContext $context
34+
New-AzureBatchPool_ST $poolName1 -OSFamily $osFamily -TargetDedicated $targetDedicated -ResizeTimeout $resizeTimeout -BatchContext $context
3535
$pool1 = Get-AzureBatchPool_ST -Name $poolName1 -BatchContext $context
3636

3737
# Verify created Pool matches expectations

src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class NewBatchPoolCommand : BatchObjectModelCmdletBase
2727
internal const string TargetDedicatedParameterSet = "TargetDedicated";
2828
internal const string AutoScaleParameterSet = "AutoScale";
2929

30-
[Parameter(Mandatory = true, HelpMessage = "The name of the Pool to create.")]
30+
[Parameter(Position = 0, Mandatory = true, HelpMessage = "The name of the Pool to create.")]
3131
[ValidateNotNullOrEmpty]
3232
public string Name { get; set; }
3333

0 commit comments

Comments
 (0)