Mount File share to Azure Batch Pool using Node.js SDK or Azure CLI

Owais 1 Reputation point
2021-01-07T14:09:54.077+00:00

Hello,

We are trying to mount a File share to the Azure Batch pool using Node.js by referencing the syntax from this blog; https://learn.microsoft.com/en-us/azure/batch/virtual-file-mount.

The pool configuration (https://gist.github.com/owais-ali-softpak/111e3a11c7cf42e2e608dc1193920d84) we are using successfully creates the Pool but no mounted drive is found in the location of $AZ_BATCH_NODE_MOUNTS_DIR.

I looked in Azure CLI for creating pools with a mounted File share, but couldn't find such an option. Also, this pool configuration doesn't seem to work in Node.js SDK.

Can you help me resolve this issue?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,298 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
336 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2021-01-07T23:31:23.233+00:00

    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 MountOptions, 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.


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.