I am using Azure File Storage with a P2S VPN to mount file shares over SMB in Windows.
Downloading files through the P2S is extremely slow compared to what I should get, around 1-2mb/s.
I created a file share (directly on the "C" drive in the Windows Explorer) in a Windows VM located in the same Virtual Network in Azure, and mounted this share on my PC using the same P2S VPN and can download at over 50mb/s, which is a lot closer to the limit of the Virtual Network Gateway SKU (VpnGw1)
I tried using the S2S connection and mounting the share and the speeds are a lot faster too.
Mounting the files from inside the VM in Azure ( under the same virtual network ) yields really really fast speeds too.
Here's some info about the Virtual Network and the storage :
1. Address space: 10.0.0.0/16
2.a. default: 10.0.0.0/24
2.b. GatewaySubnet: 10.0.1.0/24
3. Both gateway and "default" subnet are connected to the storage service endpoint
Virtual Network Gateway
1. SKU: VpnGw1 ( tried with VpnGw2 too, same results )
2. Point To Site
2.a. Address pool: 10.1.0.0/24
2.b. Tunnel type: IKEv2
2.c. Authentication type: Azure Certificate ( I downloaded their "VPN client" to test )
1. Firewall, allow access from: All Networks
2. Private endpoint subnet: default
3. Mounted using the private IP + the keys