Skip to content

Commit f46de74

Browse files
committed
Updated prerequisites
1 parent 805ce59 commit f46de74

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

articles/iot-hub/how-to-file-upload.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article demonstrates how to:
1919
* Use [file upload capabilities of IoT Hub](iot-hub-devguide-file-upload.md) to upload a file to [Azure Blob Storage](../storage/index.yml), using an Azure IoT device and service SDKs.
2020
* Notify IoT Hub that the file was successfully uploaded and create a backend service to receive file upload notifications from IoT Hub.
2121

22-
The [Send telemetry from a device to an IoT hub](../iot/tutorial-send-telemetry-iot-hub.md?toc=/azure/iot-hub/toc.json&bc=/azure/iot-hub/breadcrumb/toc.json&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:
22+
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. The file upload capabilities in IoT Hub enable you to move large or complex data to the cloud. For example:
2323

2424
* Videos
2525
* Large files that contain images
@@ -33,19 +33,20 @@ For more information, see:
3333
* [Overview of file uploads with IoT Hub](iot-hub-devguide-file-upload.md)
3434
* [Configure IoT Hub file uploads using the Azure portal](iot-hub-configure-file-upload.md)
3535
* [Introduction to Azure Blob Storage](../storage/blobs/storage-blobs-introduction.md)
36-
* [Azure IoT Hub SDKs](iot-hub-devguide-sdks.md)
36+
* [Azure Blob Storage API reference](../storage/blobs/reference.md)
37+
* [Azure IoT SDKs](iot-hub-devguide-sdks.md)
3738

3839
[!INCLUDE [iot-hub-include-x509-ca-signed-file-upload-support-note](../../includes/iot-hub-include-x509-ca-signed-file-upload-support-note.md)]
3940

4041
## Prerequisites
4142

42-
* **An IoT hub**. Create one with the [Azure CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md). Some SDK calls require the IoT Hub connection string.
43+
* **An IoT hub**. Create one using the [Azure portal, CLI, or PowerShell](create-hub.md). Some SDK calls require the IoT Hub connection string, so make a note of the connection string.
4344

44-
* **A registered device**. Register one in the [Azure portal](iot-hub-create-through-portal.md).
45+
* **A registered device**. Register one in the [Azure portal](create-connect-device.md).
4546

4647
* IoT Hub **Service Connect** permission - To receive file upload notification messages, your backend service needs the **Service Connect** permission. By default, every IoT Hub is created with a shared access policy named **service** that grants this permission. For more information, see [Create an IoT hub using the Azure portal](/azure/iot-hub/iot-hub-create-through-portal?#shared-access-policies).
4748

48-
* An **Azure Storage account** and **Azure Blob Storage container** associated with IoT Hub. You can configure these using the [Azure portal](/azure/iot-hub/iot-hub-configure-file-upload), [Azure CLI](/azure/iot-hub/iot-hub-configure-file-upload-cli), or [Azure PowerShell](/azure/iot-hub/iot-hub-configure-file-upload-powershell).
49+
* Configure file upload in your IoT hub by linking an **Azure Storage account** and **Azure Blob Storage container** associated with IoT Hub. You can configure these using the [Azure portal](/azure/iot-hub/iot-hub-configure-file-upload), [Azure CLI](/azure/iot-hub/iot-hub-configure-file-upload-cli), or [Azure PowerShell](/azure/iot-hub/iot-hub-configure-file-upload-powershell).
4950

5051
:::zone pivot="programming-language-csharp"
5152

includes/iot-hub-howto-file-upload-dotnet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ var successfulFileUploadCompletionNotification = new FileUploadCompletionNotific
9595
await _deviceClient.CompleteFileUploadAsync(successfulFileUploadCompletionNotification);
9696
```
9797

98+
### SDK file upload sample
99+
100+
The SDK includes this [file upload sample](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs).
101+
98102
## Receive a file upload notification in a backend application
99103

100104
You can create a backend service to receive file upload notification messages from IoT hub.
@@ -133,7 +137,3 @@ while (true)
133137
await notificationReceiver.CompleteAsync(fileUploadNotification);
134138
}
135139
```
136-
137-
### SDK file upload sample
138-
139-
The SDK includes this [file upload sample](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs).

0 commit comments

Comments
 (0)