Skip to content

Commit b1c3a30

Browse files
author
Jianghao Lu
committed
Merge pull request Azure#540 from Nilambari/dev
Network PS commandlets fixes:- Get-AzureVNetGatewayIPsecParameters & Set-AzureVirtualNetworkGatewayConnection
2 parents 27cff23 + ac18824 commit b1c3a30

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/ResourceManager/Network/Commands.Network/Models/PSVirtualNetworkGatewayConnection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ public class PSVirtualNetworkGatewayConnection : PSTopLevelResource
3535
[JsonIgnore]
3636
public string VirtualNetworkGateway1Text
3737
{
38-
get { return JsonConvert.SerializeObject(VirtualNetworkGateway1, Formatting.Indented); }
38+
get { return JsonConvert.SerializeObject(VirtualNetworkGateway1.Id, Formatting.Indented); }
3939
}
4040

4141
[JsonIgnore]
4242
public string VirtualNetworkGateway2Text
4343
{
44-
get { return JsonConvert.SerializeObject(VirtualNetworkGateway2, Formatting.Indented); }
44+
get { return JsonConvert.SerializeObject(VirtualNetworkGateway2.Id, Formatting.Indented); }
4545
}
4646

4747
[JsonIgnore]
4848
public string LocalNetworkGateway2Text
4949
{
50-
get { return JsonConvert.SerializeObject(LocalNetworkGateway2, Formatting.Indented); }
50+
get { return JsonConvert.SerializeObject(LocalNetworkGateway2.Id, Formatting.Indented); }
5151
}
5252
}
5353
}

src/ServiceManagement/Network/Commands.Network/Gateway/GetAzureVNetGatewayIPsecParameters.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Gateway
2222
public class GetAzureVNetGatewayIPsecParameters : NetworkCmdletBase
2323
{
2424
[Parameter(Position = 0, Mandatory = true, HelpMessage = "The virtual network name.")]
25-
[ValidateGuid]
2625
[ValidateNotNullOrEmpty]
2726
public string VNetName
2827
{
2928
get; set;
3029
}
3130

3231
[Parameter(Position = 1, Mandatory = true, HelpMessage = "The local network site name.")]
33-
[ValidateGuid]
3432
[ValidateNotNullOrEmpty]
3533
public string LocalNetworkSiteName
3634
{

0 commit comments

Comments
 (0)