This simple proof of concept will allow us to programmatically create an enrollment group in an Azure IoT device provisioning service, and then enroll devices using an X509 certificate.
Deliverable 1: Create a .Net Core 2.1 console application that will create a CA root certificate, intermediate certificate and verification certificate. It will then take the root certificate and create an Azure IoT enrollment group in a device provisioning service.
Deliverable 2: Create a device enrollment certificate from the CA root certificate from the previous step, and automatically register the device thru the provisioning service. This device will automatically be assigned to an IpT hub.
I can provide you with access to an Azure subscription, and code that already creates the X509 certificates.