Skip to content

Commit 7b6d6b5

Browse files
committed
Updated file upload articles
1 parent cdf4285 commit 7b6d6b5

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

articles/iot-hub/iot-hub-csharp-csharp-file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ At the end of this article you run two .NET console apps:
4646

4747
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
4848

49-
* The sample applications you run in this article are written using C#. For the Azure IoT C# samples, we recommend you have the .NET Core SDK 3.1 or greater on your development machine.
49+
* The sample applications you run in this article are written using C# with .NET Core.
5050

5151
You can download the .NET Core SDK for multiple platforms from [.NET](https://dotnet.microsoft.com/download).
5252

articles/iot-hub/iot-hub-node-node-file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ You can use the portal to view the uploaded file in the storage container you co
297297
1. Select the folder named after your device.
298298
1. Select the blob that you uploaded your file to. In this article, it's the blob with the same name as your file.
299299

300-
:::image type="content" source="./media/iot-hub-node-node-file-upload/view-uploaded-file.png" alt-text="Screenshot of viewing the uploaded file in the Azure portal.":::
300+
:::image type="content" source="./media/iot-hub-node-node-file-upload/view-uploaded-file.png" alt-text="Screenshot of viewing the uploaded file in the Azure portal." lightbox="./media/iot-hub-node-node-file-upload/view-uploaded-file.png":::
301301

302302
1. View the blob properties on the page that opens. You can select **Download** to download the file and view its contents locally.
303303

articles/iot-hub/iot-hub-python-python-file-upload.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@ At the end of this article, you run the Python console app:
4040

4141
## Prerequisites
4242

43-
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
44-
45-
## Create an IoT hub
43+
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
4644

47-
[!INCLUDE [iot-hub-include-create-hub](../../includes/iot-hub-include-create-hub.md)]
45+
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
4846

49-
## Register a new device in the IoT hub
50-
51-
[!INCLUDE [iot-hub-include-create-device](../../includes/iot-hub-include-create-device.md)]
47+
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
5248

5349
[!INCLUDE [iot-hub-associate-storage](../../includes/iot-hub-include-associate-storage.md)]
5450

@@ -188,11 +184,12 @@ Now you're ready to run the application.
188184
189185
2. The following screenshot shows the output from the **FileUpload** app:
190186
191-
![Output from simulated-device app](./media/iot-hub-python-python-file-upload/run-device-app.png)
187+
:::image type="content" source="./media/iot-hub-python-python-file-upload/run-device-app.png" alt-text="Screenshot showing output from running the FileUpload app." border="true" lightbox="./media/iot-hub-python-python-file-upload/run-device-app.png":::
192188
193189
3. You can use the portal to view the uploaded file in the storage container you configured:
194190
195-
![Uploaded file](./media/iot-hub-python-python-file-upload/view-blob.png)
191+
![Uploaded file]()
192+
:::image type="content" source="./media/iot-hub-python-python-file-upload/view-blob.png" alt-text="Screenshot of the container in the Azure portal that shows the uploaded file." border="true" lightbox="./media/iot-hub-python-python-file-upload/view-blob.png":::
196193
197194
## Next steps
198195

includes/iot-hub-include-associate-storage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ To associate an Azure Storage account with your IoT hub:
1818

1919
1. Under **Hub settings**, select **File upload** on the left-pane of your IoT hub.
2020

21-
:::image type="content" source="./media/iot-hub-include-associate-storage/select-storage.png" alt-text="Screen capture showing select file upload settings from the portal." border="true":::
21+
:::image type="content" source="./media/iot-hub-include-associate-storage/select-storage.png" alt-text="Screen capture showing select file upload settings from the portal." border="true" lightbox="./media/iot-hub-include-associate-storage/select-storage.png":::
2222

2323
1. On the **File upload** pane, select **Azure Storage Container**. For this article, it's recommended that your storage account and IoT Hub be located in the same region.
24+
2425
* If you already have a storage account you want to use, select it from the list.
2526

2627
* To create a new storage account, select **+Storage account**. Provide a name for the storage account and make sure the **Location** is set to the same region as your IoT hub, then select **OK**. The new account is created in the same resource group as your IoT hub. When the deployment completes, select the storage account from the list.
@@ -34,6 +35,6 @@ To associate an Azure Storage account with your IoT hub:
3435

3536
1. Back on the **File upload** pane, make sure that file notifications are set to **On**. You can leave all other settings at their defaults. Select **Save** and wait for the settings to complete before moving on to the next section.
3637

37-
:::image type="content" source="./media/iot-hub-include-associate-storage/file-upload-settings-small.png" alt-text="Screen capture showing confirm file upload settings in the portal." border="true":::
38+
:::image type="content" source="./media/iot-hub-include-associate-storage/file-upload-settings-small.png" alt-text="Screen capture showing confirm file upload settings in the portal." border="true" lightbox="./media/iot-hub-include-associate-storage/file-upload-settings-small.png":::
3839

3940
For more detailed instructions on how to create an Azure Storage account, see [Create a storage account](../articles/storage/common/storage-account-create.md). For more detailed instructions on how to associate a storage account and blob container with an IoT hub, see [Configure file uploads using the Azure portal](../articles/iot-hub/iot-hub-configure-file-upload.md).

0 commit comments

Comments
 (0)