Azure Local Network Gateway refuses to create from last 2 hours

Ananay Ojha 91 Reputation points
2022-02-14T05:52:20.56+00:00

Hi everyone,

I am trying to connect AWS VPC and Azure VNET Using a site - site VPN connection using the following tutorial -- https://techcommunity.microsoft.com/t5/fasttrack-for-azure/how-to-create-a-vpn-between-azure-and-aws-using-only-managed/ba-p/2281900

but from last 3 days I am not able to create a local network gateway. Except once, it keeps loading in validation stage. I even wait for 2 hours today then also same problem. I also did screen recording and explained everything about my problem here -- https://youtu.be/w5OFuy1-ngw (it's just a 2 min screen recording for easy troubleshooting)

Please help me trobleshoot

Thanks & Regards
Ananay

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

Accepted answer
  1. GitaraniSharma-MSFT 49,466 Reputation points Microsoft Employee
    2022-02-14T08:16:43.107+00:00

    Hello @Ojha18a-0713 ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    The reason why your local network gateway creation is stuck at validating is because there is no address space details or BGP settings configured.

    You are trying to create a Local network gateway with Address space as NONE as below:

    174024-image.png

    In order to create the local network gateway, you should either mention the Address space details or the BGP peer IP in the BGP settings. It is not made mandatory because this is an option which customers need to prefer manually to either provide the address space or enable the BGP and learn the address space via BGP.

    If you try to create a LNG without any address space in PowerShell/CLI, you get the error immediately as below:

    PowerShell:
    PS /home/gitarani> New-AzLocalNetworkGateway -Name Site1 -ResourceGroupName myResourceGroup -Location 'Central India' -GatewayIpAddress '23.99.221.164'
    New-AzLocalNetworkGateway: The local network gateway /subscriptions/xxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/localNetworkGateways/Site1 cannot have both empty address prefix and empty BGP Settings.
    StatusCode: 400
    ReasonPhrase: Bad Request
    ErrorCode: LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettings
    ErrorMessage: The local network gateway /subscriptions/xxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/localNetworkGateways/Site1 cannot have both empty address prefix and empty BGP Settings.

    CLI:
    gitarani@Azure:~$ az network local-gateway create --gateway-ip-address 23.99.221.164 --name Site2 --resource-group myResourceGroup
    (LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettings) The local network gateway /subscriptions/xxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/localNetworkGateways/Site2 cannot have both empty address prefix and empty BGP Settings.
    Code: LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettings
    Message: The local network gateway /subscriptions/xxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/localNetworkGateways/Site2 cannot have both empty address prefix and empty BGP Settings.

    On portal, it takes a long time to throw the error and waits on the validation, but as mentioned above, we cant leave both options empty.

    So, in order to create your local network gateway, either add the address space of AWS or any placeholder address space (which you can change post the LNG creation) or enable BGP settings and add BGP peer IP.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.