简体   繁体   English

Azure DevOps连接VM和访问资源(应用程序)

[英]Azure DevOps to connect VM and Access Resources (Application)

I have Rapise Automation tool inside Windows VM, I would to access/invoke that application and read generated output files; 我在Windows VM中有Rapise Automation工具,我会访问/调用该应用程序并读取生成的输出文件;

I have a powershell script which can run on Windows powershell and invoke Rapise application (local) and do the same, what I want. 我有一个PowerShell脚本,可以在Windows PowerShell上运行并调用Rapise应用程序(本地)并执行相同的操作,我想要的。

Someone, please help me to connect to VM from Azure DevOps tasks. 有人,请帮我从Azure DevOps任务连接到VM。

You need to have Agents communication with Azure Pipelines. 您需要与Azure管道进行代理通信。 When you use the agent to deploy artifacts to a set of servers, it must have "line of sight" connectivity to those servers. 使用代理将工件部署到一组服务器时,它必须与这些服务器具有“视线”连接。 The Microsoft-hosted agent pools, by default, have connectivity to Azure websites and servers running in Azure. 默认情况下,Microsoft托管的代理池可以连接到Azure中运行的Azure网站和服务器。

If your on-premises environments do not have connectivity to a Microsoft-hosted agent pool (which is typically the case due to intermediate firewalls), you'll need to manually configure a self-hosted agent on on-premises computer(s). 如果您的本地环境没有连接到Microsoft托管的代理池(这通常是由于中间防火墙),则您需要在本地计算机上手动配置自托管代理。 The agents must have connectivity to the target on-premises environments, and access to the Internet to connect to Azure Pipelines or Team Foundation Server, as shown in the following schematic. 代理必须具有与目标本地环境的连接,并且必须访问Internet才能连接到Azure管道或Team Foundation Server,如下图所示。

Once you have the agent configured , you can leverage the tasks to run PowerShell on target machines with the Release pipeline task gallery. 配置代理后,您可以利用Release管道任务库在目标计算机上运行PowerShell。

在此输入图像描述

Additional documentation reference. 其他文档参考。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM