Azure Create VPN GW not found the basic option on SKU

Benny Chan 45 Reputation points
2023-10-05T10:18:20.0666667+00:00

I want to Create virtual network gateway for test. I'm not found the basic option on SKU

Why not found the basic option on SKUAzure Create VPN GW not found the basic option on 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,795 questions
{count} votes

Accepted answer
  1. TP 125.7K Reputation points Volunteer Moderator
    2023-10-05T10:23:14.1733333+00:00

    Hi Benny,

    You need to use powershell to deploy Basic SKU VPN Gateway.

    Please see sample code below. I tested and was able to successfully create Basic VPN Gateway.

    $location = "westus3"
    $resourceGroup = "basic-vnet-gateway-group"
    $vnetAddressSpace = "10.20.0.0/16"
    $gatewaySubnet = "10.20.0.0/27"
    New-AzResourceGroup -Name $resourceGroup -Location $location
    $subnetConfig = New-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -AddressPrefix $gatewaySubnet
    $vngwPIP = New-AzPublicIpAddress -Name myvngw-ip -ResourceGroupName $resourceGroup -Location $location -Sku Basic -AllocationMethod Dynamic
    $vnet = New-AzVirtualNetwork -Name myvngw-vnet -ResourceGroupName $resourceGroup -Location $location -AddressPrefix $vnetAddressSpace -Subnet $subnetConfig
    $subnet = Get-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -VirtualNetwork $vnet
    $vngwIpConfig = New-AzVirtualNetworkGatewayIpConfig -Name vngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $vngwPIP.Id
    New-AzVirtualNetworkGateway -Name myvngw-gw -ResourceGroupName $resourceGroup -Location $location -IpConfigurations $vngwIpConfig -GatewayType Vpn -VpnType RouteBased -GatewaySku Basic
    
    

    Please click Accept Answer and upvote if above was helpful.

    Thanks.

    -TP

    5 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sebastián D. Gauna 40 Reputation points
    2024-01-09T08:36:13.0033333+00:00

    Why the heck did Microsoft take out the option from the website!!!!!!!!????!?!!!! Just to make us fall into the trap and spend more money I assume. I had created in the website a Basic SKU Virtual Network Gateway in May 2023...

    As usual Microsoft doing this annoying things...

    8 people found this answer 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.