turbot/steampipe-mod-terraform-azure-compliance

Control: Azure Cognitive Search services should use private link

Description

Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.search_service_uses_private_link

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_azure_compliance.control.search_service_uses_private_link --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std ->> 'sku')::text = 'free' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'sku')::text = 'free' then ' SKU does not supports private link'
else ' SKU supports private link'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_search_service';

Tags