This .net 6 console application allows to get the actual device registrations within a DPS instance.
It summarize all the device registrations from the existing Enrollment Groups and the Individual Registrations.
Sample code to calculate current device registrations in Azure Device Provisioning Service
C#MIT