使用 Azure 门户配置 IoT 中心文件上传Configure IoT Hub file uploads using the Azure portal

文件上传File upload

若要使用 IoT 中心的文件上传功能,必须先将 Azure 存储帐户与中心关联。To use the file upload functionality in IoT Hub, you must first associate an Azure Storage account with your hub. 选择“文件上传”,以显示正在修改的 IoT 中心的文件上传属性列表。Select File upload to display a list of file upload properties for the IoT hub that is being modified.

在门户中查看 IoT 中心文件上传设置

  • 存储容器:使用 Azure 门户在当前 Azure 订阅中选择 Azure 存储帐户中的 blob 容器,以便与 IoT 中心关联。Storage container: Use the Azure portal to select a blob container in an Azure Storage account in your current Azure subscription to associate with your IoT Hub. 如有必要,可以在“存储帐户”边栏选项卡上创建 Azure 存储帐户,并在“容器”边栏选项卡上创建 blob 容器。If necessary, you can create an Azure Storage account on the Storage accounts blade and blob container on the Containers blade. IoT 中心会自动生成对此 Blob 容器具有写入权限的 SAS URI,以供设备上传文件时使用。IoT Hub automatically generates SAS URIs with write permissions to this blob container for devices to use when they upload files.

    在门户中查看用于文件上传的存储容器

  • 接收已上传文件的通知:通过切换来启用或禁用文件上传通知。Receive notifications for uploaded files: Enable or disable file upload notifications via the toggle.

  • SAS TTL:此设置是 IoT 中心返回给设备的 SAS URI 生存时间。SAS TTL: This setting is the time-to-live of the SAS URIs returned to the device by IoT Hub. 默认设置为一小时,但可以使用滑块自定义为其他值。Set to one hour by default but can be customized to other values using the slider.

  • 文件通知设置默认 TTL:文件上传通知到期前的生存时间。File notification settings default TTL: The time-to-live of a file upload notification before it is expired. 默认设置为一天,但可以使用滑块自定义为其他值。Set to one day by default but can be customized to other values using the slider.

  • 文件通知最大传送数:IoT 中心将尝试传送文件上传通知的次数。File notification maximum delivery count: The number of times the IoT Hub attempts to deliver a file upload notification. 默认设置为 10,但可以使用滑块自定义为其他值。Set to 10 by default but can be customized to other values using the slider.

    在门户中配置 IoT 中心文件上传

后续步骤Next steps

有关 IoT 中心的文件上传功能的详细信息,请参阅 IoT 中心开发人员指南中的从设备上传文件For more information about the file upload capabilities of IoT Hub, see Upload files from a device in the IoT Hub developer guide.

若要了解有关如何管理 Azure IoT 中心的详细信息,请参阅以下链接:Follow these links to learn more about managing Azure IoT Hub:

若要进一步探索 IoT 中心的功能,请参阅:To further explore the capabilities of IoT Hub, see: