azure-devops - Azure Devops 管道环境资源代理安装问题

标签 azure-devops devops agent

我一直在尝试在 azure devops 中向我们的管道添加环境资源,但每次我使用 powershell 脚本安装它时,他们提供的它都会要求我提供标签。如果我不想输入标签,则会出错。如果我选择放入标签,则会出错。无论哪种方式,它每次都会重新开始,并且永远不会成功安装。有谁知道这是我这边的还是他们那边的?我查看了诊断文件,它记录的异常看起来像是我无法修复的问题,但我已经遇到了一个多星期的问题,并认为这是 Microsoft 会意识到并修补的问题。现在我想知道我还有什么可以做的吗?

Powershell snippet

[2020-05-22 13:01:48Z ERR VisualStudioServices] POST request to https://DEVOPS_URL/24cca667-60da-4ba2-a323-4e05c46f3309/_apis/pipelines/environments/3/providers/virtualmachines failed. HTTP Status: InternalServerError, AFD Ref: Ref A: 56C7161B437D41698EBBDE7ACBF4CAA2 Ref B: ATAEDGE0918 Ref C: 2020-05-22T13:01:48Z [2020-05-22 13:01:48Z INFO CommandSettings] Flag 'unattended': 'False' [2020-05-22 13:01:48Z ERR Terminal] WRITE ERROR (exception): [2020-05-22 13:01:48Z ERR Terminal] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: TF400898: An Internal Error Occurred. Activity Id: acb8a36a-e602-4988-b3f7-8fbeecd729e0. ---> System.NullReferenceException: TF400898: An Internal Error Occurred. Activity Id: acb8a36a-e602-4988-b3f7-8fbeecd729e0. --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpMethod method, IEnumerable1 additionalHeaders, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable1 queryParameters, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.EnvironmentVMResourceConfigProvider.AddAgentAsync(AgentSettings agentSettings, TaskAgent agent, CommandSettings command) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.ConfigureAsync(CommandSettings command)

最佳答案

我遇到了类似的错误“无法添加虚拟机资源。链接环境池为空。”
来自 Kevin Ross 的回答:https://developercommunity.visualstudio.com/t/addition-of-resource-to-environment-fails-for-user/1048111
我按照以下步骤解决了我的错误:

  • 从环境 URL 获取部署池 ID
    enter image description here
  • 在组织设置中找到部署池设置,然后根据步骤 1 中的 ID 导航到正确的池
    enter image description here
  • 从部署池设置,转到安全性并将所需的用户添加到管理员角色或所需的任何角色
    enter image description here
  • 关于azure-devops - Azure Devops 管道环境资源代理安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61955974/

    相关文章:

    kubernetes - 为什么 kubectl cp 命令以退出代码 126 终止?

    python - 在单个 Docker 容器中开发 ROS 节点?

    linux - NGINX docker 容器无法在网络浏览器中访问

    tensorflow - 为什么 tf_agent 变量即使在训练后也不会改变?

    f# - 懒惰..但在 F# 中急切的数据加载器

    simulation - NetLogo 4.1 - 高速公路的实现(造成汽车碰撞的问题)

    windows - 资源在西欧位置不可用 - 使用 Windows 操作系统的 Azure 容器实例

    reactjs - 如何在 Azure 上的不同 URL 中为每个 PR 部署 React 应用程序?

    azure-devops - 如何切换构建管道的默认分支

    用于托管在 azure 存储 blob 上的静态网站的 azure 管道