无法创建批处理池:
> az login
> az account set --subscription $myid
> az batch account set --resource-group $resourceGroupName --name $batchAccountName
> az batch pool create --json-file pool.json
usage: az batch pool create [-h] [--verbose] [--debug]
[--output {json,jsonc,table,tsv,yaml,none}]
[--query JMESPATH] [--id ID] [--vm-size VM_SIZE]
[--os-family {2,3,4,5}] [--os-version OS_VERSION]
[--node-agent-sku-id NODE_AGENT_SKU_ID]
[--resize-timeout RESIZE_TIMEOUT]
[--target-dedicated-nodes TARGET_DEDICATED_NODES]
[--target-low-priority-nodes TARGET_LOW_PRIORITY_NODES]
[--auto-scale-formula AUTO_SCALE_FORMULA]
[--enable-inter-node-communication]
[--start-task-command-line START_TASK_COMMAND_LINE]
[--start-task-resource-files START_TASK_RESOURCE_FILES [START_TASK_RESOURCE_FILES ...]]
[--start-task-wait-for-success]
[--certificate-references CERTIFICATE_REFERENCES [CERTIFICATE_REFERENCES ...]]
[--application-package-references APPLICATION_PACKAGE_REFERENCES [APPLICATION_PACKAGE_REFERENCES ...]]
[--application-licenses APPLICATION_LICENSES [APPLICATION_LICENSES ...]]
[--max-tasks-per-node MAX_TASKS_PER_NODE]
[--metadata METADATA [METADATA ...]]
[--json-file JSON_FILE]
[--account-name ACCOUNT_NAME]
[--account-key ACCOUNT_KEY]
[--account-endpoint ACCOUNT_ENDPOINT]
[--image IMAGE] [--subscription _SUBSCRIPTION]
az batch pool create: error: 'NoneType' object has no attribute 'startswith'pool.json:Azure文档含量

我刚刚注意到,其他批处理池命令也有相同的错误:
C:\Users\>az batch pool list
usage: az batch pool list [-h] [--verbose] [--debug]
[--output {json,jsonc,table,tsv,yaml,none}]
[--query JMESPATH] [--filter FILTER]
[--select SELECT] [--expand EXPAND]
[--account-name ACCOUNT_NAME]
[--account-key ACCOUNT_KEY]
[--account-endpoint ACCOUNT_ENDPOINT]
[--subscription _SUBSCRIPTION]
az batch pool list: error: 'NoneType' object has no attribute 'startswith'我又重新安装了天蓝色的阴蒂,但没什么区别。
发布于 2019-04-04 01:48:23
对于您的问题,我可以重新出现与您相同的错误:

这是因为您需要使用批处理帐户登录,而不仅仅是使用Azure登录。

您可以在使用Azure CLI管理批处理资源中看到描述,它显示如下:
若要在批处理中使用Azure CLI,您需要登录并进行身份验证。下面有两个简单的步骤:
因此,我认为可能的原因是,您还需要登录批处理帐户。
https://stackoverflow.com/questions/55496524
复制相似问题