Azure Devtest Lab VM无法从VST下载工件

Azure Devtest Lab VM无法从VST下载工件,azure,azure-devops,azure-devtest-labs,Azure,Azure Devops,Azure Devtest Labs,在创建Azure DevTest lab VM时,我将执行以下操作 选择了“Windows Server R2数据中心”映像 在我添加的工件中 i、 要安装的Firefox浏览器 ii.下载VSTS拖放和运行脚本(创建并使用具有所有作用域的Personal secure Token) 我创建了一个ARM模板,并在构建定义中使用它来创建vm并运行从VST下载的工件 问题: 当我没有添加上面的(ii)项时,我可以很好地创建VM,但是当我在ARM模板中添加(ii)项时,我总是看到下面的错误 错误: 2

在创建Azure DevTest lab VM时,我将执行以下操作

  • 选择了“Windows Server R2数据中心”映像
  • 在我添加的工件中 i、 要安装的Firefox浏览器 ii.下载VSTS拖放和运行脚本(创建并使用具有所有作用域的Personal secure Token
  • 我创建了一个ARM模板,并在构建定义中使用它来创建vm并运行从VST下载的工件

    问题: 当我没有添加上面的(ii)项时,我可以很好地创建VM,但是当我在ARM模板中添加(ii)项时,我总是看到下面的错误

    错误:

    2017-06-06T19:11:24.1769032Z ##[error]**System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 
    2017-06-06T19:11:24.1769032Z Cannot process command because of one or more missing mandatory parameters: Download_VSTS_Drop_and_Run_Script.PersonalAccessToken.**
    2017-06-06T19:11:24.1769032Z    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
    2017-06-06T19:11:24.1769032Z    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
    2017-06-06T19:11:24.1769032Z    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
    2017-06-06T19:11:24.1769032Z    at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
    2017-06-06T19:11:24.1769032Z    at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
    2017-06-06T19:11:24.1769032Z    at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args)
    2017-06-06T19:11:24.1869033Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1.
    2017-06-06T19:11:24.1879035Z ##[section]Finishing: Create Azure DevTest Labs VM
    

    非常感谢在此上下文中的任何帮助,以及在生成定义中使用DevTestLab的任何指针都将非常好。

    错误清楚地说明了这一点,没有访问令牌,显示模板?ii的详细步骤是什么(下载VSTS拖放和运行脚本(创建并使用具有所有作用域的个人安全令牌))?