Control: App Service Environment should enable internal encryption
Description
Setting InternalEncryption to true encrypts the pagefile, worker disks, and internal network traffic between the front ends and workers in an App Service Environment.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.app_service_environment_internal_encryption_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.app_service_environment_internal_encryption_enabled --shareSQL
This control uses a named query:
with app_service_environment as (  select    distinct id as id  from    azure_app_service_environment,    jsonb_array_elements(cluster_settings ) as s  where    s ->> 'name' = 'InternalEncryption'    and s ->> 'value' = 'true')select  a.id as resource,  case    when b.id is not null then 'ok'    else 'alarm'  end as status,  case    when b.id is not null then a.title || ' internal encryption enabled.'    else a.name || ' internal encryption disabled.'  end as reason    , a.resource_group as resource_group  , sub.display_name as subscriptionfrom  azure_app_service_environment as a  left join app_service_environment as b on a.id = b.id  left join azure_subscription as sub on sub.subscription_id = a.subscription_id;