Now that we have the Primary Connection String, we can use it to connect our Raspberry Pi to the Azure IoT Edge resource. To do this, follow these steps:
- Open up a Terminal on the Raspberry Pi. We are going to use the nano program to modify the configuration of our installed Azure IoT Edge component. Type the following code into the command line, and hit Enter:
sudo nano /etc/iotedge/config.yaml
- Scroll down to find the Manual provisioning configuration section, and locate the device_connection_string variable, as illustrated in the following screenshot:

- Paste in the Primary Connection String from the previous ...