Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that
- You have a Private EndPoint for Storage Account
- Internet traffic are expected to go via Azure Firewall using the 0.0.0.0/0 route in UDR
- However, despite having the PE, you see the traffic is going via Azure Firewall.
Please note that having a Private EndPoint alone does not guarantee that the traffic stays within the VNET (or peered networks)
- You should also have a Private DNS Zone that resolves the Storage Account's FQDN to the Private IP of the Storage Account's PE
- Without this, the DNS would resolve to the Public IP of the Storage Account and traffic would go to Internet (via Firewall in your case because of 0.0.0.0/0 route)
- See : DNS changes for private endpoints
As next steps,
- Can you confirm if Private DNS Zone is in place?
- Can you run the below commands from your VM?
- nslookup <StorageAccountFQDN>
- nslookup <StorageAccountFQDN> 8.8.8.8
- nslookup <StorageAccountFQDN> 168.63.129.16
- If you see the above commands resolving to a Public IP,
- Please create a Private DNS Zone matching your service : Storage
- Create an A record with the record value as StorageAccountName and value as the Private EndPoint IP : https://learn.microsoft.com/en-us/azure/dns/dns-private-records
- Link this to the Azure VNET : https://learn.microsoft.com/en-us/azure/dns/private-dns-getstarted-portal#link-the-virtual-network
Let us know how this goes
Cheers,
Kapil