Public Preview | Public Preview Refresh | |
---|---|---|
File name | /etc/adu/adu-conf.txt | /etc/adu/du-config.json |
File name (Yocto Reference Image) | /adu/adu-conf.txt | /adu/du-config.json |
File format | Text | JSON document |
The DU Agent properties can be specified in the agents
array. Note that for Public Preview Refresh, all agent properties will be read from agents[0]
.
DU Agent Properties | Public Preview | Public Preview Refresh |
Manufacturer and Model |
|
The For example: {
...
"agents": [
{
"name": "...",
"runas": "...",
"connectionSource": { ... },
"manufacturer": "<device manufacturer name>",
"model": "<device model name>"
}
]
...
} |
IoT Hub Connection |
|
{
...
"agents": [
{
"name": "<agent process name>",
"runas": "adu",
"connectionSource": {
"connectionType": "string",
"connectionData": "<device or module connection string>"
},
"manufacturer": "...",
"model": "..."
}
]
...
} |
Prerequisite | Ensure that the device can access the Microsoft installation packages by following this instruction
For a device that previously installed the DU Agent Public Preview version from packages.microsoft.com, you can choose from following upgrade options:
You can manually install a new version of deviceupdate-agent
debian package from packages.microsoft.com (for supported distros and architectures) by remotely running following command on the device:
sudo apt-get purge adu-agent #In case you have an old adu-agent in the system
sudo apt-get purge deviceupdate-agent
sudo apt-get install deviceupdate-agent
Note | Please mind potential data loss when you use
purge
. If needed, save a copy of your configuration file, log files, etc.
To upgrade devices that currently connected to IoT Hub using Device Update Service Deployment (APT Update)
Note | replace
name
andversion
accordingly.
{
"name": "<update name>",
"version": "<update version>",
"packages": [
{
"name": "deviceupdate-agent",
}
]
}
See this document for how to import an update to ADU service.
Note
- Specify
provider
,name
, andversion
as appropriate.- The DU Agent Public Preview version only support an Update Manifest version 2. The Update Manifest version must be specified correctly when importing the update.
Follow Deploy A Device Update Guide to deploy the update imported in above step to a desired group of device.
Once the target device(s) installed and applied the update, the DU Agent on the device should automatically restart and reconnect to the IoT Hub.
Since the new DU Agent using newer version of IoT Hub PnP (Device Update) Interface, every device with upgraded DU Agent will be removed from previous Device Group, and must be re-assigned to a new Device Group.
See Create Update Group for more details.
Option 1:
Manually fill in the configuration file with the instructions in du-config.json file. Note that values like aduShellTrustedUsers
and runas
are default values, you can change them as needed.
Option 2: If you have an existing saved copy of adu-conf.txt file, You can run this script config-integration.sh to migrate from text format to the new du-config.json file in json format.
. scripts/config-integration.sh [copy of adu-conf.txt file]
Please check the du-config.json file after calling the script, to ensure all mandatory fields are filled in.