Hi Chris Martis,
Thanks for reaching out to Microsoft Q&A.
Please do not respond with CLI. I first need to understand how to do this from the Azure portal website
To mount an Azure File Share to an Azure Batch container using the Azure portal, follow these steps:
- Create or Select an Azure Batch Pool:
- Navigate to your Azure Batch account in the Azure portal.
- Select "Pools" from the left navigation pane.
- Create a new pool or select an existing one.
- Configure File Share Mounting:
- Go to the "Configuration" section of your pool.
- Under "Mount configuration," select "Add" to mount an Azure File Share.
- Fill in the required details:
- Storage account name: The name of your storage account.
- File share name: The name of your Azure File Share.
- Mount path: The path where the file share will be mounted on the compute nodes (e.g., '/mnt/data').
- Account key: The key for accessing the storage account.
- Verify Mount Configuration:
- Ensure the file share is correctly added to the mount configuration.
- Save the changes and ensure the pool is updated.
- Submit a Job to the Pool:
- Navigate to the "Jobs" section and create a new job.
- Configure the job to use the pool with the mounted file share.
- Configure Task to Use Mounted File Share:
- When creating tasks for the job, ensure the task command references the mounted path (ex: '/mnt/data/inputs' and '/mnt/data/outputs').
- Run and Monitor the Job:
- Submit the job and monitor its progress.
- Verify that the tasks can access the mounted file share paths.
By following the above steps, the Azure File Share will be mounted to the specified path on each compute node in your Azure Batch pool, allowing your container to access the required directories.
Let me know if this worked for you!
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.