question

PatrickSchneider-6088 avatar image
0 Votes"
PatrickSchneider-6088 asked SatishBoddu-MSFT edited

Problem use Azure Provisioning Service

Hello Azure Community,

I am trying to establish a device to cloud communication over Azure Provisioning Service and Azure IoT Hub.

My device from texas instruments provides a quickstart example:
https://dev.ti.com/tirex/explore/node?compilers=ccs&devtools=MSP-EXP432E401Y&kernels=tirtos&node=ANFCpQU1lbj4NNp3wZjb0A_g-ygqY8_LATEST

The example:
- create iothub and provisioning service and link them
- creates test CA certificates and deposited this in IotHub/Certificates
- verifies this certificates in IotHub/Certificates
- creates device certificate and deposites the public key in Provisioning_Service/Individual_Enrollments
- create iot device with specified common name in IotHub

Problem:
I used a student license and the budget was used up. With this license I used the tutorial (created new CA, device certificates, add certificates in azure, add individual enrollments,...) and it worked.

Since this, I tried to reproduce the steps (created new CA, device certificates, add certificates in azure, add individual enrollments,...) and run the quickstart again. On device side there are no changes (just changed iothub id_scope, keys,...) that can cause the problem. Therefore my problem is on the azure side.


The error in the device is: "IoTHub not found."

And in the enrollment I found this to:
93769-image.png

But i linked and selected the IoTHub correctly:
93808-image.png

Do you have any suggestions?

This example without a CA works:
https://docs.microsoft.com/de-de/azure/iot-dps/quick-create-simulated-device-x509-python?tabs=windows

With best regards
Patrick

azure-iot-hubazure-ad-cloud-provisioning
image.png (30.8 KiB)
image.png (30.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered SatishBoddu-MSFT edited

Hello @PatrickSchneider-6088 Thanks for reaching out on this forum.

Are you still using the Student Azure Subscription? or any Paid subscription?
What is the IoTHub tier used?

Please go through the below documentation:
Quickstart: Create and provision an X.509 device using C# device SDK for IoT Hub Device Provisioning Service: These steps show you how to use device code from the Azure IoT Samples for C# to provision an X.509 device. In this article, you will run device sample code on your development machine to connect to an IoT Hub using the Device Provisioning Service.(You can choose other available languages as well instead of C#.)

99547-image.png

Please comment in the below section if you are still blocked in this matter.


image.png (115.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.