unable to create basic sku vpn

Todd Stevens 5 Reputation points
2023-09-22T19:26:05.27+00:00

We are unable to create a vpn with a basic sku

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,389 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 23,031 Reputation points Microsoft Employee
    2023-09-23T03:47:41.0366667+00:00

    @Todd Stevens

    Thank you for reaching out.

    I understand you are unable to deploy a Basic VPN SKU.

    The Basic SKU VPN can only be configured using PowerShell or Azure CLI.

    In general, we have seen customer face such issues when they try to assign a Standard(static) SKU public IP address to a Basic VPN gateway. As Basic VPN only supports standard Basic SKU Public IP address(dynamic).

    I was successfully able to deploy a Basic SKU VPN using following PowerShell commands.

    $subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
    $ngwpip = New-AzPublicIpAddress -Name ngwpip1 -ResourceGroupName "<RGName>" -Location "UK West" -AllocationMethod Dynamic -sku Basic
    $vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "<RGName>" -Subnet $subnet
    $subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
    $ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
    New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName <RGName> -Location "UK West" -IpConfigurations $ngwIpConfig  -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "Basic" -CustomRoute 192.168.0.0/24
    
    
    

    User's image

    You can use Azure Cloud Shell to run the commands above.

    Hope this helps! Please let me know if you have any additional questions or if you are still facing the issue. Thank you!


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

    5 people found this answer helpful.