<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120659/azure-iot-fota-cannot-download-update-images</link><description>I have a test application which uses the &amp;quot;Azure IoT Hub&amp;quot; library. I have set up the IoT Hub, Update Account, update instance, etc. The device does successfully connect to the IoT Hub and sends test MQTT data to the hub. My problem is that the over-the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 May 2025 12:14:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120659/azure-iot-fota-cannot-download-update-images" /><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533747?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bbd4ea-8f35-410a-921a-c860b115ce91</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Not sure what you mean by &amp;quot;secured&amp;quot; container. My firmware files are stored in an Azure storage account in the blob containeres&amp;nbsp; area. The files are&amp;nbsp;accessible from the internet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533746?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ba7950-749b-4ff3-83d5-d748897b5f62</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I have been on different version, now at 3.0 but at least from 2.6.x.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533743?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61772781-2136-4ff8-aa8d-55d0ce981fe5</guid><dc:creator>srubin-ns</dc:creator><description>&lt;p&gt;Also, my problem(s) seems to be rooted in how the credentials for downloading the firmware image are passed down to the device. I&amp;#39;m not seeing them. Are your update images stored in a secured Azure storage container? Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533742?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a92eaa-849c-41a6-b30b-2c8cfcb99a7a</guid><dc:creator>srubin-ns</dc:creator><description>&lt;p&gt;Thoman, thanks for that response. It&amp;#39;s encouraging! Can you please tell me which NCS version you&amp;#39;re using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533722?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 09:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad01d50-a33b-4d01-920e-27fe517b450f</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I have the Azure FOTA&amp;nbsp; working in more than one project. It is based on the sample and nothing is changed related to FOTA. So I will say that the current implementation works.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In my schedule is a task to update the nRF Connect Azure FOTA code so that it propery supports the Azure ADU (Azure Device Update) service. This will integrate updating much better with IoT Hub and Azure provissioning service.&lt;/p&gt;
&lt;p&gt;I also have some workaround to support Azure PnP devices which is not possible with the current nRF Connect Azure code. I will see if i can integrate this better, currently you need to modify the SDK code to make PnP work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533332?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 08:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e144ddb-175b-4055-b45f-a3411c910e29</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Do you have any update on your testing? Have you made any progress?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/533004?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 12:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91944626-4508-431c-9c10-b110b6b484c5</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Azure FOTA is part of the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/azure_iot_hub/README.html"&gt;Azure IoT Hub&lt;/a&gt;&amp;nbsp;sample. You can look at&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/azure_iot_hub/README.html#firmware_update"&gt;firmware update&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/azure_iot_hub/README.html#additional_configuration"&gt;additional configuration&lt;/a&gt; sections of the sample. Additional information is available in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_fota.html#configuration"&gt;Azure FOTA library configuration&lt;/a&gt;. You may also want to look at&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.0/page/nrf/samples/nrf9160/azure_fota/README.html"&gt;Azure FOTA &lt;/a&gt;sample which was separate sample before NCS v2.5.0.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/532824?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 12:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f55f0a9-b3c0-4153-abec-da63cb00ac0d</guid><dc:creator>srubin-ns</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp;, thanks for your detailed response. They do lead me back to the more basic questions: Does FOTA with&amp;nbsp;NCS and Azure IoT actually work? Is there an example? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/532710?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 05:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e77c13db-c835-4cbe-859b-a91b89616799</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="srubin-ns"]&lt;p&gt;I think I understand the idea of the SAS stuff you mentioned, but what&amp;#39;s missing is that there is no token sent in the manifest, or maybe there is, but the FOTA download is not using it.&lt;/p&gt;
&lt;p&gt;None of the nRF documentation or examples give any hint as to how to use the tokens. It was my understanding that this was all built into the Azure FOTA library.&lt;/p&gt;[/quote]
&lt;p&gt;SAS tokens are not natively supported by the Azure FOTA library. This means that if you want to use them, you need to implement that yourself. I am sorry for any possible confusion. Possible alternative is to use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/encrypted_images.html#creating_your_keys_with_imgtool"&gt;encrypted images&lt;/a&gt;&amp;nbsp;which can be decrypted by&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/readme-ncs.html"&gt;MCUboot&lt;/a&gt; when they arrive at the device.&lt;/p&gt;
[quote user="srubin-ns"]Will you please confirm that there is in fact working Azure IoT FOTA in the NCS? Has &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_fota.html"&gt;this &lt;/a&gt;actually been made to work with Azure?[/quote][quote user=""]Am I supposed&amp;nbsp;to expose the update file(s) to the public? How are they protected such that only my device(s) can download them?[/quote]
&lt;p&gt;The Azure FOTA library makes no assumptions on how the files are hosted and about security involved. It has been tested using publicly hosted file on Azure blob storage.&lt;/p&gt;
[quote user=""]Which update file(s) should be used? The zip (which contains the binary) or the manifest json (which would presumably instruct the code as to how to install the update)?[/quote]
&lt;p&gt;Documentation provides information about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/output_build_files.html"&gt;output build files&lt;/a&gt;. In this case, zephyr.signed.bin should be used. Alternatively, you can use the same binary file from dfu_application.zip.&lt;/p&gt;
[quote user=""]Once the update file (zip? Bin? Json?) file is downloaded, does the FOTA library know how to apply it, i.e. reflash itself?[/quote]
&lt;p&gt;When the download starts, the DFU target library used by FOTA download library will check what type of image it is downloading and handle it accordingly. For an application update, this means downloading the entire image to the secondary MCUboot slot and then attempt to use that image on subsequent reboot.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/531975?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 09:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99f766c-44c1-44bc-b013-25ffa5f9ff18</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="srubin-ns"]&lt;p&gt;None of the nRF documentation or examples give any hint as to how to use the tokens. It was my understanding that this was all built into the Azure FOTA library.&lt;/p&gt;
&lt;p&gt;Will you please confirm that there is in fact working Azure IoT FOTA in the NCS? Has &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_fota.html"&gt;this &lt;/a&gt;actually been made to work with Azure?&lt;/p&gt;[/quote]
&lt;p&gt;I will check this and get back to you by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/531743?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 17:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e8e83a1-bcbd-40cf-be7d-2d364be15638</guid><dc:creator>srubin-ns</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;span style="background-color:#eeeeee;"&gt;&lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;I am using v2.8.0. (I have also tried v2.9.9 with the same results).&lt;/p&gt;
&lt;p&gt;I think I understand the idea of the SAS stuff you mentioned, but what&amp;#39;s missing is that there is no token sent in the manifest, or maybe there is, but the FOTA download is not using it.&lt;/p&gt;
&lt;p&gt;None of the nRF documentation or examples give any hint as to how to use the tokens. It was my understanding that this was all built into the Azure FOTA library.&lt;/p&gt;
&lt;p&gt;Will you please confirm that there is in fact working Azure IoT FOTA in the NCS? Has &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_fota.html"&gt;this &lt;/a&gt;actually been made to work with Azure?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT FOTA cannot download update images</title><link>https://devzone.nordicsemi.com/thread/531731?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 14:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17ae395b-bff5-4f59-996f-dd7dc4505d68</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Have you tried to use&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/azure/iot-hub/authenticate-authorize-sas?tabs=node"&gt;Shared Access Signatures&lt;/a&gt;&amp;nbsp;(SAS)? You can look at&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview"&gt;granting limited access using SAS&lt;/a&gt;&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/rest/api/storageservices/delegate-access-with-shared-access-signature"&gt;delegating access using SAS&lt;/a&gt;,&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas"&gt;create account SAS&lt;/a&gt;,&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-service-sas"&gt;create service SAS&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/rest/api/storageservices/service-sas-examples"&gt;service SAS examples&lt;/a&gt;,&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key"&gt;authorize with shared key&lt;/a&gt;,&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/azure/storage/blobs/anonymous-read-access-configure?tabs=portal"&gt;anonymous read access&lt;/a&gt;&amp;nbsp;(for testing, presents security risk).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>