Skip to content

Commit 48f89e2

Browse files
Merge pull request #43997 from zntran/patch-1
fix proxy example to work in real environments
2 parents 57a7a96 + 6f28f23 commit 48f89e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-arc/servers/quickstart-onboard-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ Upon successful completion, your machine is connected to Azure. You can view you
169169
For **Linux**, if the server requires a proxy server, you can either:
170170

171171
* Run the `install_linux_hybrid_agent.sh` script from the [Install the Agent](#download-and-install-the-agent) section above, with `--proxy`.
172-
* If you have already installed the agent, execute the command `/opt/azcmagent/bin/hybridrp_proxy add https://{proxy-url}:{proxy-port}`, which configures the proxy and restarts the agent.
172+
* If you have already installed the agent, execute the command `/opt/azcmagent/bin/hybridrp_proxy add http://{proxy-url}:{proxy-port}`, which configures the proxy and restarts the agent.
173173

174174
#### Windows
175175

176176
For **Windows**, if the server requires proxy server for access to internet resources, you should run the command below to set the proxy server environment variable. This allows the agent to use proxy server for internet access.
177177

178178
```powershell
179179
# If a proxy server is needed, execute these commands with actual proxy URL
180-
[Environment]::SetEnvironmentVariable("https_proxy", "{https:\\proxy-url:proxyport}", "Machine")
180+
[Environment]::SetEnvironmentVariable("https_proxy", "http://{proxy-url}:{proxy-port}", "Machine")
181181
$env:https_proxy = [System.Environment]::GetEnvironmentVariable("https_proxy","Machine")
182182
# The agent service needs to be restarted after the proxy environment variable is set in order for the changes to take effect.
183183
Restart-Service -Name himds

0 commit comments

Comments
 (0)