Control: Azure Monitor Logs for Application Insights should be linked to a Log Analytics workspace
Description
Link the Application Insights component to a Log Analytics workspace for logs encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your data in Azure Monitor. Linking your component to a Log Analytics workspace that's enabled with a customer-managed key, ensures that your Application Insights logs meet this compliance requirement, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.application_insights_linked_to_log_analytics_workspace
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.application_insights_linked_to_log_analytics_workspace --share
SQL
This control uses a named query:
application_insights_linked_to_log_analytics_workspace