question

NikeshMangal-0977 avatar image
0 Votes"
NikeshMangal-0977 asked ·

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

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-hubazure-maps
· 4
10 |1000 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.

Hello @NikeshMangal-0977 , Thanks for reaching out to us!

Please let us know the exact document you have followed?

0 Votes 0 · ·

I got i!, You are referring to the Microsoft Docs! Learning page: Thanks for reaching out to us!

https://docs.microsoft.com/en-us/learn/modules/create-your-first-iot-central-app/5-create-real-device-nodejs?pivots=vscode-node

15507-image.png


0 Votes 0 · ·
image.png (60.2 KiB)

Hello @NikeshMangal-0977 , Just checking back, Please accept the below helpful responses as 'Answer' so that it will be helpful to others and we can close this thread discussion.

0 Votes 0 · ·

Hello @NikeshMangal-0977 , Just checking back, could you please let us know if you need further help in this matter.

0 Votes 0 · ·
SatishBoddu-MSFT avatar image
1 Vote"
SatishBoddu-MSFT answered ·

Hello @NikeshMangal-0977 ,

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!






image.png (95.6 KiB)
image.png (108.6 KiB)
image.png (99.2 KiB)
· 1 · Share
10 |1000 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.

Hello @NikeshMangal-0977 , Just checking back, could you please let us know if you need further help in this matter.

0 Votes 0 · ·
rbrundritt avatar image
0 Votes"
rbrundritt answered ·

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.

· Share
10 |1000 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.