An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
The issue is caused by lack of line-of-sight from the P2S VPN client to the on-premises domain controller and DNS, which prevents Kerberos/NTLM authentication to Azure Files over SMB. A DC in Azure is not strictly required, but the client must be able to reach a DC and resolve the necessary DNS records over the active VPN path.
Key points from the described setup:
- Azure Files is exposed via a private endpoint and is being accessed over VPN only.
- Authentication is via on-premises AD DS.
- P2S VPN clients use the on-premises DNS server and suffix, but cannot ping or otherwise reach the on-prem DC while connected only to the Azure P2S VPN.
- When the user also connects to the on-prem VPN, authentication succeeds, confirming that AD line-of-sight is the missing piece.
To make this work without adding a DC in Azure, the following must be true:
- The P2S VPN client must have IP connectivity to the on-premises DCs (and any required AD ports) over the Azure P2S connection. That typically means:
- The P2S address pool and routes on the Azure VPN Gateway must include routes to the on-premises network where the DCs reside.
- The S2S VPN between Azure and on-prem must allow transit traffic from the P2S address pool to on-prem (no asymmetric routing or blocked subnets).
- On-prem firewalls must allow traffic from the P2S address pool to the DCs.
- DNS resolution for the storage account and AD must be correct from the P2S client:
- The storage account FQDN (e.g.,
storageaccount.file.core.windows.net) must resolve to the private endpoint IP, not the public IP. This is normally done via DNS forwarding to Azure DNS/private DNS zones rather than host file entries. - The client must also be able to resolve on-prem AD/DNS names via the on-prem DNS server reachable over VPN.
- The storage account FQDN (e.g.,
The Microsoft guidance for hybrid Azure Files with AD DS assumes:
- A private endpoint for Azure Files.
- A DNS forwarder or Azure DNS Private Resolver in the Azure virtual network.
- On-prem DNS configured with conditional forwarders for
file.core.windows.net(andafs.azure.netif using Azure File Sync) to the DNS infrastructure in Azure. - A site-to-site VPN or ExpressRoute that extends the on-prem network to Azure so that SMB and AD traffic traverse private connections.
In this model, P2S clients can also work, but only if they can reach both:
- The Azure virtual network (for the private endpoint and DNS forwarder/Azure DNS), and
- The on-prem DCs (for AD authentication), via the configured VPN routes.
So, a DC in Azure is one valid solution (it gives local line-of-sight in Azure), but not the only one. The alternative is to:
- Ensure transitive routing between P2S clients, Azure VNet, and on-prem network over the existing P2S + S2S setup.
- Implement proper DNS forwarding for Azure Files instead of relying on local hosts file entries.
If transitive routing cannot be achieved or is too complex, deploying a DC (or read-only DC) in Azure in the same VNet as the private endpoint is the practical way to provide line-of-sight for P2S clients accessing Azure Files.
References:
and “up-vote” wherever the information provided helps you, **this can be beneficial to other community members.