Quickstart: Enable Microsoft Defender for IoT on your Azure IoT Hub
This article explains how to enable Microsoft Defender for IoT on an Azure IoT hub.
Azure IoT Hub is a managed service that acts as a central message hub for communication between IoT applications and IoT devices. You can connect millions of devices and their backend solutions reliably and securely. Almost any device can be connected to an IoT Hub. Defender for IoT integrates into Azure IoT Hub to provide real-time monitoring, recommendations, and alerts.
Prerequisites
An Azure account with an active subscription. Create an account for free.
The ability to create a standard tier IoT Hub.
Note
Defender for IoT currently only supports standard tier IoT Hubs.
Create an IoT Hub with Microsoft Defender for IoT
You can create a hub in the Azure portal. For all new IoT hubs, Defender for IoT is set to On by default.
To create an IoT Hub:
Follow the steps to create an IoT hub using the Azure portal.
Under the Management tab, ensure that Defender for IoT is set to On. By default, Defender for IoT will be set to On .
Enable Defender for IoT on an existing IoT Hub
You can onboard Defender for IoT to an existing IoT Hub, where you can then monitor the device identity management, device to cloud, and cloud to device communication patterns.
To enable Defender for IoT on an existing IoT Hub:
Sign in to the Azure portal.
Navigate to IoT Hub >
Your hub
> Defender for IoT > Overview.Select Secure your IoT solution, and complete the onboarding form.
The Secure your IoT solution button will only appear if the IoT Hub hasn't already been onboarded, or if you set the Defender for IoT toggle to Off while onboarding.
Verify that Defender for IoT is enabled
To verify that Defender for IoT is enabled:
Sign in to the Azure portal.
Navigate to IoT Hub >
Your hub
> Defender for IoT > Overview.The Threat prevention and Threat detection screen will appear.
Configure data collection
Configure data collection settings for Defender for IoT in your IoT hub, such as a Log Analytics workspace and other advanced settings.
To configure Defender for IoT data collection:
In your IoT hub, select Defender for IoT > Settings. The Enable Microsoft Defender for IoT option is toggled on by default.
In the Workspace configuration area, toggle the On option to connect to a Log Analytics workspace, and then select the Azure subscription and Log Analytics workspace you want to connect to.
If you need to create a new workspace, select the Create New Workspace link.
Select Access to raw security data to export raw security events from your devices to the Log Analytics workspace that you'd selected above.
In the Advanced settings area, the following options are selected by default. Clear the selection as needed:
In-depth security recommendations and custom alerts. Allows Defender for IoT access to the device's twin data in order to generate alerts based on that data.
IP data collection. Allows Defender for IoT access to the device's incoming and outgoing IP addresses to generate alerts based on suspicious connections.
Select Save to save your settings.
Next steps
Advance to the next article to add a resource group to your solution.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for