diff --git a/Tests/Public/Install-ZertoVra.Tests.ps1 b/Tests/Public/Install-ZertoVra.Tests.ps1 index a5005d3..221000f 100644 --- a/Tests/Public/Install-ZertoVra.Tests.ps1 +++ b/Tests/Public/Install-ZertoVra.Tests.ps1 @@ -6,7 +6,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' { Context "$global:function::Parameter Unit Tests" { It "$global:function should have exactly 24 parameters defined" { - (Get-Command $global:function).Parameters.Count | Should -Be 24 + (Get-Command $global:function).Parameters.Count | Should -Be 25 } $ParameterTestCases = @( diff --git a/ZertoApiWrapper/Public/Install-ZertoVra.ps1 b/ZertoApiWrapper/Public/Install-ZertoVra.ps1 index 3ce61d2..eb76faa 100644 --- a/ZertoApiWrapper/Public/Install-ZertoVra.ps1 +++ b/ZertoApiWrapper/Public/Install-ZertoVra.ps1 @@ -25,6 +25,11 @@ function Install-ZertoVra { )] [ValidateRange(1, 16)] [int]$memoryInGB = 3, + [Parameter( + HelpMessage = "Initial number of CPUs to assign to the VRA. Default is 1, Minimum is 1, Maximum is 4" + )] + [ValidateRange(1, 4)] + [int]$NumOfCpus = 1, [Parameter( HelpMessage = "Bandwidth group to assign to the VRA. If unspecified will assign to the 'default_group'" )] @@ -136,6 +141,7 @@ function Install-ZertoVra { } $vraBasic['HostIdentifier'] = $hostIdentifier.toString() $vraBasic['MemoryInGB'] = $memoryInGB + $vraBasic['NumOfCpus'] = $NumOfCpus $vraBasic['NetworkIdentifier'] = $networkIdentifier.toString() $vraBasic['UsePublicKeyInsteadOfCredentials'] = $true $vraBasicNetwork = [ordered]@{ }