Control: 2.1.12 Ensure That Microsoft Defender for IoT 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 
Microsoft Defender for Cloud - Select 
Environment Settingsblade - Click on the subscription name
 - Select the 
Defender plansblade - For the 
IoTresource typePlanset the radio button toOn. 
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_v150_2_1_12Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v150_2_1_12 --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;