Skip to content

Commit ef27282

Browse files
committed
Metadata and filename refresh -- file upload
1 parent 6abb29e commit ef27282

11 files changed

+65
-44
lines changed

articles/iot-hub/.openpublishing.redirection.iot-hub.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,26 @@
105105
"redirect_url": "/azure/iot-hub/c2d-messaging-ios",
106106
"redirect_document_id": true
107107
},
108+
{
109+
"source_path_from_root": "/articles/iot-hub/iot-hub-java-java-file-upload.md",
110+
"redirect_url": "/azure/iot-hub/file-upload-java",
111+
"redirect_document_id": true
112+
},
113+
{
114+
"source_path_from_root": "/articles/iot-hub/iot-hub-python-python-file-upload.md",
115+
"redirect_url": "/azure/iot-hub/file-upload-python",
116+
"redirect_document_id": true
117+
},
118+
{
119+
"source_path_from_root": "/articles/iot-hub/iot-hub-node-node-file-upload.md",
120+
"redirect_url": "/azure/iot-hub/file-upload-node",
121+
"redirect_document_id": true
122+
},
123+
{
124+
"source_path_from_root": "/articles/iot-hub/iot-hub-csharp-csharp-file-upload.md",
125+
"redirect_url": "/azure/iot-hub/file-upload-dotnet",
126+
"redirect_document_id": true
127+
},
108128
{
109129
"source_path_from_root": "/articles/iot-hub/iot-hub-devguide-glossary.md",
110130
"redirect_url": "/azure/iot-fundamentals/iot-glossary/",

articles/iot-hub/TOC.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,17 @@
327327
- name: Upload files from devices
328328
items:
329329
- name: .NET
330-
displayName: Azure Storage, file upload
331-
href: iot-hub-csharp-csharp-file-upload.md
330+
displayName: file upload, upload files, csharp, C#
331+
href: file-upload-dotnet.md
332332
- name: Python
333-
displayName: Azure Storage, file upload
334-
href: iot-hub-python-python-file-upload.md
333+
displayName: file upload, upload files
334+
href: file-upload-python.md
335335
- name: Node.js
336-
displayName: Azure Storage, file upload
337-
href: iot-hub-node-node-file-upload.md
336+
displayName: file upload, upload files
337+
href: file-upload-node.md
338338
- name: Java
339-
displayName: Azure Storage, file upload
340-
href: iot-hub-java-java-file-upload.md
339+
displayName: file upload, upload files
340+
href: file-upload-java.md
341341
- name: Get started with device twins
342342
items:
343343
- name: CLI

articles/iot-hub/c2d-messaging-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: kgremban
66

77
ms.author: kgremban
88
ms.service: iot-hub
9-
ms.devlang: javascript
9+
ms.devlang: nodejs
1010
ms.topic: how-to
1111
ms.date: 06/16/2017
1212
ms.custom: [amqp, mqtt, devx-track-js]

articles/iot-hub/iot-hub-csharp-csharp-file-upload.md renamed to articles/iot-hub/file-upload-dotnet.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
2-
title: Upload files from devices to Azure IoT Hub with .NET | Microsoft Docs
2+
title: Upload files from devices to Azure IoT Hub (.NET)
3+
titleSuffix: Azure IoT Hub
34
description: How to upload files from a device to the cloud using Azure IoT device SDK for .NET. Uploaded files are stored in an Azure storage blob container.
45
author: kgremban
56

7+
ms.author: kgremban
68
ms.service: iot-hub
7-
services: iot-hub
89
ms.devlang: csharp
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
ms.date: 08/24/2021
11-
ms.author: kgremban
1212
ms.custom: "mqtt, devx-track-csharp"
1313
---
1414

15-
# Upload files from your device to the cloud with IoT Hub (.NET)
15+
# Upload files from your device to the cloud with Azure IoT Hub (.NET)
1616

1717
[!INCLUDE [iot-hub-file-upload-language-selector](../../includes/iot-hub-file-upload-language-selector.md)]
1818

19-
This article demonstrates how to [file upload capabilities of IoT Hub](iot-hub-devguide-file-upload.md) upload a file to [Azure blob storage](../storage/index.yml), using an Azure IoT .NET device and service SDKs.
19+
This article demonstrates how to [file upload capabilities of IoT Hub](iot-hub-devguide-file-upload.md) upload a file to [Azure blob storage](../storage/index.yml), using an Azure IoT .NET device and service SDKs.
2020

2121
The [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp) quickstart and [Send cloud-to-device messages with IoT Hub](c2d-messaging-dotnet.md) article show the basic device-to-cloud and cloud-to-device messaging functionality of IoT Hub. The [Configure Message Routing with IoT Hub](tutorial-routing.md) article shows a way to reliably store device-to-cloud messages in Microsoft Azure blob storage. However, in some scenarios, you can't easily map the data your devices send into the relatively small device-to-cloud messages that IoT Hub accepts. For example:
2222

@@ -29,9 +29,9 @@ These files are typically batch processed in the cloud, using tools such as [Azu
2929

3030
At the end of this article, you run two .NET console apps:
3131

32-
* **FileUploadSample**. This device app uploads a file to storage using a SAS URI provided by your IoT hub. You'll run this app from the Azure IoT C# SDK repository that you download in the prerequisites.
32+
* **FileUploadSample**. This device app uploads a file to storage using a SAS URI provided by your IoT hub. This sample is from the Azure IoT C# SDK repository that you download in the prerequisites.
3333

34-
* **ReadFileUploadNotification**. This service app receives file upload notifications from your IoT hub. You'll create this app.
34+
* **ReadFileUploadNotification**. This service app receives file upload notifications from your IoT hub. You create this app.
3535

3636
> [!NOTE]
3737
> IoT Hub supports many device platforms and languages (including C, Java, Python, and JavaScript) through Azure IoT device SDKs. Refer to the [Azure IoT Developer Center](https://azure.microsoft.com/develop/iot) to learn how to connect your device to Azure IoT Hub.
@@ -89,7 +89,7 @@ Examine the code in **FileUpLoadSample.cs**. This file contains the main sample
8989
await blockBlobClient.UploadAsync(fileStreamSource, new BlobUploadOptions());
9090
```
9191
92-
1. The code notifies the IoT hub that it has completed the upload. This tells the IoT hub that it can release resources associated with the upload (the SAS URI). If file upload notifications are enabled, the IoT hub will send a notification message to backend services.
92+
1. The code notifies the IoT hub that it has completed the upload. This tells the IoT hub that it can release resources associated with the upload (the SAS URI). If file upload notifications are enabled, the IoT hub sends a notification message to backend services.
9393
9494
```csharp
9595
var successfulFileUploadCompletionNotification = new FileUploadCompletionNotification
@@ -110,11 +110,11 @@ Examine the code in **FileUpLoadSample.cs**. This file contains the main sample
110110
await _deviceClient.CompleteFileUploadAsync(successfulFileUploadCompletionNotification);
111111
```
112112
113-
If you examine the **parameter.cs** file, you'll see that:
113+
If you examine the **parameter.cs** file, you see that:
114114
115115
- The sample requires you to pass a parameter, *p*, which takes a device connection string.
116116
117-
- By default, the device sample uses the MQTT protocol to communicate with IoT Hub. You can use the parameter *t* to change this transport protocol. Be aware that, regardless of this selection, the Azure blob client always uses HTTPS as the protocol to upload the file Azure storage.
117+
- By default, the device sample uses the MQTT protocol to communicate with IoT Hub. You can use the parameter *t* to change this transport protocol. Regardless of this selection, the Azure blob client always uses HTTPS as the protocol to upload the file Azure storage.
118118
119119
## Get the IoT hub connection string
120120

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Upload files from devices to Azure IoT Hub with Java | Microsoft Docs
2+
title: Upload files from devices to Azure IoT Hub (Java)
3+
titleSuffix: Azure IoT Hub
34
description: How to upload files from a device to the cloud using Azure IoT device SDK for Java. Uploaded files are stored in an Azure storage blob container.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
99
ms.devlang: java
10-
ms.topic: conceptual
10+
ms.topic: how-to
1111
ms.date: 07/18/2021
1212
ms.custom: [amqp, mqtt, devx-track-java]
1313
---
1414

15-
# Upload files from your device to the cloud with IoT Hub (Java)
15+
# Upload files from your device to the cloud with Azure IoT Hub (Java)
1616

1717
[!INCLUDE [iot-hub-file-upload-language-selector](../../includes/iot-hub-file-upload-language-selector.md)]
1818

@@ -291,7 +291,7 @@ mvn exec:java -Dexec.mainClass="com.mycompany.app.App"
291291

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

294-
:::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":::
294+
:::image type="content" source="media/iot-hub-java-java-upload/uploaded-file.png" alt-text="Screenshot showing a file that was uploaded to your storage container." lightbox="media/iot-hub-java-java-upload/uploaded-file.png":::
295295

296296
## Receive a file upload notification
297297

@@ -458,7 +458,7 @@ In this section, you create a Java console app that receives file upload notific
458458
```
459459
## Run the application
460460
461-
Now you are ready to run the application.
461+
Now you're ready to run the application.
462462
463463
At a command prompt in the `my-app` folder, run the following command:
464464

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Upload files from devices to Azure IoT Hub with Node | Microsoft Docs
2+
title: Upload files from devices to Azure IoT Hub (Node)
3+
titleSuffix: Azure IoT Hub
34
description: How to upload files from a device to the cloud using Azure IoT device SDK for Node.js. Uploaded files are stored in an Azure storage blob container.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
9-
ms.devlang: javascript
10-
ms.topic: conceptual
9+
ms.devlang: nodejs
10+
ms.topic: how-to
1111
ms.date: 07/27/2021
1212
ms.custom: mqtt, devx-track-js
1313
---
1414

15-
# Upload files from your device to the cloud with IoT Hub (Node.js)
15+
# Upload files from your device to the cloud with Azure IoT Hub (Node.js)
1616

1717
This article demonstrates how to [file upload capabilities of IoT Hub](iot-hub-devguide-file-upload.md) upload a file to [Azure blob storage](../storage/index.yml), using Node.js.
1818

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
2-
title: Upload files from devices to Azure IoT Hub with Python | Microsoft Docs
2+
title: Upload files from devices to Azure IoT Hub (Python)
3+
titleSuffix: Azure IoT Hub
34
description: How to upload files from a device to the cloud using Azure IoT device SDK for Python. Uploaded files are stored in an Azure storage blob container.
45
author: kgremban
6+
7+
ms.author: kgremban
58
ms.service: iot-hub
6-
services: iot-hub
79
ms.devlang: python
8-
ms.topic: conceptual
10+
ms.topic: how-to
911
ms.date: 12/28/2022
10-
ms.author: kgremban
1112
ms.custom: mqtt, devx-track-python, py-fresh-zinc
1213
---
1314

14-
# Upload files from your device to the cloud with IoT Hub (Python)
15+
# Upload files from your device to the cloud with Azure IoT Hub (Python)
1516

1617
[!INCLUDE [iot-hub-file-upload-language-selector](../../includes/iot-hub-file-upload-language-selector.md)]
1718

articles/iot-hub/iot-hub-configure-file-upload-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,5 @@ az iot hub update --name {your iot hub name} \
223223

224224
* [Upload files from a device overview](iot-hub-devguide-file-upload.md)
225225
* [IoT Hub support for managed identities](./iot-hub-managed-identity.md)
226-
* [File upload how-to guides](./iot-hub-csharp-csharp-file-upload.md)
226+
* [File upload how-to guides](./file-upload-dotnet.md)
227227
* Azure CLI [az iot hub update](/cli/azure/iot/hub#az-iot-hub-update), [az iot hub identity show](/cli/azure/iot/hub/identity#az-iot-hub-identity-show), and [az iot hub create](/cli/azure/iot/hub#az-iot-hub-create) commands

articles/iot-hub/iot-hub-configure-file-upload-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ Set-AzIotHub `
139139

140140
* [Upload files from a device overview](iot-hub-devguide-file-upload.md)
141141
* [IoT Hub support for managed identities](./iot-hub-managed-identity.md)
142-
* [File upload how-to guides](./iot-hub-csharp-csharp-file-upload.md)
142+
* [File upload how-to guides](./file-upload-dotnet.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ To use the [file upload functionality in IoT Hub](iot-hub-devguide-file-upload.m
5555

5656
* [Upload files from a device overview](iot-hub-devguide-file-upload.md)
5757
* [IoT Hub support for managed identities](./iot-hub-managed-identity.md)
58-
* [File upload how-to guides](./iot-hub-csharp-csharp-file-upload.md)
58+
* [File upload how-to guides](./file-upload-dotnet.md)

0 commit comments

Comments
 (0)