question

JunaidSubhani-8447 avatar image
0 Votes"
JunaidSubhani-8447 asked ShakirAbdulWahid commented

Unable to add First virtual network Gateway connection

Hello I have configured a Virtual Network Gateway.

I have also configured a Local Network Gateway. I am now trying to add a connection. In the list of Choose Virtual Network Gateway, I can see my desired Virtual Network Gateway

191555-screen-shot-2022-04-09-at-125049-pm.png

I click on it and it returns me to the previous page and it doesnt get added.

191503-screen-shot-2022-04-09-at-125206-pm.png

Is there something ive missed or configured ?

My virtual network is associated to the virtual network gateway

191515-screen-shot-2022-04-09-at-125636-pm.png





azure-vpn-gateway
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello hope you doing well.
if Local Network Gateway is not adding Virtual Network Gateway you can search connections resource and create new connection. and second method is goto Virtual Network Gateway to create Connection change the connection type and create Connection. It will works fine.

Best Regard:
Shakir Abdul Wahid
Azure Solution Expert | MCT | MCSA

0 Votes 0 ·

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
1 Vote"
ChaitanyaNaykodiMSFT-9638 answered

Hello @JunaidSubhani-8447, Welcome to the Microsoft Q&A forum.

This issue might be a transient portal issue. Can you try creating the connection using PowerShell and see if you observe any errors?

By following the documentation here, you can refer to commands below.

 $gateway1 = Get-AzVirtualNetworkGateway -Name <GWName> -ResourceGroupName <RG>
 $local = Get-AzLocalNetworkGateway -Name <LNGName> -ResourceGroupName <RG>
 New-AzVirtualNetworkGatewayConnection -Name VNet1toSite1 -ResourceGroupName <RG> `
 -Location $Location -VirtualNetworkGateway1 $gateway1 -LocalNetworkGateway2 $local `
 -ConnectionType IPsec -ConnectionProtocol IKEv2 -RoutingWeight 10 -SharedKey 'abc123'

If you do not have a PowerShell environment set-up locally. You can try Cloud Shell to run these commands.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.