Search code examples
azureazure-iot-hubazure-iot-sdkazure-node-sdk

No storage account found when trying to setup File Upload in Iot Hub


I am trying to associate a storage container with an IoT Hub but am having trouble doing so. The goal here is to connect a storage container in order to enable File Uploading in the IoT Hub.

I've followed the documentation here

you must first link an Azure Storage account to the IoT Hub. You can complete this task either through the Azure portal, or programmatically through the IoT Hub resource provider REST APIs.

but when working through the above flow, no storage containers are found. I do indeed have multiple storage contains on this account.

Any advice on how I can attach a storage container?


Solution

  • I think it is due to the location of your storage account. Please check the location of storage account is the same with the location of IoT Hub.If the location is different, you will not set the container in File Upload.