Skip to content

Commit 55e35c4

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

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

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

Lines changed: 36 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,38 @@ 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, the following command removes the proxy server environmental variable:
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+
288+
289+
## Next steps
290+
291+
- 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.
292+
293+
- 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)