Hi HASSAN BIN NASIR DAR,
When you use a service endpoint for your storage account, the connection is established between your VM's private IP and the public endpoint of the storage service.
Service Endpoint: Your VM uses its private IP to connect to the Azure Storage service. The traffic is routed over the Microsoft backbone network, ensuring it doesn't traverse the public internet. However, the storage service itself is accessed via its public endpoint (public IP address). This setup enhances security by keeping the traffic within Microsoft's network.
Private Endpoint: In contrast, a private endpoint assigns a private IP address to the Azure Storage service within your VNet. This means both your VM and the storage service communicate entirely over private IPs within your VNet, never using the public internet or public IPs.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.