Control: Ensure Microsoft Defender for APIs is set to 'On'
Description
Microsoft Defender for APIs offers full lifecycle protection, detection, and response coverage for APIs.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.security_center_defender_for_api_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.security_center_defender_for_api_enabled --shareSQL
This control uses a named query:
select p.id as resource, case when p.name = 'Api' and p.pricing_tier = 'Standard' then 'ok' else 'alarm' end as status, case when p.name = 'Api' and p.pricing_tier = 'Standard' then 'Microsoft Defender for APIs is enabled with ' || p.pricing_tier || ' tier.' when p.name = 'Api' then 'Microsoft Defender for APIs is disabled, current tier: ' || p.pricing_tier || '.' else 'Microsoft Defender for APIs pricing not found.' end as reason , sub.display_name as subscriptionfrom azure_security_center_subscription_pricing p right join azure_subscription sub on p.subscription_id = sub.subscription_idwhere p.name = 'Api';