如何从Azure VM中删除Azure Devops管道的许可?

发布于 2025-02-09 06:15:36 字数 543 浏览 2 评论 0 原文

我通过Azure Pipelines通过Web部署任务将.NET Web应用程序通过Azure VM上的IIS部署。

为此,我必须最初通过在Azure VM上运行脚本来配置部署组,如下所述(请参阅步骤5):

现在我已经完成了该项目,我已经完成了想要删除管道对Azure VM的许可。如何从Azure VM中删除Azure Devops管道的许可?

I deploy .net web app via azure pipelines onto IIS on an azure vm via the web deploy task.

To do this I had to initially configure the deployment group by running a script on the azure vm as explained here (see step 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

The project has completed and now I want to remove the permission of the pipeline to the azure vm. How to remove the permission of azure devops pipeline from an Azure VM?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里南柯 2025-02-16 06:15:36

该项目已经完成,现在我想删除管道对Azure VM的许可。

DevOps Pipeline使用该帐户(设置代理时,默认为“ NT Authority \ System”)访问代理。

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

  1. 启动PowerShell,转到Agent Folder。
  2. 运行。\ config.cmd remove 卸载。

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

如果您指定用户未默认,则可以直接从计算机中删除用户以删除权限。

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

DevOps pipeline uses the account(when you setup agent, default is "nt authority\system") to access the agent.

enter image description here

You can uninstall the deployment group agent to remove the access:

  1. Launch powershell,go to agent folder.
  2. Run .\config.cmd remove to uninstall.

After it's done, it will remove the agent service and also VSTS group user below.

enter image description here

If you specify user not default, you can even directly delete the user from the machine to remove the permission.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文