ms-iot / azure-client-tools

Azure Client Tools
Other
43 stars 37 forks source link

Desired Configuration is Null #57

Closed hasanalpzengin closed 4 years ago

hasanalpzengin commented 4 years ago

Bug description

Device throws

"windowsUpdate": { "meta": { "deploymentId": "unspecified", "deploymentStatus": "failed", "deviceInterfaceVersion": "", "time": "2020-01-24T16:30:27Z" }, "activeHoursEnd": 23, "activeHoursStart": 0, "allowAutoUpdate": 1, "allowUpdateService": 0, "branchReadinessLevel": 16, "deferFeatureUpdatesPeriodInDays": 0, "deferQualityUpdatesPeriodInDays": 0, "pauseFeatureUpdates": 0, "pauseQualityUpdates": 0, "scheduledInstallDay": 5, "scheduledInstallTime": 0, "errors": { "windowsUpdate": { "code": 1001, "context": "windowsUpdate", "message": "Desired configuration is Null", "parameters": {}, "subsystem": "DeviceAgent" } } }, error when tried to update win 10 version.

Steps to reproduce

add windowsUpdate key to desiredProperties: "windowsUpdate": { "__meta": { "deploymentId": "windows_update_v1", "deviceInterfaceVersion": "1.0.0", }, "activeHoursEnd": 23, "activeHoursStart": 0, "allowAutoUpdate": 1, "allowUpdateService": 0, "branchReadinessLevel": 16, "deferFeatureUpdatesPeriodInDays": 0, "deferQualityUpdatesPeriodInDays": 0, "pauseFeatureUpdates": 0, "pauseQualityUpdates": 0, "scheduledInstallDay": 5, "scheduledInstallTime": 0, }

Observed behavior

Error given above thrown

Expected behavior

windows 10 version must be upgraded

Version (please provide the following information):

ghost commented 4 years ago

The Device Agent only sets the configuration for the update. Can you please confirm that the Windows Update Service is running on the device? sc query wuauserv

hasanalpzengin commented 4 years ago

I have contacted with device manifacturer and they told me update service is disabled so @roycey 's prediction can be the reason. Thanks for help.