How to setup P2S VPN to connect Azure SQL
After successful building the VPN connection to Azure Environment by applying P2S VPN. This is a note what I did so that I can use it in the future. Script Powersell to create SelfRoot & Client $cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature -Subject "CN=VNETROOT" -KeyExportPolicy Exportable -HashAlgorithm sha256 -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -KeyUsage CertSign New-SelfSignedCertificate -Type Custom -DnsName TANLECLIENT -KeySpec Signature -Subject "CN=VNETCLIENT" -KeyExportPolicy Exportable -HashAlgorithm sha256 -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My" -Signer $cert -TextExtension @( "2.5.29.37={text}1.3.6.1.5.5.7.3.2" ) Generate and export certificates for P2S: PowerShell - Azure VPN Gateway | Microsoft Docs Step-by-Step guide to Azure Point-to-Site VPN - Technical Blog | REBELADMIN ...