代码之家  ›  专栏  ›  技术社区  ›  Tailor Devendra

VMExtensionProvisioningError:在azure上创建TeamServicesAgent扩展时

  •  0
  • Tailor Devendra  · 技术社区  · 8 年前
    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'".

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

    1 回复  |  直到 8 年前
        1
  •  3
  •   Shui shengbao    8 年前

    这个 virtual_machine_extension_type='TeamServicesAgent' 仅适用于Windows VM。对于linux VM,您应该使用 TeamServicesAgentLinux .

    你可以看到这个 link .