Skip to content

Commit 30934e2

Browse files
author
jasper-schneider
committed
NewPool param change per CR feedback
1 parent 1e0ad8e commit 30934e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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
@@ -65,7 +65,7 @@ function Test-NewPool
6565

6666
$metadata = @{"meta1"="value1";"meta2"="value2"}
6767

68-
New-AzureBatchPool_ST -Name $poolName2 -VMSize $vmSize -OSFamily $osFamily -TargetOSVersion $targetOSVersion -MaxTasksPerVM $maxTasksPerVM -AutoScaleFormula $autoScaleFormula -StartTask $startTask -SchedulingPolicy $schedulingPolicy -Communication -Metadata $metadata -BatchContext $context
68+
New-AzureBatchPool_ST -Name $poolName2 -VMSize $vmSize -OSFamily $osFamily -TargetOSVersion $targetOSVersion -MaxTasksPerVM $maxTasksPerVM -AutoScaleFormula $autoScaleFormula -StartTask $startTask -SchedulingPolicy $schedulingPolicy -CommunicationEnabled -Metadata $metadata -BatchContext $context
6969

7070
$pool2 = Get-AzureBatchPool_ST -Name $poolName2 -BatchContext $context
7171

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public class NewBatchPoolCommand : BatchObjectModelCmdletBase
6868
public IDictionary Metadata { get; set; }
6969

7070
[Parameter(HelpMessage = "Set up the Pool for direct communication between dedicated VMs.")]
71-
public SwitchParameter Communication { get; set; }
71+
public SwitchParameter CommunicationEnabled { get; set; }
7272

73-
[Parameter(HelpMessage = "The start task specification for the Pool. The start task is run when a VM joins a Pool, or when the VM is rebooted or reimaged.")]
73+
[Parameter(HelpMessage = "The start task specification for the Pool. The start task is run when a VM joins the Pool, or when the VM is rebooted or reimaged.")]
7474
[ValidateNotNullOrEmpty]
7575
public PSStartTask StartTask { get; set; }
7676

@@ -93,7 +93,7 @@ public override void ExecuteCmdlet()
9393
MaxTasksPerVM = this.MaxTasksPerVM,
9494
SchedulingPolicy = this.SchedulingPolicy,
9595
Metadata = this.Metadata,
96-
Communication = this.Communication.IsPresent,
96+
Communication = this.CommunicationEnabled.IsPresent,
9797
StartTask = this.StartTask,
9898
CertificateReferences = this.CertificateReferences,
9999
AdditionalBehaviors = this.AdditionalBehaviors

0 commit comments

Comments
 (0)