i can not download VPN Configuration from Virtual WAN Hub Service

amunoz77557 1 Reputation point
2020-08-19T03:22:11.167+00:00

i can't download VPN Configuration from Virtual WAN Hub Service

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
197 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. suvasara-MSFT 10,026 Reputation points
    2020-08-19T06:19:41.707+00:00

    Hello,

    We have identified a bug with the portal recently, which does not allow to download the VPN configuration from the portal. ETA for the resolution would be by 31st AUG.

    Please try to download the VPN configuration via the below PowerShell command or REST API call:

    PowerShell
    REST

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


  2. suvasara-MSFT 10,026 Reputation points
    2020-08-21T11:03:40.327+00:00

    Apologies for the delay in response.

    Here are the PowerShell commands for your reference.

    PS C:\> $vpnSite = Get-AzVpnSite -ResourceGroupName "test-VWAN-RG" -Name "test-vpn-site"
    PS C:\> $vpnSitesForConfig = New-Object Microsoft.Azure.Commands.Network.Models.PSVpnSite[] 1
    PS C:\> $vpnSitesForConfig[0] = $vpnSite
    PS C:\> $virtualWan= Get-AzVirtualwan -ResourceGroupName "test-VWAN-RG" -Name "test-vwan"
    PS C:\> Set-AzCurrentStorageAccount -ResourceGroupName "RG01" -AccountName "mystorageaccount"
    PS C:\>  New-AzureStorageContainerSASToken -Name "Test" -Permission rwdl
    

    Note: Add a blank test.txt file in the container vpnsiteconfig and then click on test.txt file copy the URL and append the generated SAS URL at the end of the blob URL, use the complete URL in the below command

    PS C:\>  Get-AzVirtualWanVpnConfiguration -VirtualWan $virtualWan -StorageSasUrl "https://config3423423.blob.core.windows.net/vpnsiteconfig/test.txt?sv=2019-02-02&sr=c&sig=DUyllNNbnF28b2gocb%2Bhjqt8YHorKckHdlLQ%3D&se=2020-08-17T17%3A21%3A50Z&sp=rwdl" -VpnSite $vpnSitesForConfig
    

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.