Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (13.1k points)
Can anyone help me with the commands for Azure cli for configuring a point-to-site VPN?

1 Answer

0 votes
by (26.7k points)

You can try the below command:

az network vnet-gateway create \

  -n VNet1GW \

  -l eastus \

  --public-ip-address VNet1GWIP \

  -g TestRG1 \

  --vnet VNet1 \

  --gateway-type Vpn \

  --sku VpnGw1 \

  --vpn-type RouteBased \

  --address-prefixes \

  --client-protocol OpenVPN

After that, you need to attach the certificate:

az network vnet-gateway root-cert create -g TestRG1 -n vpncliCert --gateway-name VNet1GW --public-cert-data path/to/your/certificate

Once done, now you can able to download the VPN client to use it.

I hope this will help.

Want to become an Azure expert? join azure architect training now!!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers


108k users

Browse Categories