How to mount an Azure file share to an Azure Batch pool

Sreenidhi Palimar 20 Reputation points
2024-08-09T11:41:38.48+00:00

I need to make a log file available at any time by attaching the file share as the mount configuration while creating a new batch pool. Can someone provide me with the steps to attach a mount configuration and explain what mount options are available?

Here are some images for reference:

User's image

User's image

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,105 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
329 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nehruji R 7,306 Reputation points Microsoft Vendor
    2024-08-12T05:34:47.68+00:00

    Hello Sreenidhi Palimar,

    Greetings! Welcome to Microsoft Q&A Platform.

    Azure Files offers fully managed file shares in the cloud that are accessible via the Server Message Block (SMB) protocol. You can mount and use an Azure file share on Batch pool compute nodes. For details on how to mount an Azure file share on a pool, see Mount a virtual file system on a Batch pool, https://video2.skills-academy.com/en-us/azure/batch/pool-file-shares.

    To start, I would make sure that your file share is able to be connected to. The easiest way to do that is to try and mount the file share to another computer. As many ISPs block port 445, it might be best to do this on an Azure VM. Here are instructions to mount an azure file share using a Windows VM, instructions for Linux can be found next to this article in the Table of Contents on the left.

    For your configuration, I noticed that you do not have any Mount Options, you might want to try it with the mount options given in the doc example.

    There is also a section in that article about diagnosing mount errors. If the nodes are in a failed state, you can pull the failure message to see what went wrong.

    Mount Options Available

    Azure Batch supports mounting various types of file systems, including:

    1.Azure Files: Fully managed file shares in the cloud accessible via the SMB protocol.

    2.Azure Blob Storage: Use BlobFuse to mount blob storage as a local file system.

    3.Network File System (NFS): Suitable for Linux compute nodes.

    4.Common Internet File System (CIFS): Also suitable for Linux compute nodes.

    For example, to mount an Azure Files share on a Windows Batch pool using PowerShellhttps://techcommunity.microsoft.com/t5/azure-paas-blog/mount-azure-file-share-to-azure-batch-pool-via-azure-powershell/ba-p/2243992

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.