Failed to stop packet capture on the VirtualNetworkGateway Error: An internal error occured. The response did not contain any data. Please check storage for the capture.

Robben Aerts 1 Reputation point
2021-11-03T12:20:15.007+00:00

Hi,

I'm trying to troubleshoot an issue with phase 2 traffic selector for a Azure VPN. I want to take a VPN packet capture but when I stop it, it fails with following message:

Failed to stop packet capture on the VirtualNetworkGateway '<name of the GW>'. Error: An internal error occured. The response did not contain any data. Please check storage for the capture.

I checked the storage account but no capture is present. The used SKU is VpnGw2 and it's a route based VPN.

Anyone knows why this VPN packet capture is not possible? Thanks.

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,795 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2021-12-01T01:40:09.017+00:00

    @Robben Aerts If the error message mentions the error is due to the SasUrl, then it may be related. Please make sure that you get the SasUrl using the following command:

    $sasurl = New-AzureStorageContainerSASToken -Name $containerName -Context $context -Permission "rwd" -StartTime $now.AddHours(-1) -ExpiryTime $now.AddDays(1) -FullUri

    You can also do the same via the Portal as shown below:

    153778-2021-12-01-07-07-42-inbox-skishor.png

    Hope this helps. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    1 person found this answer helpful.
    0 comments No comments

  2. Robben Aerts 1 Reputation point
    2021-11-04T11:15:31.98+00:00

    Hi,

    I just like to understand the error message. Is it because the VPN has an issue and is not up that we get this?
    I wanted to use this packet capture to see the negotiation of the VPN tunnel between the peers because there are not much debug possibilities or logging to find the cause that the tunnel is not coming up. But maybe the VPN packet capture doesn't contain this data and therefore it's empty?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.