Skip to content

Commit 78b700d

Browse files
authored
Merge pull request #106857 from ScarlettFalls/proxy-support
Configure proxy support for IoT Edge blob storage
2 parents c8f12d0 + 2794455 commit 78b700d

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

articles/iot-edge/how-to-configure-proxy-support.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Configure devices for network proxies - Azure IoT Edge | Microsoft Docs
33
description: How to configure the Azure IoT Edge runtime and any internet-facing IoT Edge modules to communicate through a proxy server.
44
author: kgremban
55
ms.author: kgremban
6-
ms.date: 11/19/2019
6+
ms.date: 3/10/2020
77
ms.topic: conceptual
88
ms.service: iot-edge
99
services: iot-edge
@@ -197,13 +197,13 @@ This step takes place once on the IoT Edge device during initial device setup.
197197

198198
## Configure deployment manifests
199199

200-
Once your IoT Edge device is configured to work with your proxy server, you need to continue to declare the environment variables in future deployment manifests. You can edit deployment manifests either using the Azure portal wizard or by editing a deployment manifest JSON file.
200+
Once your IoT Edge device is configured to work with your proxy server, you need to continue to declare the HTTPS_PROXY environment variable in future deployment manifests. You can edit deployment manifests either using the Azure portal wizard or by editing a deployment manifest JSON file.
201201

202202
Always configure the two runtime modules, edgeAgent and edgeHub, to communicate through the proxy server so they can maintain a connection with IoT Hub. If you remove the proxy information from the edgeAgent module, the only way to reestablish connection is by editing the config.yaml file on the device, as described in the previous section.
203203

204-
Other IoT Edge modules that connect to the internet should be configured to communicate through the proxy server, too. However, modules that route their messages through edgeHub or that only communicate with other modules on the device don't need the proxy server details.
204+
In addition to the edgeAgent and edgeHub modules, other modules may need the proxy configuration. These are modules that need to access Azure resources besides the IoT Hub, such as blob storage, and must have the HTTPS_PROXY variable specified for that module in the deployment manifest file.
205205

206-
This step is ongoing throughout the life of the IoT Edge device.
206+
The following procedure is applicable throughout the life of the IoT Edge device.
207207

208208
### Azure portal
209209

articles/iot-edge/how-to-deploy-blob.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ title: Deploy blob storage on module to your device - Azure IoT Edge
33
description: Deploy an Azure Blob Storage module to your IoT Edge device to store data at the edge.
44
author: kgremban
55
ms.author: kgremban
6-
ms.date: 12/13/2019
6+
ms.date: 3/10/2020
77
ms.topic: conceptual
88
ms.service: iot-edge
99
ms.reviewer: arduppal
1010
---
11-
1211
# Deploy the Azure Blob Storage on IoT Edge module to your device
1312

1413
There are several ways to deploy modules to an IoT Edge device and all of them work for Azure Blob Storage on IoT Edge modules. The two simplest methods are to use the Azure portal or Visual Studio Code templates.
@@ -255,8 +254,41 @@ Edit **Container Create Options** (in the Azure portal) or the **createOptions**
255254

256255
When you connect to additional blob storage modules, change the endpoint to point to the updated host port.
257256

257+
## Configure proxy support
258+
259+
If your organization is using a proxy server, you will need to configure proxy support for the edgeAgent and edgeHub runtime modules. This process involves two tasks:
260+
261+
- Configure the runtime daemons and the IoT Edge agent on the device.
262+
- Set the HTTPS_PROXY environment variable for modules in the deployment manifest JSON file.
263+
264+
This process is described in [Configure an IoT Edge device to communicate through a proxy server](how-to-configure-proxy-support.md).
265+
266+
In addition, a blob storage module also requires the HTTPS_PROXY setting in the manifest deployment file. You can directly edit the deployment manifest file, or use the Azure portal.
267+
268+
1. Navigate to your Iot hub in the Azure portal and select **Iot Edge** from the left pane menu.
269+
270+
1. Select the device with the module to configure.
271+
272+
1. Select **Set Modules**.
273+
274+
1. In the **IoT Edge Modules** section of the page, select the blob storage module.
275+
276+
1. On the **Update IoT Edge Module** page, select the **Environment Variables** tab.
277+
278+
1. Add `HTTPS_PROXY` for the **Name** and your proxy URL for the **Value**.
279+
280+
![Set HTTPS_PROXY environment variable](./media/how-to-deploy-blob/https-proxy-config.png)
281+
282+
1. Click **Update**, then **Review + Create**.
283+
284+
1. Note that the proxy is added to the module in deployment manifest and select **Create**.
285+
286+
1. Verify the setting by selecting the module from the device details page, and on the lower part of the **IoT Edge Modules Details** page select the **Environment Variables** tab.
287+
288+
![Set HTTPS_PROXY environment variable](./media/how-to-deploy-blob/verify-proxy-config.png)
289+
258290
## Next steps
259291

260-
Learn more about [Azure Blob Storage on IoT Edge](how-to-store-data-blob.md)
292+
Learn more about [Azure Blob Storage on IoT Edge](how-to-store-data-blob.md).
261293

262294
For more information about how deployment manifests work and how to create them, see [Understand how IoT Edge modules can be used, configured, and reused](module-composition.md).
35.9 KB
Loading
18.4 KB
Loading

0 commit comments

Comments
 (0)