// Refrigerated Truck app - looking for 4 <your strings>

Nikesh Mangal 1 Reputation point
2020-08-04T18:56:09.063+00:00

What are the four <your...> strings in the "Create a programming project for a real device" in the Create your first Azure IoT Central app Exercise

I'm working through the // Refrigerated Truck app and its not clear what the 4 strings to enter should be.

Does anyone have clarity on where i copy the strings from
1)<your scope ID> Where do i copy this from
2)<your device ID> i have
3)<your primary key> i have
4)<your Azure Maps key> i have

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,203 questions
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
737 questions
{count} votes

2 answers

Sort by: Most helpful
  1. QuantumCache 20,271 Reputation points
    2020-08-04T21:23:33.493+00:00

    Hello @Nikesh Mangal ,

    There are Prerequisites before you can proceed to Create a programming project for a real device

    15612-image.png

    Below are the details:

    static string ScopeID = "<your Scope ID>";
    static string DeviceID = "<your Device ID>";
    static string PrimaryKey = "<your device Primary Key>";

    Get these values from your IoTCentral app.

    15440-image.png

    static string AzureMapsKey = "<your Azure Maps key>";

    Get it from your Azure Maps Account.

    15538-image.png

    Please let us know if you need further help in this matter!


  2. rbrundritt 18,686 Reputation points Microsoft Employee
    2020-08-07T15:12:49.293+00:00

    The primary and secondary keys are Azure Maps keys. Use either one (normally primary is used). The reason for having to is so that in the future you can switch to the other and cycle the previous one, a process known as cycling keys, which is a common security process.

    0 comments No comments

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.