Azure Batch : AzureFileShareConfiguration mount drive disconnected

Kale, Vaibhav 41 Reputation points
2020-06-29T14:36:12.08+00:00

Hello,

I am trying to create a Pool using Azure Batch . I have uploaded content to Azure Storage using File Shares.
I would like my Pool to mount this Azure File Share as virtual file system (ref: https://learn.microsoft.com/en-us/azure/batch/virtual-file-mount#mount-a-virtual-file-system-on-a-pool ).

I am creating AzureFileShareConfiguration object using code:

mount_configuration=batchmodels.MountConfiguration(azure_file_share_configuration=batchmodels.AzureFileShareConfiguration(  
                                                    account_name="mystorage",  
                                                    azure_file_url="https://mystorage.file.core.windows.net/my-share1",  
                                                    account_key="mystorage/key==",  
                                                    relative_mount_path="S"                                                      
                                                    )  
                                            )  

Using this, I get "CMDKEY: Credentials added successfully" in fsmounts. But when I RDP to the node in the pool, the S drive appears "Disconnected".

My Azure batch package versions are:

azure-batch==8.0.0
azure-common==1.1.24

Can you please help diagnose the issue or suggest the right usage?

Thanks and Best Regards,
Vaibhav

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. Sumarigo-MSFT 46,441 Reputation points Microsoft Employee
    2020-07-02T06:33:21.683+00:00

    @Kale, Vaibhav Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused
    The relative path (relative_mount_path) on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

    Azure Files is the standard Azure cloud file system offering with SMB protocol. To learn more about how to get any of the parameters in the mount configuration code sample, Refer to How to use an Azure Files share.

    Additional information: Use an Azure file share with a Batch pool

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "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.