How to automatically mount an Azure file share as a network drive on login

Kayak2 21 Reputation points
2020-06-07T13:23:05.79+00:00

Current scenario:

On-premises Domain controller, users log in and the share on the on-premises server is automatically mounted as a network drive

Objective:

User logins into Azure Active Directory and the Azure file share is automatically mounted as a network drive
I’m trying to get this working using a 30 day free trial of Azure, so far I have the Azure file share and I can mount it as a network drive using PowerShell on a test machine where the user is logged into Azure Active Directory

Thanks

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,160 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,439 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 43,411 Reputation points Microsoft Employee
    2020-06-08T09:06:40.477+00:00

    @Kayak2 Based on the error message can you please refer to the suggestion mentioned in this link.

    Also refer to this GitHub link: Error 86 Specified password is incorrect

    Active Directory authentication over SMB for Azure file shares: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-active-directory-enable#mount-a-file-share-from-a-domain-joined-vm

    Azure Active Directory Domain Services authentication on Azure Files:ht tps://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-active-directory-domain-service-enable#mount-a-file-share-from-a-domain-joined-vm

    If the issue still persists, please share the screenshot of the error message or error code.

    For additional information please see here also, which gives an idea on your query

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

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

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


2 additional answers

Sort by: Most helpful
  1. T. Kujala 8,701 Reputation points
    2020-06-07T14:04:21.657+00:00

    Have you tried to use a cmdkey command?

    cmdkey /add:.file.core.windows.net /user:AZURE\ /pass:

    Users have to give credentials at once. I think that is the easiest way.

    Other ways:

    https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows


  2. Manu Philip 16,971 Reputation points MVP
    2020-06-07T19:42:42.177+00:00

    Hello @Kayak2 ,

    I have made simple notes on this topic in my blog as below. You can create Azure file share and attach it as a drive in your computer. Please check the blog and correct what is needed

    http://cloudcompute.info/use-an-azure-file-share-with-windows/

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu