A private endpoint allows you to access Azure services, including Azure Cosmos DB, privately from within an Azure virtual network. By configuring a private endpoint for the Azure Cosmos DB account, you can connect to the account using private IP addresses and ensure that the data transfer occurs securely over the Site-to-Site VPN between the on-premises network and the Azure virtual network. With a private endpoint, the data traffic from the on-premises environment to Azure Cosmos DB remains within the private network and does not traverse the public internet, enhancing security and isolation.