.net 我们是否可以在远程VM中安装azure部署组代理而不访问internet(脱机)?
我尝试通过在powershell中运行注册脚本(来自部署组)在远程服务器中安装代理。但我有个错误。我在那个服务器上没有internet访问权限。那么,我们有没有可能或者其他方法来安装代理(即使是手动安装),而不需要在我们的远程服务器(VM)上访问internet 编辑-这是我得到的错误:.net 我们是否可以在远程VM中安装azure部署组代理而不访问internet(脱机)?,.net,azure-devops,continuous-integration,continuous-delivery,azure-deployment,.net,Azure Devops,Continuous Integration,Continuous Delivery,Azure Deployment,我尝试通过在powershell中运行注册脚本(来自部署组)在远程服务器中安装代理。但我有个错误。我在那个服务器上没有internet访问权限。那么,我们有没有可能或者其他方法来安装代理(即使是手动安装),而不需要在我们的远程服务器(VM)上访问internet 编辑-这是我得到的错误: Exception calling "DownloadFile" with "2" argument(s): "The underlying connectio
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
如果您在部署组配置中引用Azure DevOps提供的脚本,是的,您需要internet连接才能使用该脚本。它的安装步骤可以延伸到外部并下载代理文件 要避免这种情况,您可以采取以下措施:
请注意,即使使用此方法,如果计算机根本没有internet连接,您也可能会遇到问题。当代理启动时,它将尝试与Azure DevOps通信以验证其连接。如果失败,服务将无法启动。为什么不先共享a)您正在运行的脚本和b)您看到的错误?非常感谢@Max Morrow,我有一个疑问-只是提供了足够的“域(internet)访问权限”以便在服务器中下载和安装代理?没问题!顺便说一句,我不确定脚本将访问哪些URL。我建议运行fiddler并检查它运行时试图访问的内容。