You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/Network/Commands.Network/VirtualNetworkGateway/NewAzureVirtualNetworkGatewayCommand.cs
+30-19Lines changed: 30 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -85,9 +85,8 @@ public class NewAzureVirtualNetworkGatewayCommand : VirtualNetworkGatewayBaseCmd
85
85
86
86
[Parameter(
87
87
Mandatory=false,
88
-
ValueFromPipelineByPropertyName=true,
89
-
HelpMessage="Active-Active feature flag")]
90
-
publicboolActiveActive{get;set;}
88
+
HelpMessage="Flag to enable Active Active feature on virtual network gateway")]
thrownewArgumentException("Virtual Network Gateway Sku should be "+MNM.VirtualNetworkGatewaySkuTier.HighPerformance+" when Active-Active feature flag is set to True.");
thrownewArgumentException("Virtual Network Gateway should have Active-Active feature flag set to True as there are 2 Gateway IpConfigurations specified. OR there should be only one Gateway IpConfiguration specified.");
Copy file name to clipboardExpand all lines: src/ResourceManager/Network/Commands.Network/VirtualNetworkGateway/UpdateAzureVirtualNetworkGatewayCommand.cs
+25-8Lines changed: 25 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -82,9 +82,13 @@ public class SetAzureVirtualNetworkGatewayCommand : VirtualNetworkGatewayBaseCmd
82
82
83
83
[Parameter(
84
84
Mandatory=false,
85
-
ValueFromPipelineByPropertyName=true,
86
-
HelpMessage="ActiveActive feature flag")]
87
-
publicboolActiveActive{get;set;}
85
+
HelpMessage="Flag to enable Active Active feature on virtual network gateway")]
thrownewArgumentException("Virtual Network Gateway Sku should be "+MNM.VirtualNetworkGatewaySkuTier.HighPerformance+" when Active-Active feature flag is set to True.");
107
-
}
124
+
}
108
125
}
109
126
110
127
if(!string.IsNullOrEmpty(GatewaySku))
@@ -187,4 +204,4 @@ public override void Execute()
0 commit comments