Skip to content

Commit 402cd40

Browse files
Update device-update-agent-provisioning.md
Updated the proxy setting instructions to be more generic
1 parent ee76f05 commit 402cd40

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

articles/iot-hub-device-update/device-update-agent-provisioning.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,25 +173,33 @@ Devices running the Device Update agent send HTTPS requests to communicate with
173173
174174
Before configuring Device Update, ensure that you have the the Proxy URL. Proxy URL is in the format protocol://proxy_host:proxy_port.
175175
176-
Navigate to the Device Update configuration by running the following command:
176+
Create a systemd override configuration directory and the override file by running the following command:
177177
178178
```shell
179-
sudo systemctl edit deviceupdate-agent.service
179+
sudo mkdir -p /etc/systemd/system/deviceupdate-agent.service.d
180+
sudo nano /etc/systemd/system/deviceupdate-agent.service.d/override.conf
180181
```
181182
183+
182184
Add the proxy details to the configuration
183185
184186
```shell
185187
[Service]
186-
Environment="https_proxy=<Proxy URL>"
188+
Environment="HTTP_PROXY=http://your.proxy.server:port"
189+
Environment="HTTPS_PROXY=http://your.proxy.server:port"
187190
```
188191
189192
Restart the agent to apply the changes:
190193
191194
```shell
195+
sudo systemctl daemon-reexec
192196
sudo systemctl daemon-reload
193197
sudo systemctl restart deviceupdate-agent
194-
sudo systemctl status deviceupdate-agent
198+
```
199+
You can then check the environment variables are applied using
200+
201+
```shell
202+
sudo systemctl show deviceupdate-agent | grep -i proxy
195203
```
196204
197205
## Build and run a Device Update agent

0 commit comments

Comments
 (0)