Skip to content

Commit fe075dd

Browse files
committed
updated manage agent article
1 parent 55e35c4 commit fe075dd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/azure-arc/servers/manage-agent.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ $env:https_proxy = [System.Environment]::GetEnvironmentVariable("https_proxy","M
273273
Restart-Service -Name himds
274274
```
275275

276-
To configure the agent to stop communicating through a proxy server, the following command removes the proxy server environmental variable:
276+
To configure the agent to stop communicating through a proxy server, run the following command to removes the proxy server environmental variable and restart the agent service:
277277

278278
```powershell
279279
[Environment]::SetEnvironmentVariable("https_proxy",$null,"Machine")
@@ -284,7 +284,18 @@ Restart-Service -Name himds
284284

285285
### Linux
286286

287+
To set the proxy server, run the following command from the directory you downloaded the agent installation package to:
287288

289+
```bash
290+
# Reconfigure the connected machine agent and set the proxy server.
291+
bash ~/Install_linux_azcmagent.sh --proxy "{proxy-url}:{proxy-port}"
292+
```
293+
294+
To configure the agent to stop communicating through a proxy server, run the following command to remove the proxy configuration:
295+
296+
```bash
297+
sudo azcmagent_proxy remove
298+
```
288299

289300
## Next steps
290301

0 commit comments

Comments
 (0)