Share via

Problem while adding a new connection in a local network gateway

Abderrahim EL BRAK 26 Reputation points
2022-06-20T20:23:08.09+00:00

Hello,

I want to create a Site-to-site VPN between my network and an Azure Vnet,

I created a VPN Gateway in the Vnet, and the local network gateway also,

I've a problem while adding a new connection, the virtual network gateway didn't been selected even when i click on it.

Also why the other options are grayed out???

Ps213109-1.png213125-2.png: I'm using a student subscription.

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.

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.

0 comments No comments

Answer accepted by question author

ChaitanyaNaykodi-MSFT 27,671 Reputation points Microsoft Employee Moderator
2022-06-20T22:20:28.293+00:00

Hello @Abderrahim EL BRAK ,

Welcome to the Microsoft Q&A forum.

Based on a similar issue here. This is a known issue.

Can you try creating the connection using PowerShell? I was able to add the connection using PowerShell 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. Please let me know if you observe any errors. Thank you!

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.