Skip to content

Commit 8852dbd

Browse files
authored
Merge pull request #206896 from w-azure/winona-upload
Updated file upload articles
2 parents 5f9a69f + c1c7403 commit 8852dbd

File tree

9 files changed

+14
-17
lines changed

9 files changed

+14
-17
lines changed

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

Lines changed: 2 additions & 2 deletions
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

@@ -256,7 +256,7 @@ You can use the portal to view the uploaded file in the storage container you co
256256
1. Select the folder named after your device.
257257
1. Select the blob that you uploaded your file to. In this article, it's the blob named **TestPayload.txt**.
258258
259-
:::image type="content" source="./media/iot-hub-csharp-csharp-file-upload/view-uploaded-file.png" alt-text="Screenshot of selecting the uploaded file in the Azure portal.":::
259+
:::image type="content" source="./media/iot-hub-csharp-csharp-file-upload/view-uploaded-file.png" alt-text="Screenshot of selecting the uploaded file in the Azure portal." lightbox="./media/iot-hub-csharp-csharp-file-upload/view-uploaded-file.png":::
260260
261261
1. View the blob properties on the page that opens. You can select **Download** to download the file and view its contents locally.
262262

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ mvn exec:java -Dexec.mainClass="com.mycompany.app.App"
292292

293293
You can use the portal to view the uploaded file in the storage container you configured:
294294

295-
![Uploaded file](media/iot-hub-java-java-upload/uploaded-file.png)
295+
:::image type="content" source="media/iot-hub-java-java-upload/uploaded-file.png" alt-text="Screenshot showing a file that had been uploaded to your storage container." lightbox="media/iot-hub-java-java-upload/uploaded-file.png":::
296296

297297
## Receive a file upload notification
298298

@@ -402,7 +402,7 @@ In this section, you create a Java console app that receives file upload notific
402402
4. Save and close the `pom.xml` file.
403403
404404
5. Get the IoT Hub service connection string.
405-
[!INCLUDE [iot-hub-include-find-service-connection-string](../../includes/iot-hub-include-find-service-connection-string.md)]
405+
[!INCLUDE [iot-hub-include-find-service-connection-string](../../includes/iot-hub-include-find-service-connection-string.md)]
406406
407407
6. Using a text editor, open the `my-app\src\main\java\com\mycompany\app\App.java` file and replace the code with the following.
408408

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: 5 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,11 @@ 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+
:::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":::
196192
197193
## Next steps
198194
6.86 KB
Loading
18.4 KB
Loading
23.9 KB
Loading

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).

includes/iot-hub-include-find-service-connection-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ To get the IoT Hub connection string for the **service** policy, follow these st
2121

2222
1. Copy the **Primary connection string** and save the value.
2323

24-
:::image type="content" source="./media/iot-hub-include-find-service-connection-string/iot-hub-get-connection-string.png" alt-text="Screenshot that shows how to retrieve the connection string" border="true":::
24+
:::image type="content" source="./media/iot-hub-include-find-service-connection-string/iot-hub-get-connection-string.png" alt-text="Screenshot that shows how to retrieve the connection string from your IoT Hub in the Azure portal." border="true" lightbox="./media/iot-hub-include-find-service-connection-string/iot-hub-get-connection-string.png":::
2525

2626
For more information about IoT Hub shared access policies and permissions, see [Access control and permissions](../articles/iot-hub/iot-hub-dev-guide-sas.md#access-control-and-permissions).

0 commit comments

Comments
 (0)