且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

azure devops本地代理管道许可被拒绝

更新时间:2022-05-15 08:28:29

在Azure DevOps上运行生成管道时.

When you run the build pipeline on Azure DevOps.

实际上是运行脚本的构建服务帐户.您应该确保构建服务帐户具有足够的访问权限:'//192.168.1.100\c $ \'

It's actually the build service account which is running the script. You should make sure the build service account have sufficient permission to Access: '//192.168.1.100\c$\'

要更改构建代理的身份,只需进入Windows服务并更改相关构建服务的身份(服务名称为"Azure Pipelines代理").

To change the identity of the build agent, just go into Windows Services and change the identity of related Build service (service name is " Azure Pipelines Agent").

  1. 服务窗格中,右键单击 Azure Pipelines代理.
  2. 服务状态下,单击停止.
  3. 点击登录标签.
  4. 此中指定要用于该服务的帐户帐户文本框.
  5. 密码文本框中键入新密码,然后键入确认密码文本框中再次输入新密码.
  6. 在服务状态"下,单击开始.

  1. In the Services pane, right-click Azure Pipelines Agent.
  2. Under Service Status, click Stop.
  3. Click the Log On tab.
  4. Specify the account you want to use for the service in the This account text box.
  5. Type the new password in the Password text box, and then type the new password again in the Confirm password text box.
  6. Under Service Status, click Start.

您应该使用一个用户来远程访问该服务器拥有构建代理的位置,并手动运行该脚本以执行部署过程.如果该用户能够成功部署而没有任何权限问题.只需将此用户用作Azure DevOps代理的生成服务帐户即可.

You should use a user to remote to that the server hold build agent and manually run the script to perform the deploy process. If that user is able to deploy succeed without any permission issue. Simply use this user as your build service account of Azure DevOps agent.

希望这会有所帮助.