Skip to content

Commit 5f4ae38

Browse files
Update device-update-agent-provisioning.md
Added steps for setting up DU to run behind network proxy
1 parent 434b910 commit 5f4ae38

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,33 @@ Start the Device Update agent and verify that it's running successfully on your
167167
168168
:::image type="content" source="media/understand-device-update/device-update-module.png" alt-text="Diagram of Device Update module name showing Connected status.":::
169169
170+
## Enable Device Update agent behind a proxy server
171+
172+
Devices running the Device Update agent send HTTPS requests to communicate with IoT Hub. If you connected your device to a network that uses a proxy server, you need to configure the Device Update systemd service to communicate through the server.
173+
174+
Before configuring Device Update, ensure that you have the the Proxy URL. Proxy URL is in the format protocol://proxy_host:proxy_port.
175+
176+
Navigate to the Device Update configuration by running the following command:
177+
178+
```shell
179+
sudo systemctl edit deviceupdate-agent.service
180+
```
181+
182+
Add the proxy details to the configuration
183+
184+
```shell
185+
[Service]
186+
Environment="https_proxy=<Proxy URL>"
187+
```
188+
189+
Restart the agent to apply the changes:
190+
191+
```shell
192+
sudo systemctl daemon-reload
193+
sudo systemctl restart deviceupdate-agent
194+
sudo systemctl status deviceupdate-agent
195+
```
196+
170197
## Build and run a Device Update agent
171198
172199
You can also build and modify your own custom Device Update agent. Follow the instructions at [How To Build the Device Update Agent](https://github.com/Azure/iot-hub-device-update/blob/main/docs/agent-reference/how-to-build-agent-code.md) to build the Device Update Agent from source.

0 commit comments

Comments
 (0)