Create or update a individual Device Enrollment record.
This API creates a new individualEnrollment or update a existed one. All enrollments in the Device Provisioning Service
contains a unique identifier called registrationId. If this API is called for an individualEnrollment with a
registrationId that already exists, it will replace the existed individualEnrollment information by the new one.
On the other hand, if the registrationId does not exit, this API will create a new individualEnrollment.
To use the Device Provisioning Service API, you must include the follow package on your application.
// Include the following imports to use the Device Provisioning Service APIs.
Sample:
The follow code will create a new individualEnrollment that will provisioning the ContosoDevice1000 to the
ContosoHub.azure-devices.net using TPM attestation.
// IndividualEnrollment information.}
If the registrationId already exists, this method will update existed enrollments. Note that update the
individualEnrollment will not change the status of the device that was already registered using the old individualEnrollment.
The follow code will update the provisioningStatus of the previous individualEnrollment from disabled to enabled.
// IndividualEnrollment information.}