Manage individual devices in your Azure IoT Central application

This article describes how you manage devices in your Azure IoT Central application. You can:

  • Use the Devices page to view, add, and delete devices connected to your Azure IoT Central application.
  • Keep your device metadata up to date by changing the values stored in the device properties from your views.
  • Control the behavior of your devices by updating a setting on a specific device from your views.

To learn how to manage devices in bulk, see Manage devices in bulk in your Azure IoT Central application.

To learn how to manage devices by using the IoT Central REST API, see How to use the IoT Central REST API to manage devices.

View your devices

To view an individual device:

  1. Choose Devices on the left pane. Here you see a list of your device templates and a list of all the devices accessible to your organization.

  2. Choose a device template.

  3. In the right-hand pane of the Devices page, you see a list of devices accessible to your organization created from that device template:

    Screenshot showing the device list.

    Choose an individual device to see the device details page for that device.

    Tip

    You can use the filter tool on this page to view devices in a specific organization.

Monitor your devices

Use the Devices page to monitor and manage your devices.

The following video walks you through monitoring device connectivity status:

Device status values

When a device connects to your IoT Central application, its device status changes as follows:

  1. The device status is first Registered. This status means the device is created in IoT Central, and has a device ID. A device is registered when:

    • A new real device is added on the Devices page.
    • A set of devices is added using Import on the Devices page.
  2. The device status changes to Provisioned when the device that connected to your IoT Central application with valid credentials completes the provisioning step. In this step, the device uses DPS. The Device ID that was used to register the device. Either a SAS key or X.509 certificatTo find these values: to automatically retrieve a connection string from the IoT Hub used by your IoT Central application. The device can now connect to IoT Central and start sending data.

  3. An operator can block a device. When a device is blocked, it can't send data to your IoT Central application. Blocked devices have a status of Blocked. An operator must reset the device before it can resume sending data. When an operator unblocks a device the status returns to its previous value, Registered or Provisioned.

  4. If the device status is Waiting for Approval, it means the Auto approve option is disabled. An operator must explicitly approve a device before it starts sending data. Devices not registered manually on the Devices page, but connected with valid credentials will have the device status Waiting for Approval. Operators can approve these devices from the Devices page using the Approve button.

  5. If the device status is Unassigned, it means the device connecting to IoT Central isn't assigned to a device template. This situation typically happens in the following scenarios:

    • A set of devices is added using Import on the Devices page without specifying the device template.
    • A device was registered manually on the Devices page without specifying the device template. The device then connected with valid credentials.

    An operator can assign a device to a device template from the Devices page using the Migrate button.

Device connection status

When a device or edge device connects using the MQTT protocol, connected and disconnected events for the device are generated. These events aren't sent by the device, they're generated internally by IoT Central.

The following diagram shows how, when a device connects, the connection is registered at the end of a time window. If multiple connection and disconnection events occur, IoT Central registers the one that's closest to the end of the time window. For example, if a device disconnects and reconnects within the time window, IoT Central registers the connection event. Currently, the time window is approximately one minute.

Diagram that shows event window for connected and disconnected events.

Watch the following video to learn more about how to monitor device connection status:

You can include connection and disconnection events in Export IoT data to cloud destinations using Blob Storage. To learn more, see React to IoT Hub events > Limitations for device connected and device disconnected events.

Add a device

To add a device to your Azure IoT Central application:

  1. Choose Devices on the left pane.

  2. Choose the device template from which you want to create a device.

  3. Choose + New.

  4. Enter a device name and ID or accept the default. The maximum length of a device name is 148 characters. The maximum length of a device ID is 128 characters.

  5. Turn the Simulated toggle to On or Off. A real device is for a physical device that you connect to your Azure IoT Central application. A simulated device has sample data generated for you by Azure IoT Central.

  6. If your application uses organizations, choose the organization the device belongs to.

    Tip

    You can set a default organization to appear in the organization drop-down.

  7. Select Create.

  8. This device now appears in your device list for this template. Select the device to see the device details page that contains all views for the device.

Get device connection information

When a device provisions and connects to IoT Central, it needs connection information from your IoT Central application:

  • The ID Scope that identifies the application to DPS.
  • The Device ID that was used to register the device.
  • Either a SAS key or X.509 certificate.

To find these values:

  1. Choose Devices on the left pane.

  2. Click on the device in the device list to see the device details.

  3. Select Connect to view the connection information. The QR code encodes a JSON document that includes the ID Scope, Device ID, and Primary key derived from the default SAS-IoT-Devices device connection group.

Note

If the authentication type is Shared access signature, the keys displayed are derived from the default SAS-IoT-Devices device connection group.

Change organization

To move a device to a different organization, you must have access to both the source and destination organizations. To move a device:

  1. Choose Devices on the left pane.

  2. Select the device to move in the device list.

  3. Select Manage Device and Organization from the drop-down menu.

  4. Select the new organization for the device:

    Screenshot that shows how to move a device to another organization.

  5. Select Save.

Migrate devices to a template

If you register devices by starting the import under All devices, then the devices are created without any device template association. Devices must be assigned to a template to explore the data and other details about the device. Follow these steps to assign devices to a template:

  1. Choose Devices on the left pane.

  2. On the left panel, choose All devices.

  3. Select the unassigned devices you want to assign to a template:

  4. Select Migrate:

    Screenshot showing how to assign a device to a device template.

  5. Choose the template from the list of available templates and select Migrate.

  6. The selected devices are assigned to the device template you chose.

Delete a device

To delete either a real or simulated device from your Azure IoT Central application:

  1. Choose Devices on the left pane.

  2. Choose the device template of the device you want to delete.

  3. Use the filter tools to filter and search for your devices. Check the box next to the devices to delete.

  4. Choose Delete. You can track the status of this deletion in your Device Operations panel.

Change a property

Cloud properties are the device metadata associated with the device, such as city and serial number. Cloud properties only exist in the IoT Central application and aren't synchronized to your devices. Writable properties control the behavior of a device and let you set the state of a device remotely, for example by setting the target temperature of a thermostat device. Device properties are set by the device and are read-only within IoT Central. You can view and update properties on the Device Details views for your device.

  1. Choose Devices on the left pane.

  2. Choose the device template of the device whose properties you want to change and select the target device.

  3. Choose the view that contains properties for your device, this view enables you to input values and select Save at the top of the page. Here you see the properties your device has and their current values. Cloud properties and writable properties have editable fields, while device properties are read-only. For writable properties, you can see their sync status at the bottom of the field.

  4. Modify the properties to the values you need. You can modify multiple properties at a time and update them all at the same time.

  5. Choose Save. If you saved writable properties, the values are sent to your device. When the device confirms the change for the writable property, the status returns back to synced. If you saved a cloud property, the value is updated.

Next steps

Now that you've learned how to manage devices individually, the suggested next step is to learn how to Manage devices in bulk in your Azure IoT Central application).