From 55b6614a69026496af69975d50c1f220bfcc76d4 Mon Sep 17 00:00:00 2001 From: Mitchell Enfinger Date: Wed, 16 Feb 2022 13:51:46 -0500 Subject: [PATCH] added lines for multiple CPUs --- ZertoApiWrapper/Public/Install-ZertoVra.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) 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]@{ }