File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
## Version 6.1.1
27
27
* Onboarded ` Microsoft.ElasticSan/elasticSans ` to private link cmdlets
28
+ * Fixed bug in ` New-AzVirtualNetworkGateway ` to include only non-empty ` ExtendedLocation `
28
29
29
30
## Version 6.1.0
30
31
* Added new cmdlets to get Connection child resource of Network Virtual Appliance.
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ private PSVirtualNetworkGateway CreateVirtualNetworkGateway()
419
419
420
420
}
421
421
vnetGateway . GatewayType = this . GatewayType ;
422
- if ( vnetGateway . GatewayType == "LocalGateway" || vnetGateway . GatewayType == "ExpressRoute" )
422
+ if ( this . ExtendedLocation != null && ( vnetGateway . GatewayType == "LocalGateway" || vnetGateway . GatewayType == "ExpressRoute" ) )
423
423
{
424
424
vnetGateway . ExtendedLocation = new PSExtendedLocation ( this . ExtendedLocation ) ;
425
425
vnetGateway . VNetExtendedLocationResourceId = this . VNetExtendedLocationResourceId ;
You can’t perform that action at this time.
0 commit comments