How to map Azure file share from Azure VM for all Users Permanently

Madala, Hanumantharao 76 Reputation points
2021-10-21T06:58:55.333+00:00

Hi Team,
How to mount Azure fileshare for all users in Windows 2019 server. After reboot of VM, any user logged in should able to see mounted drive(azure fileshare).

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Madala, Hanumantharao 76 Reputation points
    2021-10-21T07:07:03.667+00:00

    Basically I am facing issue to access UNC path of fileshare for SFTP connection.
    I have defined the ChrootDirectory as fileshare full path(UNC path) in my OpenSSH (windows in-built one) configuration file (sshd_config).

    sftp -P portnumber username@ipaddress
    Connection reset by ipaddress port
    Connection closed

    0 comments No comments

  2. Limitless Technology 39,926 Reputation points
    2021-10-21T09:32:54.307+00:00

    Hello MadalaHanumantharao,

    Could you try with the GUI steps from the Microsoft article?: https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows#persisting-azure-file-share-credentials-in-windows

    This could help to know if it is a problem of definition or the system.

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

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Madala, Hanumantharao 76 Reputation points
    2021-10-22T07:40:29.14+00:00

    Let me explain in details:

    1. I have two user accounts (sftpuser1, sftpuser2) in my azure VM.
    2. I have logged in as sftpuser1 and run the mount drive script for storage account fileshare connection. After reboot of VM, I am able to see mounted filesystem(fileshare).
    3. Next time, I have logged in as sftpuser2..but unable to see mounted file system(fileshare)
    0 comments No comments

  4. Madala, Hanumantharao 76 Reputation points
    2021-10-22T08:12:54.087+00:00
    1. Next step, I prepared and placed the mount drive script in windows group policy startup.
    2. I rebooted the VM using sftpuser1...this time I got Disconnected Network Drive(F:)..when I click it..I am able to see the folders and content inside fileshare.
    3. Next step, I logged in as sftpuser2, this time I got Disconnected Network Drive(F:)..when I click it..I got following error message.
      Location is not available
      F:\ is not accessible
      The username or password is incorrect.

    142829-image.png

    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.