-
Notifications
You must be signed in to change notification settings - Fork 547
fix(Azure): Reduce duplicate results of Azure CIS v1.3.0 Section 9.1 #10013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
erezrokah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @aruneko, approving since I believe this solves the duplicates, but I'm wondering how we get those, as I'd expect us not to have them.
Can you share some redacted example data that creates them?
|
Thanks for your confirmation comment. In my environment, I make groups by check_id to count resource. But someone has been forgotten add Then, I will revert the changes for the query. |
…fix/azure_cis_policy_sec9
🤖 I have created a release *beep* *boop* --- ## [7.2.0](plugins-source-azure-v7.1.1...plugins-source-azure-v7.2.0) (2023-04-23) ### This Release has the Following Changes to Tables - Table `azure_consumption_billing_account_balances` was added - Table `azure_consumption_billing_account_budgets` was added - Table `azure_consumption_billing_account_charges` was added - Table `azure_consumption_billing_account_events` was added - Table `azure_consumption_billing_account_legacy_usage_details` was added - Table `azure_consumption_billing_account_lots` was added - Table `azure_consumption_billing_account_marketplaces` was added - Table `azure_consumption_billing_account_modern_usage_details` was added - Table `azure_consumption_billing_account_reservation_recommendations` was added - Table `azure_consumption_billing_account_tags` was added - Table `azure_consumption_billing_profile_reservation_details` was added - Table `azure_consumption_billing_profile_reservation_recommendations` was added - Table `azure_consumption_billing_profile_reservation_summaries` was added - Table `azure_consumption_billing_profile_reservation_transactions` was added - Table `azure_consumption_subscription_budgets` was added - Table `azure_consumption_subscription_legacy_usage_details` was added - Table `azure_consumption_subscription_marketplaces` was added - Table `azure_consumption_subscription_price_sheets` was added - Table `azure_consumption_subscription_reservation_recommendations` was added - Table `azure_consumption_subscription_tags` was added ### Features * **azure-resources:** Add Consumption Resources ([#9117](#9117)) ([007421a](007421a)) * **azure:** Add policy docs ([#10253](#10253)) ([e5b9ec7](e5b9ec7)) * **azure:** Upgrade to `github.com/cloudquery/plugin-sdk/v2` ([#9943](#9943)) ([11d98b3](11d98b3)), closes [#9942](#9942) ### Bug Fixes * **azure:** Added missing character ([#10183](#10183)) ([cbd948d](cbd948d)) * **azure:** Fix detecting conditions in CIS Section 8 ([#9923](#9923)) ([612da16](612da16)) * **Azure:** Reduce duplicate results of Azure CIS v1.3.0 Section 9.1 ([#10013](#10013)) ([6539ee3](6539ee3)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.0 ([#10135](#10135)) ([cf33b89](cf33b89)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.2 ([#10143](#10143)) ([8f887e0](8f887e0)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.0 ([#10163](#10163)) ([9a7f214](9a7f214)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.1 ([#10175](#10175)) ([5b53423](5b53423)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.3 ([#10187](#10187)) ([b185248](b185248)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.4 ([#10196](#10196)) ([c6d2f59](c6d2f59)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.5 ([#10200](#10200)) ([5a33693](5a33693)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.6 ([#10208](#10208)) ([91c80a7](91c80a7)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.8 ([#10213](#10213)) ([f358666](f358666)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
I noticed that the current implementation of Azure CIS v1.3.0 Section 9.1 returns duplicate policy results. To reduce that, I add
GROUP BYquery into the SQL.