From 202385849aebb99882f7f3ab251db2cfc019c714 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 17 Jan 2018 21:28:23 +0100 Subject: [PATCH] Repair-NsxEdge: Add Upgrade feature to Nsx-Edge It is now possible to upgrade Edge with a cmdlet ! --- module/PowerNSX.psm1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/PowerNSX.psm1 b/module/PowerNSX.psm1 index 7938e434..53203994 100644 --- a/module/PowerNSX.psm1 +++ b/module/PowerNSX.psm1 @@ -13695,7 +13695,7 @@ function Repair-NsxEdge { up to 200 subinterfaces. Multiple external IP addresses can be configured for load balancer, site‐to‐site VPN, and NAT services. - The Repair-NsxEdge cmdlet allows a Resync or Redploy operation to be + The Repair-NsxEdge cmdlet allows a Resync, Redploy or Upgrade operation to be performed on the specified Edges appliance. WARNING: Repair operations can cause connectivity loss. Use with caution. @@ -13710,6 +13710,11 @@ function Repair-NsxEdge { Resyncs the ESG Edge01 without confirmation. + .EXAMPLE + Get-NsxEdge Edge01 | Repair-NsxEdge -Operation Upgrade -Confirm:$false + + Upgrade the ESG Edge01 to last release without confirmation. + #> [CmdletBinding()] @@ -13728,7 +13733,8 @@ function Repair-NsxEdge { #Specify the repair operation to be performed on the Edge. #If ForceSync - The edge appliance is rebooted #If Redeploy - The Edge is removed and redeployed (if the edge is HA this causes failover, otherwise, an outage.) - [ValidateSet("ForceSync", "Redeploy")] + #If Upgrade - The Edge is upgrade to last release + [ValidateSet("ForceSync", "Redeploy","Upgrade")] [string]$Operation, [Parameter (Mandatory=$False)] #PowerNSX Connection object