Problem mapping SMB drive shares in Azure for Entra-joined users

GregE97 0 Reputation points
2025-01-06T17:42:58.3833333+00:00

The frustrating part of this is that I had it working before the Holidays.

My use case is only for the Users who are Entra-joined only.  The computers I have tested with are Entra-joined. This is not for hybrid-joined users or computers. Entra Domain Services are running.

I changed the authentication method to the middle option for Entra, assigned my desired User Group to have SMB contributor permissions, and tried to run the provided PS script from a computer which is Entra-joined with my user account.  (It's in the Group.)

I get the error "\mystorage.xx.xx.windows.net\mydrive\myshare" either does not exist or is not a folder.

Event Viewer does show the PowerShell script executing.

A 'net use' in CMD fails saying "The network name cannot be found."  However I can get an IP if I do an nslookup.  I am using 8.8.8.8 for my DNS.

Port 445 is open in the firewall and I see no traffic during my attempts which would block it.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,341 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 115.9K Reputation points MVP
    2025-01-06T18:01:56.1+00:00

    Hi @Greg Ernest - Admin ,

    if my understanding is correct you are using Azure Files?

    In my opinion the path to the share should be: \\<name of the storage account>.file.core.windows.net\<name of the share>

    Maybe you can give it a try.

    How does the network settings of the Storage Account look like?

    Do you allow public access? Or did you use the setting Enabled from selected virtual networks and IP addresses?


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    1 person found this answer helpful.

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.