-->
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+. This article shows two different ways to mount an Azure file share on macOS: with the Finder UI and using the Terminal.
For Mac OS, you just open Finder and click on 'Go', then enter smb://IP of sharing machine. See the following how to share between Mac OS and Windows. MacOS Sierra: Set up a Mac to share files with Windows users. Connecting to SMB shares with Mac OS X. This tutorial will walk you through connecting your Macs to SMB (Server Message Block) shares, hosted on Windows Servers, Windows Desktops, or network attached storage devices.
- Apple Mac OS X connect to SMB (samba/CIFS) share. Go Connect to Server. Smb://servername/sharename (in this case, acfiles is 10.1.16.112 currently).
- I can access the Windows 10 SMB shares from my Mac, but not the router's NAS share. I do know from experience with the Windows 10 PC accessing the NAS share, that SMB version 1.0 access has to be enabled from the client in order to work with my NAS share, which I think uses plain-text passwords, which is not enabled by default in the /etc/nsmb.
- If you work with a MacBook Pro or other macOS device on a network with non-mac machines, chances are you need to connect to folders that have been shared out via the SMB protocol.
Prerequisites for mounting an Azure file share on macOS
- Storage account name: To mount an Azure file share, you will need the name of the storage account.
- Storage account key: To mount an Azure file share, you will need the primary (or secondary) storage key. SAS keys are not currently supported for mounting.
- Ensure port 445 is open: SMB communicates over TCP port 445. On your client machine (the Mac), check to make sure your firewall is not blocking TCP port 445.
Mount an Azure file share via Finder
- Open Finder: Finder is open on macOS by default, but you can ensure it is the currently selected application by clicking the 'macOS face icon' on the dock:
- Select 'Connect to Server' from the 'Go' Menu: Using the UNC path from the prerequisites, convert the beginning double backslash (
) to
smb://
and all other backslashes () to forwards slashes (
/
). Your link should look like the following: - Use the storage account name and storage account key when prompted for a username and password: When you click 'Connect' on the 'Connect to Server' dialog, you will be prompted for the username and password (This will be autopopulated with your macOS username). You have the option of placing the storage account name/storage account key in your macOS Keychain.
- Use the Azure file share as desired: After substituting the share name and storage account key in for the username and password, the share will be mounted. You may use this as you would normally use a local folder/file share, including dragging and dropping files into the file share:
Mount an Azure file share via Terminal
- Replace
<storage-account-name>
,<storage-account-key>
, and<share-name>
with the appropriate values for your environment. - Use the Azure file share as desired: The Azure file share will be mounted at the mount point specified by the previous command.