Какое значение мне нужно предоставить RelativeMountPath для подключения общего файлового ресурса к пакетному пулу с вычислительными узлами Windows?
Согласно документации, в нем говорится: «Относительный путь на вычислительном узле, где будет смонтирована файловая система».
В настоящее время я получаю ошибку «MountConfigurationException: неправильный вызов или разрешения», когда он добавляет узел в пул.
Я пробовал использовать как PowerShell, так и код C #. В обоих сценариях это не сработало. Ниже приведен код C #
private static void CreateBatchPool(BatchClient batchClient, CloudServiceConfiguration cloudServiceConfiguration)
{
CloudPool pool = batchClient.PoolOperations.CreatePool(
poolId: PoolId,
targetDedicatedComputeNodes: PoolNodeCount,
virtualMachineSize: PoolVMSize,
targetLowPriorityComputeNodes: 0,
cloudServiceConfiguration: cloudServiceConfiguration);
pool.MaxTasksPerComputeNode = 8;
pool.ApplicationPackageReferences = CreateAppPackageReferences();
pool.TaskSchedulingPolicy = new TaskSchedulingPolicy(ComputeNodeFillType.Pack);
pool.MountConfiguration = new List<MountConfiguration>();
pool.MountConfiguration.Add(new MountConfiguration(CreateFileShareConfiguration(batchClient)));
pool.Commit();
}
private static AzureFileShareConfiguration CreateFileShareConfiguration(BatchClient batchClient)
{
string url = @"https://storage.file.core.windows.net/fileshare";
AzureFileShareConfiguration fileShareConfiguration = new AzureFileShareConfiguration(StorageAccountName, url, "foo", StorageAccountKey);
return fileShareConfiguration;
}