Search code examples
azureazure-virtual-machine

How to unmount an Azure File Share


I've got a Windows Server VM on Azure. I also have a File Share. According to the MS documentation, one can mount the drive using the following command:

net use <drive-letter>: \\<storage-account-name>.file.core.windows.net\<share-name>

This does indeed work.

Unfortunately, the documentation makes no mention of how to unmount the storage...

Does anyone know how to do this?


Solution

  • To unmount a File Share drive, simply use:

    net use <drive-letter> /delete
    

    This will detach the drive.