...
After completing the prerequisites, you should have an IoT Edge Device as shown below. In this example, it has a name of 'My-IoT-Edge' and is listed under the IoT Edge devices.
Image Modified
Note this shows an error that the '417 - The device's deployment configuration is not set'. This can be fixed by creating a deployment configuration for this Azure Edge Device.
...
Begin by clicking the Device in the Azure Portal. After doing so, you should see something similar to what is shown below.
Image Modified
Now click 'Set modules' in the upper left corner. That will open the following page.
Image Modified
Add a new 'Container Registry Credentials' with the following parameters.
...
Now click the '+ Add' drop down under 'IoT Edge Modules' and select 'IoT Edge Module' as shown below.
Image Modified
This will open the following page.
Image Modified
- Set the following fields under 'Module Settings'.
- Leave the 'Environment Variables' blank
Under 'Container Create Options' set the following JSON as the value. The 'Binds' field is required and there to preserve Ignition configuration across container deployments.
| Code Block |
|---|
{
"HostConfig": {
"Binds": [
"IgnitionData:/usr/local/bin/ignition/data"
],
"PortBindings": {
"8088/tcp": [
{
"HostPort": "8088"
}
],
"8043/tcp": [
{
"HostPort": "8043"
}
],
"8060/tcp": [
{
"HostPort": "8060"
}
]
}
}
} |
- Leave the 'Module Twin Settings' blank
Finally, click 'Add'. After doing so you should see the following.
Image Modified
Now click 'Next: Routes'. This will open the following page.
Image Modified
Leave the default route in place. This will allow messages to flow from Azure IoT Edge Hub to Azure IoT Hub. This feature will be used later in this tutorial.
Now click 'Review + create' in the lower left corner. This will bring up the following page.
Image Modified
Finally, click 'Create' in the lower left corner. This will deploy the Ignition module to Azure Edge. It takes a few minutes. You can use the 'Refresh' button on the Device page to check the status of the deployment. Once Ignition has successfully deployed, you should see the following. Specifically note that $edgeHub and 'Ignition' now show a 'Runtime Status' of 'running'.
Image Modified
Now click the 'Ignition' module link near the bottom of the page. This will open the following page.
Image Modified
Copy the 'Connection string (primary key)' and save it for later use. This will be used in the Ignition configuration to establish an MQTT Connection from Ignition's Azure Injector module to Azure IoT Edge Hub.
...
At this point, Ignition is running as a Docker container in Azure Edge. You should be able to browse to http://[ip_address_of_azure_edge]:8088. Replace [ip_address_of_azure_edge] with the IP address of your Azure Edge system. You should see something similar to the following.
Image Modified
Follow the steps in the Installing Ignition documentation and select either Ignition or Ignition Edge for this tutorial.
...
Now select 'Settings' under the Azure Injector section in the left navigation panel. After doing so, you should see the following page.
Image Modified
Now select 'Azure IoT Edges' from the tabs near the top of the page. This will open the following page.
Image Modified
Now select the 'Certificates' tab next to 'Settings'. This will show the following page.
Image Modified
Click 'Create new Certificate'. Then browse to the Azure IoT Edge Device Root CA that you provisioned during the installation and configuration of the Azure IoT Edge Device. Give it a friendly name as shown below.
Image Modified
Now click 'Create Certificate File'. After doing so you should see something similar to the following.
Image Modified
Now select the 'Settings' tab directly to the left of the 'Certificates' tab. Then click the 'Create new Azure IoT Edge Setting...' link. This will open the following page.
Image Modified
Set the following parameters in the form (leave all others in their default state)
...
After the parameters are set, click the 'Save Changes' button at the bottom of the page. After doing so, you should see the following.
Image Modified
If everything went well, you should also see 'Connected' under the Status column.
...