Control: Service Fabric clusters should only use Azure Active Directory for client authentication
Description
Audit usage of client authentication only via Azure Active Directory in Service Fabric.
Usage
Run the control in your terminal:
powerpipe control run terraform_azure_compliance.control.servicefabric_cluster_active_directory_authentication_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.servicefabric_cluster_active_directory_authentication_enabled --shareSQL
This control uses a named query:
select  address as resource,  case    when (attributes_std -> 'azure_active_directory') is null then 'alarm'    else 'ok'  end status,  split_part(address, '.', 2) || case    when (attributes_std -> 'azure_active_directory') is null then ' does not use Azure Active Directory for client authentication'    else ' uses Azure Active Directory for client authentication'  end || '.' reason    , path || ':' || start_linefrom  terraform_resourcewhere  type = 'azurerm_service_fabric_cluster';