Skip to content

Commit 254dd47

Browse files
Update device-update-simulator.md
1 parent dd5e14e commit 254dd47

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

articles/iot-hub-device-update/device-update-simulator.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -82,34 +82,34 @@ After the Device Update agent is running on an IoT device, you must add the devi
8282
```bash
8383
sudo nano /etc/adu/du-config.json
8484
```
85-
Set up values as shown below in the configuration file:
86-
87-
```bash
88-
{
89-
"schemaVersion": "1.1",
90-
"aduShellTrustedUsers": [
91-
"adu",
92-
"do"
93-
],
94-
"iotHubProtocol": "mqtt",
95-
"manufacturer": "Contoso",
96-
"model": "Video",
97-
"agents": [
98-
{
99-
"name": 'aduagent1',
100-
"runas": "adu",
101-
"connectionSource": {
102-
"connectionType": "string", //or “AIS”
103-
"connectionData": <Place your Azure IoT device connection string here>
104-
},
85+
Set up values as shown below in the configuration file:
86+
87+
```bash
88+
{
89+
"schemaVersion": "1.1",
90+
"aduShellTrustedUsers": [
91+
"adu",
92+
"do"
93+
],
94+
"iotHubProtocol": "mqtt",
10595
"manufacturer": "Contoso",
10696
"model": "Video",
107-
}
108-
]
109-
}
110-
```
111-
> [!NOTE]
112-
>You can also use IoT Identity Service to provision the device. To do, that [install the iot indentity service] (https://azure.github.io/iot-identity-service/installation.html) before the agent and set the connectionType to 'AIS' and connectionData as a blank string in the [configuration file](device-update-configuration-file.md) above.
97+
"agents": [
98+
{
99+
"name": 'aduagent1',
100+
"runas": "adu",
101+
"connectionSource": {
102+
"connectionType": "string", //or “AIS”
103+
"connectionData": <Place your Azure IoT device connection string here>
104+
},
105+
"manufacturer": "Contoso",
106+
"model": "Video",
107+
}
108+
]
109+
}
110+
```
111+
> [!NOTE]
112+
>You can also use IoT Identity Service to provision the device. To do, that [install the iot indentity service] (https://azure.github.io/iot-identity-service/installation.html) before the agent and set the connectionType to 'AIS' and connectionData as a blank string in the [configuration file](device-update-configuration-file.md) above.
113113

114114
1. Set up the agent to run as a simulator. Run the following command on the IoT device so that the Device Update agent invokes the simulator handler to process a package update with SWUpdate (`microsoft/swupdate:1`).
115115

0 commit comments

Comments
 (0)