Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you have created a VPN Gateway to establish P2S Connections from remote users to access Azure Key Vault.
I am afraid your understanding of how P2S Connection works is incorrect.
The remote users will not get an IP Address from the Gateway Subnet Address range.
Rather, you have to specifically mention an address Pool for the VPN Gateway to allocate IP Addresses to the remote users.
Refer: Client address pool .
P.S :
- Make sure you do not have any overlapping address range with the VNet's address space.
- This additional range, automatically becomes a part of the Azure VNet traffic (i.e. recognized address range)
- It is not required to allocate a /16 address range to a GatewaySubnet. A /24 would suffice.
Now, creating a P2S VPN Gateway alone does not enable connectivity between remote users and Azure Key Vault (or any other PaaS Service for that matter)
You have to create a Private Endpoint for the KeyVault
And access the keyVault via the Private Endpoint.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.