In order to mount the new Azure Files SMB share as a bind mount in a container, we will leverage the SMB Global Mapping feature that was introduced in Window Server 1709. Global mappings have been introduced specifically for this purpose, that is, mounting SMB shares on the host so that they're visible to containers. Let's get started:
- First, ensure that you are logged in so that you can execute Azure PowerShell (using the Connect-AzAccount command).
- Next, let's define a few variables that will be used in the commands we'll execute soon:
$resourceGroupName = "docker-storage-resource-group"$storageAccountName = "dockerstorageaccount"$fileShareName = "docker-bind-mount-share"
The names being used ...