Control: Azure API for FHIR should use private link
Description
Azure API for FHIR should have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections through private links.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.healthcare_fhir_uses_private_link
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.healthcare_fhir_uses_private_link --share
SQL
This control uses a named query:
select a.id as resource, case when private_endpoint_connections is null then 'info' when private_endpoint_connections @> '[{"privateLinkServiceConnectionState": "Approved"}]'::jsonb then 'ok' else 'alarm' end as status, case when private_endpoint_connections is null then a.name || ' no private link exists.' when private_endpoint_connections @> '[{"privateLinkServiceConnectionState": "Approved"}]'::jsonb then a.name || ' using private link.' else a.name || ' not using private link.' end as reason , a.resource_group as resource_group , sub.display_name as subscriptionfrom azure_healthcare_service a, azure_subscription sub;