Mapping drive issue for Azure File Sync

Karnov 1 Reputation point
2021-04-05T20:49:09.067+00:00

I have Azure File Sync setup on my file server. It is syncing files to my file server onpremise.

The goal is to stage files to Azure using Azure file sync, then once the sync is completed, to deploy out the mapped drives to the Azure file share and then turn the sync off to complete the migration of the file server. Since I have NTFS permissions on the file server folders, I want to use Azure File Sync to migrate the files with the NTFS permissions intact.

When I try to map to my network drive using the command (actual share names omitted for security purposes):

net use z: \filestorageaccountname.file.core.windows.net\filesharename

I get prompted for a username and password. "Enter the user name for 'filestorageaccountname.file.core.windows.net':"

I tried entering a test user account with permissions to the shares and the storage account but that did not work, I also tried domain\testuseraccount and password and that did not work.

I enabled authentication to SMB shares using AD DS for the storage account successfully using the service account.

I can mount the drive using the storage account key, but then it gives me access to folders which I should not have permission to access.

Anybody know why I'm being prompted for username and password when trying to map the drive without the storage account key?

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

2 answers

Sort by: Most helpful
  1. Karnov 1 Reputation point
    2021-04-05T21:01:26.757+00:00

    Also to clarify:

    1) The machine I'm trying to map the drive to is a domain joined computer. I tried this on different domain joined computers and get the same issue.
    2) The user account is a AD DS domain user account. I tried using different AD DS domain user accounts that have NTFS access to the onpremise folder that is synced via Azure File Sync and I get the same message to input a username and password.

    Enter the user name for 'filestorageaccountname.file.core.windows.net

    0 comments No comments

  2. deherman-MSFT 33,456 Reputation points Microsoft Employee
    2021-04-06T18:13:21.347+00:00

    @Karnov

    Please make sure you have verified that the prerequisites. You can also run through the self diagnostics steps in our troubleshooting guide.

    If you are still having issues please let me know and we can work on reviewing your setup with you.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments