Control: Data factories should use GitHub repository
Description
Ensure that Data Factory utilizes a Git repository as its source control mechanism. This control is non-compliant if Data Factory Git repository is not configured.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.data_factory_uses_git_repository
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.data_factory_uses_git_repository --share
SQL
This control uses a named query:
select a.id as resource, case when repo_configuration ->> 'repositoryName' is not null then 'ok' else 'alarm' end as status, case when repo_configuration ->> 'repositoryName' is not null then a.name || ' uses git repository.' else a.name || ' not uses git repository.' end as reason , a.resource_group as resource_group , sub.display_name as subscriptionfrom azure_data_factory as a, azure_subscription as subwhere sub.subscription_id = a.subscription_id;