You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-dps/how-to-revoke-device-access-portal.md
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,15 @@ title: Disenroll device from Azure IoT Hub Device Provisioning Service
3
3
description: How to disenroll a device to prevent provisioning through Azure IoT Hub Device Provisioning Service (DPS)
4
4
author: wesmc7777
5
5
ms.author: wesmc
6
-
ms.date: 01/20/2022
6
+
ms.date: 01/24/2022
7
7
ms.topic: conceptual
8
8
ms.service: iot-dps
9
9
services: iot-dps
10
-
manager: timlt
11
10
---
12
11
13
12
# How to disenroll a device from Azure IoT Hub Device Provisioning Service
14
13
15
-
Proper management of device credentials is crucial for high-profile systems like IoT solutions. A best practice for such systems is to have a clear plan of how to revoke access for devices when their credentials, whether a shared access signatures (SAS) token or an X.509 certificate, might be compromised.
14
+
Proper management of device credentials is crucial for high-profile systems like IoT solutions. A best practice for such systems is to have a clear plan of how to revoke access for devices when their credentials, whether a shared access signatures (SAS) token or an X.509 certificate, might be compromised.
16
15
17
16
Enrollment in the Device Provisioning Service enables a device to be [provisioned](about-iot-dps.md#provisioning-process). A provisioned device is one that has been registered with IoT Hub, allowing it to receive its initial [device twin](~/articles/iot-hub/iot-hub-devguide-device-twins.md) state and begin reporting telemetry data. This article describes how to disenroll a device from your provisioning service instance, preventing it from being provisioned again in the future. To learn how to deprovision a device that has already been provisioned to an IoT hub, see [Manage deprovisioning](how-to-unprovision-devices.md).
18
17
@@ -21,14 +20,14 @@ Enrollment in the Device Provisioning Service enables a device to be [provisione
21
20
22
21
## Disallow devices by using an individual enrollment entry
23
22
24
-
Individual enrollments apply to a single device and can use X.509 certificates, TPM endorsement keys (in a real or virtual TPM), or SAS tokens as the attestation mechanism. To disallow a device that has an individual enrollment, you can either disable or delete its enrollment entry.
23
+
Individual enrollments apply to a single device and can use X.509 certificates, TPM endorsement keys (in a real or virtual TPM), or SAS tokens as the attestation mechanism. To disallow a device that has an individual enrollment, you can either disable or delete its enrollment entry.
25
24
26
-
To temporarily disallow the device by disabling its enrollment entry:
25
+
To temporarily disallow the device by disabling its enrollment entry:
27
26
28
27
1. Sign in to the Azure portal and select **All resources** from the left menu.
29
28
2. In the list of resources, select the provisioning service that you want to disallow your device from.
30
29
3. In your provisioning service, select **Manage enrollments**, and then select the **Individual Enrollments** tab.
31
-
4. Select the enrollment entry for the device that you want to disallow.
30
+
4. Select the enrollment entry for the device that you want to disallow.
32
31
33
32

34
33
@@ -41,21 +40,20 @@ To permanently disallow the device by deleting its enrollment entry:
41
40
1. Sign in to the Azure portal and select **All resources** from the left menu.
42
41
2. In the list of resources, select the provisioning service that you want to disallow your device from.
43
42
3. In your provisioning service, select **Manage enrollments**, and then select the **Individual Enrollments** tab.
44
-
4. Select the check box next to the enrollment entry for the device that you want to disallow.
45
-
5. Select **Delete** at the top of the window, and then select **Yes** to confirm that you want to remove the enrollment.
43
+
4. Select the check box next to the enrollment entry for the device that you want to disallow.
44
+
5. Select **Delete** at the top of the window, and then select **Yes** to confirm that you want to remove the enrollment.
46
45
47
46

48
47
49
-
50
48
After you finish the procedure, you should see your entry removed from the list of individual enrollments.
51
49
52
50
## Disallow an X.509 intermediate or root CA certificate by using an enrollment group
53
51
54
-
X.509 certificates are typically arranged in a certificate chain of trust. If a certificate at any stage in a chain becomes compromised, trust is broken. The certificate must be disallowed to prevent Device Provisioning Service from provisioning devices downstream in any chain that contains that certificate. To learn more about X.509 certificates and how they are used with the provisioning service, see [X.509 certificates](./concepts-x509-attestation.md#x509-certificates).
52
+
X.509 certificates are typically arranged in a certificate chain of trust. If a certificate at any stage in a chain becomes compromised, trust is broken. The certificate must be disallowed to prevent Device Provisioning Service from provisioning devices downstream in any chain that contains that certificate. To learn more about X.509 certificates and how they are used with the provisioning service, see [X.509 certificates](./concepts-x509-attestation.md#x509-certificates).
55
53
56
54
An enrollment group is an entry for devices that share a common attestation mechanism of X.509 certificates signed by the same intermediate or root CA. The enrollment group entry is configured with the X.509 certificate associated with the intermediate or root CA. The entry is also configured with any configuration values, such as twin state and IoT hub connection, that are shared by devices with that certificate in their certificate chain. To disallow the certificate, you can either disable or delete its enrollment group.
57
55
58
-
To temporarily disallow the certificate by disabling its enrollment group:
56
+
To temporarily disallow the certificate by disabling its enrollment group:
59
57
60
58
1. Sign in to the Azure portal and select **All resources** from the left menu.
61
59
2. In the list of resources, select the provisioning service that you want to disallow the signing certificate from.
@@ -65,14 +63,13 @@ To temporarily disallow the certificate by disabling its enrollment group:
65
63
66
64

67
65
68
-
69
66
To permanently disallow the certificate by deleting its enrollment group:
70
67
71
68
1. Sign in to the Azure portal and select **All resources** from the left menu.
72
69
2. In the list of resources, select the provisioning service that you want to disallow your device from.
73
70
3. In your provisioning service, select **Manage enrollments**, and then select the **Enrollment Groups** tab.
74
-
4. Select the check box next to the enrollment group for the certificate that you want to disallow.
75
-
5. Select **Delete** at the top of the window, and then select **Yes** to confirm that you want to remove the enrollment group.
71
+
4. Select the check box next to the enrollment group for the certificate that you want to disallow.
72
+
5. Select **Delete** at the top of the window, and then select **Yes** to confirm that you want to remove the enrollment group.
76
73
77
74

78
75
@@ -90,7 +87,7 @@ To disallow an individual device in an enrollment group, follow these steps:
90
87
1. Sign in to the Azure portal and select **All resources** from the left menu.
91
88
2. From the list of resources, select the provisioning service that contains the enrollment group for the device that you want to disallow.
92
89
3. In your provisioning service, select **Manage enrollments**, and then select the **Individual Enrollments** tab.
93
-
4. Select the **Add individual enrollment** button at the top.
90
+
4. Select the **Add individual enrollment** button at the top.
94
91
5. Follow the appropriate step depending on whether you have the device (end-entity) certificate.
95
92
96
93
- If you have the device certificate, on the **Add Enrollment** page select:
Copy file name to clipboardExpand all lines: articles/iot-dps/how-to-unprovision-devices.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,20 @@ title: Deprovision devices that were provisioned with Azure IoT Hub Device Provi
3
3
description: How to deprovision devices that have been provisioned with Azure IoT Hub Device Provisioning Service (DPS)
4
4
author: wesmc7777
5
5
ms.author: wesmc
6
-
ms.date: 01/20/2022
6
+
ms.date: 01/24/2022
7
7
ms.topic: conceptual
8
8
ms.service: iot-dps
9
9
services: iot-dps
10
10
---
11
11
12
-
# How to deprovision devices that were previously auto-provisioned
12
+
# How to deprovision devices that were previously auto-provisioned
13
13
14
-
You may find it necessary to deprovision devices that were previously auto-provisioned through the Device Provisioning Service. For example, a device may be sold or moved to a different IoT hub, or it may be lost, stolen, or otherwise compromised.
14
+
You may find it necessary to deprovision devices that were previously auto-provisioned through the Device Provisioning Service. For example, a device may be sold or moved to a different IoT hub, or it may be lost, stolen, or otherwise compromised.
15
15
16
16
In general, deprovisioning a device involves two steps:
17
17
18
18
1. Disenroll the device from your provisioning service, to prevent future auto-provisioning. Depending on whether you want to revoke access temporarily or permanently, you may want to either disable or delete an enrollment entry. For devices that use X.509 attestation, you may want to disable/delete an entry in the hierarchy of your existing enrollment groups.
19
-
19
+
20
20
- To learn how to disenroll a device, see [How to disenroll a device from Azure IoT Hub Device Provisioning Service](how-to-revoke-device-access-portal.md).
21
21
- To learn how to disenroll a device programmatically using one of the provisioning service SDKs, see [Manage device enrollments with service SDKs](./quick-enroll-device-x509.md).
22
22
@@ -25,22 +25,23 @@ In general, deprovisioning a device involves two steps:
25
25
The exact steps you take to deprovision a device depend on its attestation mechanism and its applicable enrollment entry with your provisioning service. The following sections provide an overview of the process, based on the enrollment and attestation type.
26
26
27
27
## Individual enrollments
28
-
Devices that use TPM attestation or X.509 attestation with a leaf certificate are provisioned through an individual enrollment entry.
29
28
30
-
To deprovision a device that has an individual enrollment:
29
+
Devices that use TPM attestation or X.509 attestation with a leaf certificate are provisioned through an individual enrollment entry.
30
+
31
+
To deprovision a device that has an individual enrollment:
31
32
32
33
1. Disenroll the device from your provisioning service:
33
34
34
-
- For devices that use TPM attestation, delete the individual enrollment entry to permanently revoke the device's access to the provisioning service, or disable the entry to temporarily revoke its access.
35
+
- For devices that use TPM attestation, delete the individual enrollment entry to permanently revoke the device's access to the provisioning service, or disable the entry to temporarily revoke its access.
35
36
- For devices that use X.509 attestation, you can either delete or disable the entry. Be aware, though, if you delete an individual enrollment for a device that uses X.509 and an enabled enrollment group exists for a signing certificate in that device's certificate chain, the device can re-enroll. For such devices, it may be safer to disable the enrollment entry. Doing so prevents the device from re-enrolling, regardless of whether an enabled enrollment group exists for one of its signing certificates.
36
37
37
-
2. Disable or delete the device in the identity registry of the IoT hub that it was provisioned to.
38
-
38
+
2. Disable or delete the device in the identity registry of the IoT hub that it was provisioned to.
39
39
40
40
## Enrollment groups
41
-
With X.509 attestation, devices can also be provisioned through an enrollment group. Enrollment groups are configured with a signing certificate, either an intermediate or root CA certificate, and control access to the provisioning service for devices with that certificate in their certificate chain. To learn more about enrollment groups and X.509 certificates with the provisioning service, see [X.509 certificate attestation](concepts-x509-attestation.md).
42
41
43
-
To see a list of devices that have been provisioned through an enrollment group, you can view the enrollment group's details. This is an easy way to understand which IoT hub each device has been provisioned to. To view the device list:
42
+
With X.509 attestation, devices can also be provisioned through an enrollment group. Enrollment groups are configured with a signing certificate, either an intermediate or root CA certificate, and control access to the provisioning service for devices with that certificate in their certificate chain. To learn more about enrollment groups and X.509 certificates with the provisioning service, see [X.509 certificate attestation](concepts-x509-attestation.md).
43
+
44
+
To see a list of devices that have been provisioned through an enrollment group, you can view the enrollment group's details. This is an easy way to understand which IoT hub each device has been provisioned to. To view the device list:
44
45
45
46
1. Log in to the Azure portal and click **All resources** on the left-hand menu.
46
47
2. Click your provisioning service in the list of resources.
@@ -52,9 +53,9 @@ To see a list of devices that have been provisioned through an enrollment group,
52
53
With enrollment groups, there are two scenarios to consider:
53
54
54
55
- To deprovision all of the devices that have been provisioned through an enrollment group:
55
-
1. Disable the enrollment group to disallow its signing certificate.
56
-
2. Use the list of provisioned devices for that enrollment group to disable or delete each device from the identity registry of its respective IoT hub.
57
-
3. After disabling or deleting all devices from their respective IoT hubs, you can optionally delete the enrollment group. Be aware, though, that, if you delete the enrollment group and there is an enabled enrollment group for a signing certificate higher up in the certificate chain of one or more of the devices, those devices can re-enroll.
56
+
1. Disable the enrollment group to disallow its signing certificate.
57
+
2. Use the list of provisioned devices for that enrollment group to disable or delete each device from the identity registry of its respective IoT hub.
58
+
3. After disabling or deleting all devices from their respective IoT hubs, you can optionally delete the enrollment group. Be aware, though, that, if you delete the enrollment group and there is an enabled enrollment group for a signing certificate higher up in the certificate chain of one or more of the devices, those devices can re-enroll.
58
59
59
60
- To deprovision a single device from an enrollment group:
60
61
1. Create a disabled individual enrollment for the device.
0 commit comments