gpt4 book ai didi

azure - 如何从Azure VM中删除azure Devops管道的权限?

转载 作者:行者123 更新时间:2023-12-03 06:58:27 24 4
gpt4 key购买 nike

我通过 web 部署任务通过 azure 管道将 .net web 应用程序部署到 azure 虚拟机上的 IIS 上。

为此,我必须通过在 Azure 虚拟机上运行脚本来初始配置部署组,如下所述(请参阅步骤 5):https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-webdeploy-iis-deploygroups?view=azure-devops&tabs=net#create-a-deployment-group

项目已经完成,现在我想删除管道对azure vm的权限。如何从Azure VM中删除azure Devops管道的权限?

最佳答案

The project has completed and now I want to remove the permission of the pipeline to the azure vm.

DevOps pipeline 使用帐户(设置 Agent 时,默认为“nt Authority\system”)来访问 Agent。

enter image description here

您可以卸载部署组代理以删除访问权限:

  1. 启动 powershell,转到代理文件夹。
  2. 运行.\config.cmd remove进行卸载。

完成后,它将删除代理服务以及下面的 VSTS 组用户。

enter image description here

如果您指定的用户不是默认用户,您甚至可以直接从机器中删除该用户来取消权限。

关于azure - 如何从Azure VM中删除azure Devops管道的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72697057/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com