Control: 2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To 'On'
Description
Microsoft Defender for IoT acts as a central security hub for IoT devices within your organization.
IoT devices are very rarely patched and can be potential attack vectors for enterprise networks. Updating their network configuration to use a central security hub allows for detection of these breaches.
Remediation
From Azure Portal
- Go to 
IoT Hub. - Select a 
IoT Hubto validate. - Select 
OverviewinDefender for IoT. - Click on 
Secure your IoT solution, and complete the onboarding. 
Default Value
By default, Microsoft Defender for IoT is not enabled.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v210_2_2_1Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v210_2_2_1 --shareSQL
This control uses a named query:
select  id as resource,  'info' as status,  'Manual verification required.' as reason,  display_name as subscriptionfrom  azure_subscription;