Skip to content

Commit cce0e38

Browse files
Merge pull request #8291 from MicrosoftDocs/users/sdanie/486886
Basic auth for agent behind proxy
2 parents e4d212e + e2fe853 commit cce0e38

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

docs/pipelines/agents/proxy.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Run the agent behind a web proxy
33
description: Learn how you can run a v2 private build and release agent behind a web proxy for Azure Pipelines and Team Foundation Server (TFS)
44
ms.topic: conceptual
55
ms.assetid: 6AC4BA22-9F6F-44B5-BB15-445A7CFD2AD4
6-
ms.date: 01/25/2023
6+
ms.date: 09/08/2025
77
monikerRange: '<= azure-devops'
88
---
99

@@ -12,7 +12,6 @@ monikerRange: '<= azure-devops'
1212
[!INCLUDE [version-lt-eq-azure-devops](../../includes/version-lt-eq-azure-devops.md)]
1313

1414

15-
1615
When your self-hosted agent requires a web proxy, you can inform the agent about the proxy during configuration.
1716
This allows your agent to connect to Azure Pipelines or TFS through the proxy.
1817
This in turn allows the agent to get sources and download artifacts.
@@ -74,3 +73,22 @@ Create a `.proxybypass` file in the agent's root directory that specifies regula
7473
github\.com
7574
bitbucket\.com
7675
```
76+
77+
## Enable Basic authentication for proxy setup
78+
79+
The agent configuration may not be compatible with certain corporate proxy setups that use default NTLM authentication, and you may get `407 authentication errors`. In such cases, you can enable Basic authentication for the proxy by adding the `--usebasicauthforproxy` flag during agent configuration, provided the proxy supports fallback to Basic authentication.
80+
81+
For example:
82+
83+
# [Windows](#tab/windows)
84+
85+
```dotnetcli
86+
./config.cmd --proxyurl http://proxy.company.com:port --proxyusername <userNamePlaceholder> --proxypassword <passwordPlaceholder> --usebasicauthforproxy
87+
```
88+
89+
# [macOS and Linux](#tab/unix)
90+
```
91+
./config.sh --proxyurl http://proxy.company.com:port --proxyusername <userNamePlaceholder> --proxypassword <passwordPlacehopasswordPlaceholderlder> --usebasicauthforproxy
92+
```
93+
94+
* * *

0 commit comments

Comments
 (0)