【发布时间】:2019-10-22 16:31:53
【问题描述】:
我们使用 Azure DevOps 在 Azure 中构建和部署我们的应用程序和服务。现在,我们也将本地部署切换到 Azure DevOps。
不幸的是,我们的服务器存在一个问题,这些服务器一方面受防火墙保护(传出的互联网流量大部分被阻止),另一方面又是 Azure DevOps 部署组的一部分。一旦我们创建新版本并开始部署到某个阶段,工件下载过程就会失败,因为不允许服务器从存储工件的 blob 存储中下载工件。
Warning, https://elgvsblobprodsu6weus10.blob.core.windows.net/dbcXXXXXXX/XXXX
Try 1/5, retryable exception caught. Retrying in 00:00:01. Details:
2019-10-21T19:59:02.7071549Z No LastRequestResponse on exception HttpRequestException: An error occurred while sending the request. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: Error 12029 calling WINHTTP_CALLBACK_STATUS_REQUEST_ERROR, 'A connection with the server could not be established'.
2019-10-21T19:59:02.7071940Z at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
2019-10-21T19:59:02.7072055Z at System.Net.Http.WinHttpHandler.StartRequest(WinHttpRequestState state)
2019-10-21T19:59:02.7072112Z --- End of inner exception stack trace ---
2019-10-21T19:59:02.7074791Z at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
2019-10-21T19:59:02.7074976Z at Microsoft.VisualStudio.Services.Common.TaskCancellationExtensions.EnforceCancellation[TResult](Task`1 task, CancellationToken cancellationToken, Func`1 makeMessage, String file, String member, Int32 line)
2019-10-21T19:59:02.7075133Z at Microsoft.VisualStudio.Services.BlobStore.WebApi.DedupStoreHttpClient.<>c__DisplayClass56_0.<<GetRedirectResponseAsync>b__0>d.MoveNext()
2019-10-21T19:59:02.7075213Z --- End of stack trace from previous location where exception was thrown ---
2019-10-21T19:59:02.7075312Z at Microsoft.VisualStudio.Services.Content.Common.AsyncHttpRetryHelper`1.InvokeAsync(CancellationToken cancellationToken)
那么是否有任何用于存储 Azure Pipeline 工件的端点列表可以添加到我们的防火墙策略中,我们是否必须排除 *.blob.core.windows.net还是有什么不同的方法?
不幸的是,Microsoft 文档仅提供了与 Azure DevOps 建立连接所需的 URL 列表,但不提供与工件存储的连接。
【问题讨论】:
标签: azure azure-devops azure-pipelines