azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

The content update handler tutorial is using the v1 update type vs v2 and an extra space in apt --update-type 'microsoft/a pt:1'

Open SillyKeith opened this issue 2 years ago • 1 comments

[Enter feedback here] The content update handler tutorial is using the v1 update type vs v2 and an extra space “--update-type 'microsoft/a pt:1'

In the Prerequisites area, shouldn't this command be changed to use the new v2 update type? If not, then at least the extra space should be removed from "a pt"

Current with extra space in apt:1 sudo /usr/bin/AducIotAgent --register-content-handler /var/lib/adu/extensions/sources/libmicrosoft_apt_1.so --update-type 'microsoft/a pt:1'

v2 handler is called out on this page : https://github.com/Azure/iot-hub-device-update/blob/main/src/extensions/step_handlers/swupdate_handler_v2/README.md#registering-swupdate-handler-extension

Should it be this? sudo /usr/bin/AducIotAgent --register-content-handler /var/lib/adu/extensions/sources/libmicrosoft_apt_1.so --update-type 'microsoft/apt:2 ?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SillyKeith avatar Nov 10 '22 18:11 SillyKeith

@SillyKeith Thanks for the feedback! We are currently investigating and will update you shortly.

AshokPeddakotla-MSFT avatar Nov 11 '22 03:11 AshokPeddakotla-MSFT

@SillyKeith PR has been created to remove extra space in the command. Regarding using V2 handler, Since it requires validation and confirmation, Adding @vimeht for further review and update the doc if necessary.

AshokPeddakotla-MSFT avatar Nov 14 '22 13:11 AshokPeddakotla-MSFT