From 9f1440613fcb96325913d0a64fc88fff3456a136 Mon Sep 17 00:00:00 2001 From: Zoran Rilak <81432157+zoran-rilak-msft@users.noreply.github.com> Date: Wed, 29 May 2024 18:49:54 +0200 Subject: [PATCH] Increase GW subnet size to account for ZR --- .../attach-vpn-gateway/attachVPNGateway.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 index aa66caa0..d289bf31 100644 --- a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 +++ b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 @@ -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)