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
1 change: 1 addition & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

## Version 6.1.1
* Onboarded `Microsoft.ElasticSan/elasticSans` to private link cmdlets
* Fixed bug in `New-AzVirtualNetworkGateway` to include only non-empty `ExtendedLocation`

## Version 6.1.0
* Added new cmdlets to get Connection child resource of Network Virtual Appliance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ private PSVirtualNetworkGateway CreateVirtualNetworkGateway()

}
vnetGateway.GatewayType = this.GatewayType;
if (vnetGateway.GatewayType == "LocalGateway" || vnetGateway.GatewayType == "ExpressRoute")
if (this.ExtendedLocation != null && (vnetGateway.GatewayType == "LocalGateway" || vnetGateway.GatewayType == "ExpressRoute"))
{
vnetGateway.ExtendedLocation = new PSExtendedLocation(this.ExtendedLocation);
vnetGateway.VNetExtendedLocationResourceId = this.VNetExtendedLocationResourceId;
Expand Down