You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-configure-proxy-support.md
+15-25Lines changed: 15 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,13 +280,13 @@ This step takes place once on the IoT Edge device during initial device setup.
280
280
281
281
2. In the config file, find the `[agent]` section, which contains all the configuration information for the edgeAgent module to use on startup. Check and make sure that the `[agent]`section is uncommented or add it if it is not included in the `config.toml`. The IoT Edge agent definition includes an `[agent.env]` subsection where you can add environment variables.
282
282
283
-
3. Add the **https_proxy** parameter to the environment variables section, and set your proxy URL as its value.
284
-
285
283
:::moniker-end
286
284
287
285
<!-- 1.3 -->
288
286
:::moniker range="=iotedge-2020-11"
289
287
288
+
3. Add the **https_proxy** parameter to the environment variables section, and set your proxy URL as its value.
289
+
290
290
```toml
291
291
[agent]
292
292
name = "edgeAgent"
@@ -300,51 +300,41 @@ This step takes place once on the IoT Edge device during initial device setup.
300
300
# "UpstreamProtocol" = "AmqpWs"
301
301
"https_proxy" = "<proxy URL>"
302
302
```
303
-
:::moniker-end
304
303
305
-
<!-- 1.4 -->
306
-
:::moniker range=">=iotedge-1.4"
304
+
4. The IoT Edge runtime uses AMQP by default to talk to IoT Hub. Some proxy servers block AMQP ports. If that's the case, then you also need to configure edgeAgent to use AMQP over WebSocket. Uncomment the `UpstreamProtocol` parameter.
4. The IoT Edge runtime uses AMQP by default to talk to IoT Hub. Some proxy servers block AMQP ports. If that's the case, then you also need to configure edgeAgent to use AMQP over WebSocket. Uncomment the `UpstreamProtocol` parameter.
328
-
329
-
:::moniker-end
318
+
<!-- 1.4 -->
319
+
:::moniker range=">=iotedge-1.4"
330
320
331
-
<!-- 1.3 -->
332
-
:::moniker range="=iotedge-2020-11"
321
+
3. Add the **https_proxy** parameter to the environment variables section, and set your proxy URL as its value.
4. The IoT Edge runtime uses AMQP by default to talk to IoT Hub. Some proxy servers block AMQP ports. If that's the case, then you also need to configure edgeAgent to use AMQP over WebSocket. Uncomment the `UpstreamProtocol` parameter.
0 commit comments