VMExtensionProvisioningError:在azure上创建TeamServicesAgent扩展时

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VMExtensionProvisioningError:在azure上创建TeamServicesAgent扩展时相关的知识,希望对你有一定的参考价值。

params = self.compute_client.models().VirtualMachineExtension(location="southeastasia",
                     publisher='Microsoft.VisualStudio.Services',
                     virtual_machine_extension_type='TeamServicesAgent',
                     type_handler_version='1.14',
                     auto_upgrade_minor_version=True,
                     settings={
                       "vstsAccountName": "xyz",
                       "teamProject": "xyz",
                       "deploymentGroup": "Virtual Machine Test",
                       "agentName": "",
                       "tags": ""
                     },
                     protected_settings={
                     "PATToken": "uy4luslycpkjhXXXXXXXnypzcnrlfXXXuddxrXXXXwdw5hxbzlxv5ja"   
                     }
)

我收到像Message: VM has reported a failure when processing extension 'hello'. Error message: "Failed to get status file [Errno 2] No such file or directory: '/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgent-1.14.0.0/status/0.status'". 这样的错误

设置属性中是否有任何错误的参数?

答案

virtual_machine_extension_type='TeamServicesAgent'仅适用于Windows VM。对于Linux VM,您应该使用TeamServicesAgentLinux

你可以看到这个link

以上是关于VMExtensionProvisioningError:在azure上创建TeamServicesAgent扩展时的主要内容,如果未能解决你的问题,请参考以下文章