Manage compute on your Azure Stack Edge Pro FPGA

Important

Azure Stack Edge Pro FPGA devices will reach end-of-life in February 2024. If you are considering new deployments, we recommend that you explore Azure Stack Edge Pro 2 or Azure Stack Edge Pro GPU devices for your workloads.

This article describes how to manage compute on your Azure Stack Edge Pro FPGA. You can manage the compute via the Azure portal or via the local web UI. Use the Azure portal to manage modules, triggers, and compute configuration, and the local web UI to manage compute settings.

In this article, you learn how to:

  • Manage triggers
  • Manage compute configuration

Manage triggers

Events are things that happen within your cloud environment or on your device that you might want to take action on. For example, when a file is created in a share, it is an event. Triggers raise the events. For your Azure Stack Edge Pro FPGA, triggers can be in response to file events or a schedule.

  • File: These triggers are in response to file events such as creation of a file, modification of a file.
  • Scheduled: These triggers are in response to a schedule that you can define with a start date, start time, and the repeat interval.

Add a trigger

Take the following steps in the Azure portal to create a trigger.

  1. In the Azure portal, go to your Azure Stack Edge resource and then go to IoT Edge > Triggers. Select + Add trigger on the command bar.

    Select add trigger

  2. In Add trigger blade, provide a unique name for your trigger.

  3. Select a Type for the trigger. Choose File when the trigger is in response to a file event. Select Scheduled when you want the trigger to start at a defined time and run at a specified repeat interval. Depending on your selection, a different set of options is presented.

    • File trigger - Choose from the dropdown list a mounted share. When a file event is fired in this share, the trigger would invoke an Azure Function.

      Add SMB share

    • Scheduled trigger - Specify the start date/time, and the repeat interval in hours, minutes, or seconds. Also, enter the name for a topic. A topic will give you the flexibility to route the trigger to a module deployed on the device.

      An example route string is: "route3": "FROM /* WHERE topic = 'topicname' INTO BrokeredEndpoint("modules/modulename/inputs/input1")".

      Add NFS share

  4. Select Add to create the trigger. A notification shows that the trigger creation is in progress. After the trigger is created, the blade updates to reflect the new trigger.

    Updated trigger list

Delete a trigger

Take the following steps in the Azure portal to delete a trigger.

  1. From the list of triggers, select the trigger that you want to delete.

    Select trigger

  2. Right-click and then select Delete.

    Select delete

  3. When prompted for confirmation, click Yes.

    Confirm delete

The list of triggers updates to reflect the deletion.

Manage compute configuration

Use the Azure portal to view the compute configuration, remove an existing compute configuration, or to refresh the compute configuration to sync up access keys for the IoT device and IoT Edge device for your Azure Stack Edge Pro FPGA.

View compute configuration

Take the following steps in the Azure portal to view the compute configuration for your device.

  1. In the Azure portal, go to your Azure Stack Edge resource and then go to IoT Edge > Overview.

    Select View compute

  2. Go to Properties page. Make a note of the compute configuration on your device. When you configured compute, you created an IoT Hub resource. Under that IoT Hub resource, an IoT device and an IoT Edge device are configured. Only the Linux modules are supported to run on the IoT Edge device.

    View configuration

Remove compute configuration

Take the following steps in the Azure portal to remove the existing Edge compute configuration for your device.

  1. In the Azure portal, go to your Azure Stack Edge resource and then go to IoT Edge > Overview. Select Remove on the command bar.

    Select Remove compute

  2. If you remove the compute configuration, you will need to reconfigure your device in case you need to use compute again. When prompted for confirmation, select Yes.

    Select Remove compute 2

Sync up IoT device and IoT Edge device access keys

When you configure compute on your Azure Stack Edge Pro FPGA, an IoT device and an IoT Edge device are created. These devices are automatically assigned symmetric access keys. As a security best practice, these keys are rotated regularly via the IoT Hub service.

To rotate these keys, you can go to the IoT Hub service that you created and select the IoT device or the IoT Edge device. Each device has a primary access key and a secondary access keys. Assign the primary access key to the secondary access key and then regenerate the primary access key.

If your IoT device and IoT Edge device keys have been rotated, then you need to refresh the configuration on your Azure Stack Edge Pro FPGA to get the latest access keys. The sync helps the device get the latest keys for your IoT device and IoT Edge device. Azure Stack Edge Pro FPGA uses only the primary access keys.

Take the following steps in the Azure portal to sync the access keys for your device.

  1. In the Azure portal, go to your Azure Stack Edge resource and then go to IoT Edge > Overview. Select Refresh configuration on the command bar.

    Select Refresh configuration

  2. Select Yes when prompted for confirmation.

    Select Yes when prompted

  3. Exit out of the dialog once the sync is complete.

Next steps