【发布时间】:2021-03-01 13:51:54
【问题描述】:
我尝试通过在 powershell 中运行注册脚本(来自部署组)在我的远程服务器中安装代理。但我遇到了一个错误。而且我在该服务器上没有互联网访问权限。那么是否有可能或者我们有任何其他方式来安装代理(甚至手动)而无需在我们的远程服务器(VM)中访问互联网?
编辑-这是我得到的错误:
Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected error occurred on a send." At line:1 char:1303 + ...nalString, $True);}; $WebClient.DownloadFile($Uri, $agentZip);Add-Type ... +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+CategoryInfo : Not specified:(:)[],
ParentContainsErrorRecordException
+FullyQualifiedErrorId: WebException
【问题讨论】:
-
为什么不首先分享 a) 你正在运行的脚本和 b) 你看到了什么错误?
标签: .net azure-devops continuous-integration continuous-delivery azure-deployment