question

NigelWhite-7905 avatar image
0 Votes"
NigelWhite-7905 asked ·

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

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-active-directoryazure-files
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sumarigo-MSFT avatar image
0 Votes"
Sumarigo-MSFT answered ·

@NigelWhite-7905 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://docs.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://docs.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 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sumarigo-MSFT Thanks for this really useful post on following the chain of information it appears that the client
machine has to be domain joined and therefore that a domain server is required.

Apparently native AAD authentication is not supported today but is on the roadmap however I have not been able to find any further information about the roadmap or where to vote for this feature.

0 Votes 0 ·

@NigelWhite-7905 We are working to bring native AD join to market as quickly as possible. We’re hoping to have this out asap time frame. We can get your customers in preview as soon as we have it out.

You can share your feedback and experience over email at azurefiles@microsoft.com. Post your ideas and suggestions about Azure Storage on our feedback forum.
. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.



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



0 Votes 0 ·
TKujala avatar image
0 Votes"
TKujala answered ·

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://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I can connect with the storage account user and password as per the PowerShell script that Azure supplies to connect the fileshare.

cmdkey /add:<mystoragename>.file.core.windows.net /user:Azure\<mystoragename> /pass:<password>

but does not appear to allow the individual user to be automatically connected to the file share with the users credentials

net use z: \\<mystoragename>.file.core.windows.net\<myfileshare> /user:<user@mydomain.onmicrosoft.com> <user password>

results in

System error 86 has occurred
The specified network password is not correct

0 Votes 0 ·
ManuPhilip avatar image
0 Votes"
ManuPhilip answered ·

Hello @NigelWhite-7905 ,

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

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ManuPhilip Thanks for this, however I think this shows attaching the storage share using the storage key rather than the authenticated user on the client machine. I think I need native AAD authentication which is apparently on the roadmap.

0 Votes 0 ·