Part four: mount a file share from a domain-joined VM

Before you begin this article, make sure you complete the previous article, configure directory and file level permissions over SMB.

The process described in this article verifies that your file share and access permissions are set up correctly and that you can access an Azure File share from a domain-joined VM. Share-level RBAC role assignment can take some time to take effect.

Sign in to the client by using the credentials that you granted permissions to, as shown in the following image.

Screenshot showing Azure AD sign-in screen for user authentication

Mounting prerequisites

Before you can mount the file share, make sure you've gone through the following pre-requisites:

  • If you are mounting the file share from a client that has previously mounted the file share using your storage account key, make sure that you have disconnected the share, removed the persistent credentials of the storage account key, and are currently using AD DS credentials for authentication.
  • Your client must have line of sight to your AD DS. If your machine or VM is out of the network managed by your AD DS, you will need to enable VPN to reach AD DS for authentication.

Replace the placeholder values with your own values, then use the following command to mount the Azure file share:

# Always mount your share, even if you setup a private endpoint for your share.
net use <desired-drive-letter>: \\<storage-account-name>\<share-name>

If you run into issues mounting with AD DS credentials, refer to Unable to mount Azure Files with AD credentials for guidance.

If mounting your file share succeeded, then you have successfully enabled and configured on-premises AD DS authentication for your Azure file shares.

Next steps

If the identity you created in AD DS to represent the storage account is in a domain or OU that enforces password rotation, continue to the next article for instructions on updating your password:

Update the password of your storage account identity in AD DS