@@ -282,32 +282,84 @@ This step takes place once on the IoT Edge device during initial device setup.
282282
2832833. Add the **https_proxy** parameter to the environment variables section, and set your proxy URL as its value.
284284
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+
285308 ` ` ` toml
286309 [agent]
287310 name = "edgeAgent"
288311 type = "docker"
289312
290313 [agent.config]
291- image = "mcr.microsoft.com/azureiotedge-agent:1.4" // or 1.3
314+ image = "mcr.microsoft.com/azureiotedge-agent:1.4"
292315
293316 [agent.env]
294317 # "RuntimeLogLevel" = "debug"
295318 # "UpstreamProtocol" = "AmqpWs"
296319 "https_proxy" = "<proxy URL>"
297320 ` ` `
321+ :::moniker-end
322+
323+ <!-- >= 1.3 -->
324+ :::moniker range=">=iotedge-2020-11"
298325
2993264. 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.
300327
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+
301348 ` ` ` toml
302349 [agent.config]
303- image = "mcr.microsoft.com/azureiotedge-agent:1.4" // or 1.3
350+ image = "mcr.microsoft.com/azureiotedge-agent:1.4"
304351
305352 [agent.env]
306353 # "RuntimeLogLevel" = "debug"
307354 "UpstreamProtocol" = "AmqpWs"
308355 "https_proxy" = "<proxy URL>"
309356 ` ` `
310357
358+ :::moniker-end
359+
360+ <!-- >= 1.3 -->
361+ :::moniker range=">=iotedge-2020-11"
362+
3113635. Save the changes and close the editor. Apply your latest changes.
312364
313365 ` ` ` bash
0 commit comments