userIdentityconfiguration不在Azure批处理的startTask中使用
我正在尝试使用Azure CLI和JSON文件configuration来创build池。 poolcfg.json { "odata.metadata":"https://myaccount.myregion.batch.azure.com/#pools/@Element", "id":"mypool", "vmSize":"Standard_F4", "virtualMachineConfiguration":{ "imageReference":{ "publisher":"Canonical", "offer":"UbuntuServer", "sku":"16.04-LTS", "version":"latest" }, "nodeAgentSKUId":"batch.node.ubuntu 16.04" }, "startTask":{ "commandLine":"bash -c '`whoami`'", "userIdentity":{ "userName":"ubuntu" }, }, "targetDedicatedNodes":1, "userAccounts":[ { "name":"ubuntu", "password":"mypassword", "elevationLevel":"admin" } ] } 我用az batch pool create –json-file "poolcfg.json" 你会期望whoami命令返回ubuntu但是,它返回_azbatch 。 这是azure色的错误还是我做错了什么? 我正在使用这些文档https://docs.microsoft.com/en-us/rest/api/batchservice/add-a-pool-to-an-account#userIdentity ,它似乎我做对了.. 。