Terraform VPN VNG - configure custom Default Azure BGP peer IP address

Mihai Tănăsescu 26 Reputation points
2022-06-22T16:53:46.2+00:00

Hi everyone,

I am banging my head against the wall trying to configure a VPN VNG in Terraform with a custom:
"Default Azure BGP peer IP address"

I get a feeling that this field is read-only and that only the APIPA is editable.
Am I correct or is there something I am missing out on?

213963-image.png

Thanks.

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,786 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luis Rodriguez 6,226 Reputation points Microsoft Employee
    2022-06-22T20:21:17.54+00:00

    Hello @Mihai Tănăsescu

    Welcome to Microsoft Q&A Platform,

    The default Azure BGP peer IP address is assigned automatically unless you want to use APIPA addresses:

    By default, Azure assigns a private IP address from the GatewaySubnet prefix range automatically as the Azure BGP IP address on the Azure VPN gateway. The custom Azure APIPA BGP address is needed when your on premises VPN devices use an APIPA address (169.254.0.1 to 169.254.255.254) as the BGP IP

    For reference:
    https://learn.microsoft.com/en-us/azure/vpn-gateway/bgp-howto

    Thread related:
    https://learn.microsoft.com/en-us/answers/questions/509571/azure-vpn-2-bgp-peers-in-gateway-subnet-why.html

    I hope this helps!

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

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.