How to configure Gateway subnet

Vishwa Teja Devarakonda 20 Reputation points
2025-02-14T07:05:55.7533333+00:00

Hi Q&A team,

Actually i was working on site to site vpn connection so i've created resource group and vnet as well

so in the vnet>>subnet section i cannot find gateway subnet so i've tried multiple ways to find it could you please help me out.

Thanks,

Vishwa

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,642 questions
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,637 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 103.2K Reputation points
    2025-02-14T07:27:28.89+00:00

    Hi Vishwa,

    You may navigate to your VNet in the portal and open Settings -- Subnets blade. At the top, click Subnet to add new subnet.

    User's image

    In the window on right, for Subnet purpose choose Virtual Network Gateway, fill out remaining options and click Add.

    User's image

    Please see article below for more details on the gateway subnet.

    Gateway subnet

    https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpn-gateway-settings#gwsub

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 117.7K Reputation points MVP
    2025-02-14T07:25:13.14+00:00

    Hi @Vishwa Teja Devarakonda ,

    please verify the created subnet is named GatewaySubnet.

    It has to be this name otherwise it doesn't work to create the VPN Gateway.

    Also please verify the size of the subnet fits the requirement:

    We recommend that you create a gateway subnet that uses a /27 (or larger). For example, /27 or /26.

    Source: Create a gateway subnet


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    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.