Azure Sphere SDK: When does the running OS allow a new OS update to be deferred by the application.

James Higgins 336 Reputation points
2024-07-19T14:41:48.7533333+00:00

I have read through https://learn.microsoft.com/en-us/azure-sphere/app-development/device-update-deferral?view=azure-sphere-integrated and it is still not clear how the running OS determines if it will allow the application an opportunity to defer a new OS update.

The specific scenario of concern is an Azure Sphere enabled product that is offline (in a box on a shelf) at a customer site. While the product is offline Microsoft releases a new Sphere OS update. Two weeks later the product is brought online by the customer. The running OS on the product downloads the new OS update.... Is the application still given the opportunity to defer the update up to 24 hours? Or is deferral not allowed since the OS update has been effectively deferred by two weeks because the product was offline?

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
170 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Padmaja Senapati 150 Reputation points Microsoft Vendor
    2024-07-25T22:11:32.4633333+00:00

    Hello,

    Thank you for posting the question!

    The deferment API limits start from the time that the device is made aware of the update requirement. In the case you outline below, the offline device will come online, realize there is an OS update, consult the application (if it has registered for deferment notifications), and allow the application to defer the update for up to 24 hours.

    This API is designed for applications to ensure the device is in a "safe" state before update begins, which is why the period starts from the time the device is aware of it.

    Hope this answer helps. Please let us know if you have any questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.