Search code examples
azureazure-devopsazure-virtual-networkazure-storage-account

Possible to connect to storage account when connected to openvpn vm in subnet


I have an azure vnet, that contains subnet A and subnet B.

Subnet A contains SQL server with a private endpoint, also a VM running openvpn. When I connect to the vpn from my local machine, I can connect to SQL server management studio.

Subnet B contains a storage account again with a private endpoint.

I thought if I connected to the vpn from my local machine, I would also be able to connect to the storage account using the storage account name and key.

However it fails to connect :(

I haven't locked down the subnets in anyway, and figured once I was inside the vnet via the openvpn connection I'd be in (able to connect to storage account in subnet B)

Any tips would be awesome... I'm much more developer that network engineer so please dumb it down for me.

Thanks Andrew


Solution

  • Ok I needed to add subnet B here in the VPN settings of OpenVPN :)

    Specify the private subnets to which all clients should be given access (one per line):