VpnClientSetupAMD64.exe Azure 点到站点 VPN 下载中缺失

VpnClientSetupAMD64.exe missing in Azure point-to-site VPN download

我正在尝试设置我的第一个 Azure 点到站点 VPN。如果我没看错,URL 我从这个 PowerShell 代码中得到:

$profile = New-AzVpnClientConfiguration -ResourceGroupName $ResourceGroup -Name $GWName -AuthenticationMethod "EapTls"
$profile.VPNProfileSASUrl

应该下载一个名为 VpnClientSetupAMD64.exe 的可执行文件,它将位于下载的 zip 文件的 WindowsAmd64 文件夹中。该可执行文件应在本机 Win 10 1909 客户端上进行设置。

我得到的 zip 文件中没有任何可执行文件,也没有该目录。我只得到 XML 和带有 VPN 客户端配置数据的 OVPN 文件。

我还尝试在 VnetGW/point-to-site 页面上的 GUI Azure 门户中使用 下载 VPN 客户端 选择,我得到了相同的 zip 文件 - 仍然没有设置 exe。

我正在寻找直接下载 VpnClientSetupAMD64.exe 文件或指定 azurevpnconfig.xml 文件的方法我确实将其作为设置 VPN 客户端的参数获取的文件,但我看不到任何适用的文件。

我知道我可以使用我拥有的信息手动配置 VPN 客户端,但无法扩展。

有人能给我指点吗?

默认情况下,点到站点配置UI中的Tunnel typeOpenVPN(SSL)。在你之前 generate files using PowerShell, you should select the VpnClientProtocol to SSTP and IKEv2, or one of them because they are used for Windows clients. So you will get the VpnClientSetupAMD64.exe file. You could get more details here.

您也可以参考create a VPN Gateway and add point-to-site configuration using PowerShell

New-AzVirtualNetworkGateway -Name VNet1GW -ResourceGroupName TestRG1 `
 -Location 'East US' -IpConfigurations $gwipconfig -GatewayType Vpn `
 -VpnType RouteBased -GatewaySku VpnGw1 -VpnClientProtocol "IKEv2"
# Add the VPN client address pool
$Gateway = Get-AzVirtualNetworkGateway -ResourceGroupName $RG -Name $GWName
Set-AzVirtualNetworkGateway -VirtualNetworkGateway $Gateway -VpnClientAddressPool $VPNClientAddressPool
# Create a self-signed root certificate
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `
 -Subject "CN=P2SRootCert" -KeyExportPolicy Exportable `
 -HashAlgorithm sha256 -KeyLength 2048 `
 -CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -KeyUsage CertSign
# Export the root certificate to "C:\cert\P2SRootCert.cer"
# Upload the root certificate public key information
$P2SRootCertName = "P2SRootCert.cer"
$filePathForCert = "C:\cert\P2SRootCert.cer"
$cert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2($filePathForCert)
$CertBase64 = [system.convert]::ToBase64String($cert.RawData)
$p2srootcert = New-AzVpnClientRootCertificate -Name $P2SRootCertName -PublicCertData $CertBase64
Add-AzVpnClientRootCertificate -VpnClientRootCertificateName $P2SRootCertName `
 -VirtualNetworkGatewayname "VNet1GW" `
 -ResourceGroupName "TestRG1" -PublicCertData $CertBase64

我今天在尝试设置 Azure P2S VPN 时遇到了同样的问题,下载的 VPN 客户端只是一个配置文件。

做了一些研究并找到了解决方案:https://docs.microsoft.com/en-us/azure/vpn-gateway/openvpn-azure-ad-client

打开 Windows 商店,并安装“Azure VPN 客户端”应用程序。然后就可以运行Azure VPN Client 导入配置文件了。