Authentication Error on Private Endpoint for Blob Storage

Nana Poku 225 Reputation points
2025-04-28T15:46:32.7833333+00:00

Experiencing an authentication error when attempting to create directories in a storage account with a private endpoint enabled. When public access is enabled, the operations work as expected, but using public access is not ideal due to security concerns. How can this issue be resolved while maintaining the security of private endpoint connections?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,471 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Azar 28,000 Reputation points MVP
    2025-04-28T17:49:20.46+00:00

    Hi there Nana Poku

    Thanks for using QandA platform

    This happens because with a private endpoint, all traffic must stay inside your private network, public access won't work unless DNS points to the private IP. If your DNS still resolves to the public IP, authentication will fail. you should have a Private DNS Zone (like privatelink.blob.core.windows.net) linked to your VNet, and your client is picking up the private IP. Also, it's better to use Azure AD for authentication instead of keys, also xheck your fireewall rules

    If this helps kindly accept the answer thanks much.

    1 person found this answer helpful.

  2. Keshavulu Dasari 4,665 Reputation points Microsoft External Staff
    2025-04-29T20:06:35.2733333+00:00

    Hi Nana Poku ,

    The issue is specifically related to the authentication when switching from public access to private endpoint access. some additional steps to resolve,

    Ensure that the DNS resolution for the Blob Storage account is correctly configured to resolve to the private endpoint's IP address. You can update the host file on your client machine or use a custom DNS server

    Verify that the network security settings, including firewall rules and virtual network configurations, allow communication between your client and the Blob Storage via the private endpoint

    check that the identity (managed identity or service principal) used for authentication has the necessary permissions, such as "Storage Blob Data Contributor" or "Storage Blob Data Owner"

    If you are using Azure Storage Explorer, make sure it's configured to connect via the private endpoint. This may involve specific setup steps depending on the error message you're encountering.

    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.            

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be glad to assist you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.