From 8bc69441d8c2ff3ba3dac26335b4103391ffe18d Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 19 Feb 2019 22:14:41 -0500 Subject: [PATCH] Create Install-Vra.ps1 --- ZertoApiWrapper/Public/Install-Vra.ps1 | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ZertoApiWrapper/Public/Install-Vra.ps1 diff --git a/ZertoApiWrapper/Public/Install-Vra.ps1 b/ZertoApiWrapper/Public/Install-Vra.ps1 new file mode 100644 index 0000000..d3e0403 --- /dev/null +++ b/ZertoApiWrapper/Public/Install-Vra.ps1 @@ -0,0 +1,29 @@ +function Install-Vra { + [cmdletbinding()] + param( + [Parameter( Mandatory = $true )] + [string]$hostName, + [Parameter( Mandatory = $true )] + [string]$datastoreName, + [Parameter( Mandatory = $true )] + [string]$networkName, + [Parameter()] + [int]$memoryInGB = 3, + [Parameter()] + [string]$groupName, + [Parameter( ParameterSetName = "Dhcp", Mandatory = $true )] + [switch]$Dhcp, + [Parameter( ParameterSetName = "StaticIp", Mandatory = $true )] + [ValidateScript( {$_ -match [IPAddress]$_ })] + [string]$vraIpAddress, + [Parameter( ParameterSetName = "StaticIp", Mandatory = $true )] + [ValidateScript( {$_ -match [IPAddress]$_ })] + [string]$defaultGateway, + [Parameter( ParameterSetName = "StaticIp", Mandatory = $true )] + [ValidateScript( {$_ -match [IPAddress]$_ })] + [string]$subnetMask + + ) + + $hostInformation = Get- +} \ No newline at end of file