Update subnet of App Gateway V1

Apurva Pathak 735 Reputation points
2023-09-16T21:11:41.7366667+00:00

Hi,

Can I extend/ shrink subnet of my V1 Application Gateway.

Thanks in advance!

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,772 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,217 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tushar Kumar 3,371 Reputation points MVP
    2023-09-16T22:12:57.8133333+00:00

    Hi,

    The subnet size is determined when you initially create the Application Gateway, and it's based on the subnet configuration you specify during the creation process.

    If you need to change the subnet size you need to move to different subnet.

    Please Note:

    If subnet is named "GatewaySubnet" its reserved for VPN gateways. The Application Gateway V1 resources using the "GatewaySubnet" subnet need to be moved to a different subnet or migrated to V2 SKU before September 30, 2023 to avoid control plane failures and platform inconsistencies. For changing the subnet of an existing Application gateway, see steps https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-faq#can-i-change-the-virtual-network-or-subnet-for-an-existing-application-gateway

    Please click "Accept as Answer" if this helps.


1 additional answer

Sort by: Most helpful
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-09-17T10:26:30.5466667+00:00

    Hi,

    You can create a new subnet in your existing VNET or you can add a new address space to your existing VNET and create a subnet for Application Gateway. Then you can use the below mentioned PowerShell script to move the Application gateway to the other subnet. Once moved, you can delete the existing subnet and shrink/expand as you needed and repeat the same process again to bring it back to the shrunk/expanded subnet.

    Reference: https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-faq#can-i-change-the-virtual-network-or-subnet-for-an-existing-application-gateway

    Regards,

    Karthik Srinivas

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.