File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
articles/iot-hub-device-update Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -173,25 +173,33 @@ Devices running the Device Update agent send HTTPS requests to communicate with
173
173
174
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
175
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:
177
177
178
178
```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
180
181
```
181
182
183
+
182
184
Add the proxy details to the configuration
183
185
184
186
```shell
185
187
[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"
187
190
```
188
191
189
192
Restart the agent to apply the changes:
190
193
191
194
```shell
195
+ sudo systemctl daemon-reexec
192
196
sudo systemctl daemon-reload
193
197
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
195
203
```
196
204
197
205
## Build and run a Device Update agent
You can’t perform that action at this time.
0 commit comments