Merge pull request #1297 from zoran-rilak-msft/patch-6

Increase GW subnet size to account for ZR
This commit is contained in:
Masha Thomas (MSFT)
2024-05-29 09:51:15 -07:00
committed by GitHub
@@ -239,7 +239,7 @@ $gatewaySubnetName = "GatewaySubnet"
If ($false -eq $subnets.Contains($gatewaySubnetName)) {
Write-Host "$gatewaySubnetName is not one of the subnets in $subnets" -ForegroundColor Yellow
$gatewaySubnetPrefix = CalculateNextAddressPrefix $virtualNetwork 28
$gatewaySubnetPrefix = CalculateNextAddressPrefix $virtualNetwork 27
Write-Host "Creating subnet $gatewaySubnetName ($gatewaySubnetPrefix) in the virtual network ..." -ForegroundColor Green
$virtualNetwork.AddressSpace.AddressPrefixes.Add($gatewaySubnetPrefix)