并行运行Azure DevTest Labs创建VM扩展时出错 [英] Error when running Azure DevTest Labs Create VM extension in parallel

查看:73
本文介绍了并行运行Azure DevTest Labs创建VM扩展时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在同一台计算机上同时运行任务"Azure DevTest Labs"创建VM时,出现以下异常:

When running the task Azure DevTest Labs Create VM in parallel on the same machine i get the following exception: 

2019-01-07T13:38:41.9024404Z ## [error] System.IO.IOException:进程无法访问文件'C:\ Windows \ ServiceProfiles \ NetworkService \ AppData \ Roaming \ Windows Azure Powershell \ TokenCache.dat',因为它正在被使用
2019-01-07T13:38:41.9024404Z ##[error]System.IO.IOException: The process cannot access the file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Windows Azure Powershell\TokenCache.dat' because it is being used by another process.

推荐答案

您好 lh_hexagon

Hi lh_hexagon,

感谢使用Azure DevTest实验室和Azure Devops.

Thanks for Using Azure DevTest Labs and Azure Devops.

要使并行作业具有相同的Azure环境,所需的Azure PowerShell版本> = 6.3.0.请确保您的代理具有最新版本.看看是否可以使用Enable-AzContextAutosave.

For parallel jobs to have the same azure context the required azure PowerShell version > = 6.3.0. Please ensure your agent is with latest version. See if Enable-AzContextAutosave can be used.

请检查下面的链接,其中讨论了类似的问题以及可能的解决方法.  

Please check the below links which talk about similar issue and possible workaround.  

https://github.com/LIS/LISAv2/issues /504

https://docs .microsoft.com/en-us/powershell/azure/context-persistence?view = azps-1.0.0& viewFallbackFrom = azurermps-6.13.0  

希望这些信息有助于您进一步探索Azure Devops和DevTest实验室.如果您还有其他问题,请告诉我们.谢谢

Hope the information helps you to further explore Azure Devops and DevTest Labs. If you have any further questions let us know. Thanks


这篇关于并行运行Azure DevTest Labs创建VM扩展时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆