【问题标题】:Error while i try to install Deployment agent on IIS Server尝试在 IIS 服务器上安装部署代理时出错
【发布时间】:2020-02-26 00:26:15
【问题描述】:

我在一个域上有一个服务器 IIS,我在另一个域上有一个 Azure Devops Server On Premise。 我尝试执行部署组脚本,但我的 powershell 中有这个问题:

发送请求时出错。 连接失败。再做一次或点击 Ctrl+C 输入url连接

而且我不能有代理。

我在 powershell 管理员中输入了我的脚本。

$ErrorActionPreference="Stop";If(-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent() ).IsInRole( [Security.Principal.WindowsBuiltInRole] “Administrator”)){ throw "Run command in an administrator PowerShell prompt"};If($PSVersionTable.PSVersion -lt (New-Object System.Version("3.0"))){ throw "The minimum version of Windows PowerShell that is required by the script (3.0) does not match the currently running version of Windows PowerShell." };If(-NOT (Test-Path $env:SystemDrive\'azagent')){mkdir $env:SystemDrive\'azagent'}; cd $env:SystemDrive\'azagent'; for($i=1; $i -lt 100; $i++){$destFolder="A"+$i.ToString();if(-NOT (Test-Path ($destFolder))){mkdir $destFolder;cd $destFolder;break;}}; $agentZip="$PWD\agent.zip";$DefaultProxy=[System.Net.WebRequest]::DefaultWebProxy;$securityProtocol=@();$securityProtocol+=[Net.ServicePointManager]::SecurityProtocol;$securityProtocol+=[Net.SecurityProtocolType]::Tls12;[Net.ServicePointManager]::SecurityProtocol=$securityProtocol;$WebClient=New-Object Net.WebClient; $Uri='https://go.microsoft.com/fwlink/?linkid=2066756';if($DefaultProxy -and (-not $DefaultProxy.IsBypassed($Uri))){$WebClient.Proxy= New-Object Net.WebProxy($DefaultProxy.GetProxy($Uri).OriginalString, $True);}; $WebClient.DownloadFile($Uri, $agentZip);Add-Type -AssemblyName System.IO.Compression.FileSystem;[System.IO.Compression.ZipFile]::ExtractToDirectory( $agentZip, "$PWD");.\config.cmd --deploymentgroup --deploymentgroupname "Careline deployment dev preprod" --agent $env:COMPUTERNAME --runasservice --work '_work' --url 'https://mydomain:8080/tfs/' --collectionname 'Exelus' --projectname 'EXT-LinkCare' --auth Integrated; Remove-Item $agentZip;

我用过: - 综合认证, - 替代认证 - PAT 认证

我试图查看任何端口,但没有找到 你有什么主意吗?

【问题讨论】:

    标签: azure-devops azure-pipelines continuous-deployment windows-server-2012-r2 azure-devops-server-2019


    【解决方案1】:

    目前我知道在另一个域的另一个服务器上安装代理需要使用 HTTPS。我试图在http中做到这一点。 真正的问题是天蓝色的 devops 服务器只有 http 绑定。 因此,我们将在我们的 azure devops 服务器中打开一些端口并创建 https 绑定。 这将纠正我们当前的问题。 小心默认安装。

    【讨论】:

      猜你喜欢
      • 2019-03-21
      • 2013-04-14
      • 2021-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-01
      • 1970-01-01
      相关资源
      最近更新 更多