@@ -282,32 +282,84 @@ This step takes place once on the IoT Edge device during initial device setup.
282
282
283
283
3. Add the **https_proxy** parameter to the environment variables section, and set your proxy URL as its value.
284
284
285
+ :::moniker-end
286
+
287
+ <!-- 1.3 -->
288
+ :::moniker range="=iotedge-2020-11"
289
+
290
+ ` ` ` toml
291
+ [agent]
292
+ name = "edgeAgent"
293
+ type = "docker"
294
+
295
+ [agent.config]
296
+ image = "mcr.microsoft.com/azureiotedge-agent:1.3"
297
+
298
+ [agent.env]
299
+ # "RuntimeLogLevel" = "debug"
300
+ # "UpstreamProtocol" = "AmqpWs"
301
+ "https_proxy" = "<proxy URL>"
302
+ ` ` `
303
+ :::moniker-end
304
+
305
+ <!-- 1.4 -->
306
+ :::moniker range=">=iotedge-1.4"
307
+
285
308
` ` ` toml
286
309
[agent]
287
310
name = "edgeAgent"
288
311
type = "docker"
289
312
290
313
[agent.config]
291
- image = "mcr.microsoft.com/azureiotedge-agent:1.4" // or 1.3
314
+ image = "mcr.microsoft.com/azureiotedge-agent:1.4"
292
315
293
316
[agent.env]
294
317
# "RuntimeLogLevel" = "debug"
295
318
# "UpstreamProtocol" = "AmqpWs"
296
319
"https_proxy" = "<proxy URL>"
297
320
` ` `
321
+ :::moniker-end
322
+
323
+ <!-- >= 1.3 -->
324
+ :::moniker range=">=iotedge-2020-11"
298
325
299
326
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.
300
327
328
+ :::moniker-end
329
+
330
+ <!-- 1.3 -->
331
+ :::moniker range="=iotedge-2020-11"
332
+
333
+ ` ` ` toml
334
+ [agent.config]
335
+ image = "mcr.microsoft.com/azureiotedge-agent:1.3"
336
+
337
+ [agent.env]
338
+ # "RuntimeLogLevel" = "debug"
339
+ "UpstreamProtocol" = "AmqpWs"
340
+ "https_proxy" = "<proxy URL>"
341
+ ` ` `
342
+
343
+ :::moniker-end
344
+
345
+ <!-- 1.4 -->
346
+ :::moniker range=">=iotedge-1.4"
347
+
301
348
` ` ` toml
302
349
[agent.config]
303
- image = "mcr.microsoft.com/azureiotedge-agent:1.4" // or 1.3
350
+ image = "mcr.microsoft.com/azureiotedge-agent:1.4"
304
351
305
352
[agent.env]
306
353
# "RuntimeLogLevel" = "debug"
307
354
"UpstreamProtocol" = "AmqpWs"
308
355
"https_proxy" = "<proxy URL>"
309
356
` ` `
310
357
358
+ :::moniker-end
359
+
360
+ <!-- >= 1.3 -->
361
+ :::moniker range=">=iotedge-2020-11"
362
+
311
363
5. Save the changes and close the editor. Apply your latest changes.
312
364
313
365
` ` ` bash
0 commit comments