Control: Storage accounts 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 your storage account, data leakage risks are reduced.
Usage
Run the control in your terminal:
powerpipe control run terraform_azure_compliance.control.storage_account_uses_private_linkSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.storage_account_uses_private_link --shareSQL
This control uses a named query:
select address as resource, case when (attributes_std -> 'private_link_access') is null then 'alarm' else 'ok' end status, split_part(address, '.', 2) || case when (attributes_std -> 'private_link_access') is null then ' does not use private link' else ' uses private link' end || '.' reason , path || ':' || start_linefrom terraform_resourcewhere type = 'azurerm_storage_account';