Hi,
I have same problem, here is my solution:
I could solve it via PowerShell. You have to replace the one where XXX is on your data.
Open PowerShell as administrator.
You have to wait for each command! It can take some time. They answer YES to all questions:
if ($PSVersionTable.PSEdition -eq 'Desktop' -and (Get-Module -Name AzureRM -ListAvailable)) {
Write-Warning -Message ('Az module not installed. Having both the AzureRM and ' +
'Az modules installed at the same time is not supported.')
} else {
Install-Module -Name Az -AllowClobber -Scope CurrentUser
}
Set-ExecutionPolicy Unrestricted
Import-Module -Name Az
$VNetName = "XXXVirtualNetworkName"
$GWSubName = "GatewaySubnet"
$VPNClientAddressPool = "10.1.0.0/26"
$RG = "XXXResourcesGroup"
$GWName = "XXXVirtualNetworkGateway"
$Gateway = Get-AzVirtualNetworkGateway -ResourceGroupName $RG -Name $GWName
Set-AzVirtualNetworkGateway -VirtualNetworkGateway $Gateway -VpnClientAddressPool $VPNClientAddressPool
$XXXXXXYourCertificateName = "XXXXXXYourCertificateName.cer"
$filePathForCert = "C:\XXXYourCertificatePath\XXXXXXYourCertificateName.cer"
$cert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2($filePathForCert)
$CertBase64 = [system.convert]::ToBase64String($cert.RawData)
Add-AzVpnClientRootCertificate -VpnClientRootCertificateName $WedRootCertName -VirtualNetworkGatewayname $GWName -ResourceGroupName $RG -PublicCertData $CertBase64
Set-ExecutionPolicy Restricted