Skip to content

Commit 257fbe7

Browse files
authored
Merge pull request #113229 from MGoedtel/task1701806
updated manage agent article
2 parents 2ea1552 + c811501 commit 257fbe7

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: azure-arc
66
ms.subservice: azure-arc-servers
77
author: mgoedtel
88
ms.author: magoedte
9-
ms.date: 04/14/2020
9+
ms.date: 04/29/2020
1010
ms.topic: conceptual
1111
---
1212

@@ -256,3 +256,49 @@ If you are planning to stop managing the machine with supporting services in Azu
256256
1. Open Azure Arc for servers (preview) by going to the [Azure portal](https://aka.ms/hybridmachineportal).
257257
258258
2. Select the machine in the list, select the ellipsis (**...**), and then select **Delete**.
259+
260+
## Update or remove proxy settings
261+
262+
To configure the agent to communicate to the service through a proxy server or remove this configuration after deployment, or use one of the following methods to complete this task.
263+
264+
### Windows
265+
266+
To set the proxy server environment variable, run the following command:
267+
268+
```powershell
269+
# If a proxy server is needed, execute these commands with the proxy URL and port.
270+
[Environment]::SetEnvironmentVariable("https_proxy","http://{proxy-url}:{proxy-port}","Machine")
271+
$env:https_proxy = [System.Environment]::GetEnvironmentVariable("https_proxy","Machine")
272+
# For the changes to take effect, the agent service needs to be restarted after the proxy environment variable is set.
273+
Restart-Service -Name himds
274+
```
275+
276+
To configure the agent to stop communicating through a proxy server, run the following command to remove the proxy server environmental variable and restart the agent service:
277+
278+
```powershell
279+
[Environment]::SetEnvironmentVariable("https_proxy",$null,"Machine")
280+
$env:https_proxy = [System.Environment]::GetEnvironmentVariable("https_proxy","Machine")
281+
# For the changes to take effect, the agent service needs to be restarted after the proxy environment variable removed.
282+
Restart-Service -Name himds
283+
```
284+
285+
### Linux
286+
287+
To set the proxy server, run the following command from the directory you downloaded the agent installation package to:
288+
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+
```
299+
300+
## Next steps
301+
302+
- Learn how to manage your machine using [Azure Policy](../../governance/policy/overview.md), for such things as VM [guest configuration](../../governance/policy/concepts/guest-configuration.md), verifying the machine is reporting to the expected Log Analytics workspace, enable monitoring with [Azure Monitor with VMs](../../azure-monitor/insights/vminsights-enable-at-scale-policy.md), and much more.
303+
304+
- Learn more about the [Log Analytics agent](../../azure-monitor/platform/log-analytics-agent.md). The Log Analytics agent for Windows and Linux is required when you want to proactively monitor the OS and workloads running on the machine, manage it using Automation runbooks or features like Update Management, or use other Azure services like [Azure Security Center](../../security-center/security-center-intro.md).

0 commit comments

Comments
 (0)