Azure RTOS and ESP32: Using the Micro-Agent for Microsoft Defender for IoT

Abhithlal c 0 Reputation points
2023-03-07T07:51:40.8866667+00:00

Hi, I'm currently using an ESP32 device with the Azure IoT SDK (ESP-IDF framework) to send sensor data to an Azure IoT hub. I'm interested in adding Microsoft Defender for IoT to my application to enhance security and threat detection capabilities.

I understand that Azure RTOS includes a micro-agent that can be used for this purpose, but I'm not sure if Azure RTOS is compatible with ESP32. If it is, I would appreciate any guidance on how to implement Azure RTOS with ESP32 to enable Microsoft Defender for IoT.

If Azure RTOS is not compatible with ESP32, are there any other options for using the Microsoft Defender for IoT feature with ESP32? I would appreciate any suggestions or insights you can provide.

Thank you in advance for your assistance."

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
219 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,373 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bo Chen 596 Reputation points Microsoft Employee
    2023-03-15T09:23:26.4233333+00:00

    Hi @Abhithlal c Azure RTOS does include micro-agent to support Defender for IoT, but ESP32 is not supported yet. You may need to port the defender agent on FreeRTOS + SDK, refer to nx_azure_iot_security_module.c and nx_azure_iot_security_module.h https://github.com/azure-rtos/netxduo/tree/master/addons/azure_iot/azure_iot_security_module

    1 person found this answer helpful.
    0 comments No comments

  2. AshokPeddakotla-MSFT 33,756 Reputation points
    2023-03-07T16:48:28.4766667+00:00

    @Abhithlal c Welcome to Microsoft Q&A forum!

    I understand that Azure RTOS includes a micro-agent that can be used for this purpose, but I'm not sure if Azure RTOS is compatible with ESP32.

    Yes, your understanding is correct. You can follow the Defender-IoT-micro-agent for Azure RTOS overview documentation to learn more about the Defender-IoT-micro-agent for Azure RTOS support and implementation as part of Microsoft Defender for IoT.

    I suggest you go through the Connect an ESPRESSIF ESP32 using Azure IoT Middleware for FreeRTOS sample for more details.

    Also, See Azure IoT samples using Azure IoT middleware for FreeRTOS and Connect an ESPRESSIF ESP-32 to Azure IoT Central guide that provides step-by-step instructions on how to connect an ESP32 device to Azure IoT using Azure RTOS. This guide will help you build a custom image that contains the Azure IoT middleware for FreeRTOS sample code, and then flash the image to the ESP32 DevKit device. You will also use the IoT Central portal to create Azure resources, connect the ESP32 DevKit securely to Azure, view telemetry, and send messages.

    If Azure RTOS is not compatible with ESP32, are there any other options for using the Microsoft Defender for IoT feature with ESP32? I would appreciate any suggestions or insights you can provide.

    You can check the Prepare your OT network for Microsoft Defender for IoT and Microsoft Defender for IoT - supported IoT, OT, ICS, and SCADA protocols articles to learn about the network preparation, prerequisites, and other information needed to ensure that you successfully set up your network to work with Microsoft Defender for IoT appliances.

    Hope this helps.

    If you need further help in this matter, please comment in the below section and we are happy to discuss!


    If this answers your query, do click Accept Answer and Yes for this answer as helpful. And, if you have any further query do let us know by commenting in the below section.


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.