Azure Sphere Uniquely Identify a Device-How-to get the Device ID Programmatically

Roger Mahler 226 Reputation points
2021-02-09T12:45:01.9+00:00

What is the best way to uniquely identify a device in Azure Sphere application - is there a device ID that can be pulled from the chipset or is there a better method?

I am trying to get the Device ID Programmatically so i can uniquely identify the device for processing data. the data is being sent over MQTT to our backend processing center (Outside Azure).

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2021-03-03T00:06:30.23+00:00

    Hello @Roger Mahler Below is the response we have for your initial query. I hope this helps.

    Instead, we can use the device ID in the device certificate when establishing a secure HTTPS or TLS connection.

    Regarding the other question related to the security concern--> To be honest I don't have any information to share with you as of now. But we will keep you posted in the future for any further updates in this matter.


2 additional answers

Sort by: Most helpful
  1. neo xiong 11 Reputation points
    2022-03-12T07:20:29.68+00:00
    2 people found this answer helpful.
    0 comments No comments

  2. Roger Mahler 226 Reputation points
    2021-02-11T21:37:18.223+00:00

    Thank you for updating my title.

    I was trying to get the ID at runtime from the device, not from the Azure Sphere HUB/Infrastructure - e.g. just before i send the json to the servers. I would be interested in understanding the comment "as it encourages potentially insecure approaches" comment, what security hole does it open?

    in our deployment Azure Hub is only for managing secure FOTA, all data is sent to a corporate server for analysis and command/control.

    if I understand Microsoft method is to reach out to the Sphere Hub at Microsoft for the device id, is this correct?

    thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.