Skip to content

Commit 1c4f96e

Browse files
authored
Merge pull request #199236 from JimacoMS4/clarify-behavior-when-deleting-enrollment-group
Clarify behavior around registration records when deleting an enrollment group
2 parents 21ad6b0 + 3e88d57 commit 1c4f96e

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

articles/iot-dps/how-to-manage-enrollments.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,15 @@ To remove an enrollment entry:
216216

217217
4. In the **Settings** menu, select **Manage enrollments**.
218218

219-
5. Select the enrollment entry you want to remove.
219+
5. Select the enrollment entry you want to remove.
220220

221221
6. At the top of the page, select **Delete**.
222222

223223
7. When prompted to confirm, select **Yes**.
224224

225225
8. Once the action is completed, you'll see that your entry has been removed from the list of device enrollments.
226+
227+
> [!NOTE]
228+
> Deleting an enrollment group doesn't delete the registration records for devices in the group. DPS uses the registration records to determine whether the maximum number of registrations has been reached for the DPS instance. Orphaned registration records still count against this quota. For the current maximum number of registrations supported for a DPS instance, see [Quotas and limits](about-iot-dps.md#quotas-and-limits).
229+
>
230+
>You may want to delete the registration records for the enrollment group before deleting the enrollment group itself. You can see and manage the registration records for an enrollment group manually on the **Registration Records** tab for the group in Azure portal. You can retrieve and manage the registration records programmatically using the [Device Registration State REST APIs](/rest/api/iot-dps/service/device-registration-state) or equivalent APIs in the [DPS service SDKs](libraries-sdks.md), or using the [az iot dps enrollment-group registration Azure CLI commands](/cli/azure/iot/dps/enrollment-group/registration).

articles/iot-dps/how-to-revoke-device-access-portal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ After you finish the procedure, you should see your entry removed from the list
7878
> [!NOTE]
7979
> If you delete an enrollment group for a certificate, devices that have the certificate in their certificate chain might still be able to enroll if an enabled enrollment group for the root certificate or another intermediate certificate higher up in their certificate chain exists.
8080
81+
> [!NOTE]
82+
> Deleting an enrollment group doesn't delete the registration records for devices in the group. DPS uses the registration records to determine whether the maximum number of registrations has been reached for the DPS instance. Orphaned registration records still count against this quota. For the current maximum number of registrations supported for a DPS instance, see [Quotas and limits](about-iot-dps.md#quotas-and-limits).
83+
>
84+
>You may want to delete the registration records for the enrollment group before deleting the enrollment group itself. You can see and manage the registration records for an enrollment group manually on the **Registration Records** tab for the group in Azure portal. You can retrieve and manage the registration records programmatically using the [Device Registration State REST APIs](/rest/api/iot-dps/service/device-registration-state) or equivalent APIs in the [DPS service SDKs](libraries-sdks.md), or using the [az iot dps enrollment-group registration Azure CLI commands](/cli/azure/iot/dps/enrollment-group/registration).
85+
8186
## Disallow specific devices in an enrollment group
8287

8388
Devices that implement the X.509 attestation mechanism use the device's certificate chain and private key to authenticate. When a device connects and authenticates with Device Provisioning Service, the service first looks for an individual enrollment with a registration ID that matches the common name (CN) of the device (end-entity) certificate. The service then searches enrollment groups to determine whether the device can be provisioned. If the service finds a disabled individual enrollment for the device, it prevents the device from connecting. The service prevents the connection even if an enabled enrollment group for an intermediate or root CA in the device's certificate chain exists.

articles/iot-dps/how-to-unprovision-devices.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ With X.509 attestation, devices can also be provisioned through an enrollment gr
4343

4444
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:
4545

46-
1. Log in to the Azure portal and click **All resources** on the left-hand menu.
47-
2. Click your provisioning service in the list of resources.
48-
3. In your provisioning service, click **Manage enrollments**, then select **Enrollment Groups** tab.
49-
4. Click the enrollment group to open it.
46+
1. Log in to the Azure portal and select **All resources** on the left-hand menu.
47+
2. Select your provisioning service in the list of resources.
48+
3. In your provisioning service, select **Manage enrollments**, then select the **Enrollment Groups** tab.
49+
4. Select the enrollment group to open it.
50+
5. Select the **Registration Records** tab to view the registration records for the enrollment group.
5051

51-
![View enrollment group entry in the portal](./media/how-to-unprovision-devices/view-enrollment-group.png)
52+
![Screenshot showing the registration records for an enrollment group in the portal.](./media/how-to-unprovision-devices/view-registration-records.png)
5253

5354
With enrollment groups, there are two scenarios to consider:
5455

@@ -57,6 +58,11 @@ With enrollment groups, there are two scenarios to consider:
5758
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.
5859
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.
5960

61+
> [!NOTE]
62+
> Deleting an enrollment group doesn't delete the registration records for devices in the group. DPS uses the registration records to determine whether the maximum number of registrations has been reached for the DPS instance. Orphaned registration records still count against this quota. For the current maximum number of registrations supported for a DPS instance, see [Quotas and limits](about-iot-dps.md#quotas-and-limits).
63+
>
64+
>You may want to delete the registration records for the enrollment group before deleting the enrollment group itself. You can see and manage the registration records for an enrollment group manually on the **Registration Records** tab for the group in Azure portal. You can retrieve and manage the registration records programmatically using the [Device Registration State REST APIs](/rest/api/iot-dps/service/device-registration-state) or equivalent APIs in the [DPS service SDKs](libraries-sdks.md), or using the [az iot dps enrollment-group registration Azure CLI commands](/cli/azure/iot/dps/enrollment-group/registration).
65+
6066
- To deprovision a single device from an enrollment group:
6167
1. Create a disabled individual enrollment for the device.
6268

27.8 KB
Loading

0 commit comments

Comments
 (0)