Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Network/Network.Test/ScenarioTests/CortexTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Test-CortexCRUD
$virtualWan = Get-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWanName
Assert-AreEqual $rgName $virtualWan.ResourceGroupName
Assert-AreEqual $virtualWanName $virtualWan.Name
Assert-AreEqual $false $virtualWan.AllowVnetToVnetTraffic
Assert-AreEqual $true $virtualWan.AllowVnetToVnetTraffic
Assert-AreEqual $false $virtualWan.AllowBranchToBranchTraffic

$virtualWans = Get-AzureRmVirtualWan -ResourceGroupName $rgName
Expand Down
3 changes: 3 additions & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

## Upcoming Release
* Fixed incorrect type of SuccessThresholdRoundTripTimeMs parameter for New-AzNetworkWatcherConnectionMonitorTestConfigurationObject
* Updated VirtualWan cmdlets to set default value of AllowVnetToVnetTraffic argument to True.
- `New-AzVirtualWan`
- `Update-AzVirtualWan`

## Version 2.5.0
* Updated cmdlets to enable connection on private IP for Virtual Network Gateway.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private PSVirtualWan CreateVirtualWan()
virtualWan.ResourceGroupName = this.ResourceGroupName;
virtualWan.Location = this.Location;
virtualWan.AllowBranchToBranchTraffic = this.AllowBranchToBranchTraffic.IsPresent;
virtualWan.AllowVnetToVnetTraffic = this.AllowVnetToVnetTraffic.IsPresent;
virtualWan.AllowVnetToVnetTraffic = true;

if(string.IsNullOrWhiteSpace(this.VirtualWANType))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private PSVirtualWan UpdateVirtualWan()

if (this.AllowVnetToVnetTraffic.HasValue)
{
virtualWanToUpdate.AllowVnetToVnetTraffic = this.AllowVnetToVnetTraffic.Value;
virtualWanToUpdate.AllowVnetToVnetTraffic = true;
}

if (!string.IsNullOrWhiteSpace(this.VirtualWANType))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public PSVirtualWan GetVirtualWan(string resourceGroupName, string name)
var virtualWan = this.VirtualWanClient.Get(resourceGroupName, name);
var psVirtualWan = ToPsVirtualWan(virtualWan);
psVirtualWan.ResourceGroupName = resourceGroupName;
psVirtualWan.AllowVnetToVnetTraffic = true;

return psVirtualWan;
}
Expand Down