Mount an Azure file share on macOS (original) (raw)

Azure Files is Microsoft's easy-to-use cloud file system. Azure file shares can be mounted with the industry standard SMB 3 protocol by macOS High Sierra 10.13+.

Warning

Mounting a file share using storage account keys carries inherent security risks. For information on how to protect and manage your keys, see Manage storage account access keys. Azure Files doesn't currently support using identity-based authentication to mount a file share on macOS.

Applies to

Management model Billing model Media tier Redundancy SMB NFS
Microsoft.Storage Provisioned v2 HDD (standard) Local (LRS) Yes No
Microsoft.Storage Provisioned v2 HDD (standard) Zone (ZRS) Yes No
Microsoft.Storage Provisioned v2 HDD (standard) Geo (GRS) Yes No
Microsoft.Storage Provisioned v2 HDD (standard) GeoZone (GZRS) Yes No
Microsoft.Storage Provisioned v1 SSD (premium) Local (LRS) Yes No
Microsoft.Storage Provisioned v1 SSD (premium) Zone (ZRS) Yes No
Microsoft.Storage Pay-as-you-go HDD (standard) Local (LRS) Yes No
Microsoft.Storage Pay-as-you-go HDD (standard) Zone (ZRS) Yes No
Microsoft.Storage Pay-as-you-go HDD (standard) Geo (GRS) Yes No
Microsoft.Storage Pay-as-you-go HDD (standard) GeoZone (GZRS) Yes No
  1. Open Finder: Finder is open on macOS by default, but you can ensure that it's the currently selected application by clicking the macOS face icon on the dock:
    The macOS face icon
  2. Select "Connect to Server" from the "Go" Menu: Using the UNC path, convert the beginning double backslash (\\) to smb:// and all other backslashes (\) to forward slashes (/).The "Connect to Server" dialog
  3. Use the storage account name and storage account key when prompted for a username and password: If desired, you can persist the storage account name and storage account key in your macOS Keychain.
  4. Use the Azure file share as desired: After substituting the share name and storage account key for the username and password, the share is be mounted. You can use the file share as you would normally use a local folder, including dragging and dropping files into the file share:
    A snapshot of a mounted Azure file share
  5. Replace <storage-account-name>, <storage-account-key>, and <share-name> with the appropriate values for your environment.
open smb://<storage-account-name>:<storage-account-key>@<storage-account-name>.file.core.windows.net/<share-name>  
  1. Use the Azure file share as desired: The Azure file share is mounted at the mount point specified by the previous command.
    A snapshot of the mounted Azure file share

Next step