turbot/azure_compliance

Query: postgres_db_server_connection_throttling_on

Usage

powerpipe query azure_compliance.query.postgres_db_server_connection_throttling_on

SQL

select
s.id as resource,
case
when lower(config -> 'ConfigurationProperties' ->> 'value') != 'on' then 'alarm'
else 'ok'
end as status,
case
when lower(config -> 'ConfigurationProperties' ->> 'value') != 'on' then s.name || ' server parameter connection_throttling off.'
else s.name || ' server parameter connection_throttling on.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_postgresql_server s,
jsonb_array_elements(server_configurations) config,
azure_subscription sub
where
config ->> 'Name' = 'connection_throttling'
and sub.subscription_id = s.subscription_id;

Controls

The query is being used by the following controls: