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:
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.