Repository: Azure/azqr

Issue:
Rule cosmos-002 is a dup of 921631f6-ed59-49a5-94c1-f0f3ececa580
## Expected Behavior

Remove rule cosmos-002


Hints from issue comments:

Solution patch:
diff --git a/internal/scanners/cosmos/rules.go b/internal/scanners/cosmos/rules.go
index d3b548d..98d4cba 100644
--- a/internal/scanners/cosmos/rules.go
+++ b/internal/scanners/cosmos/rules.go
@@ -26,32 +26,6 @@ func (a *CosmosDBScanner) GetRecommendations() map[string]scanners.AzqrRecommend
 			},
 			LearnMoreUrl: "https://learn.microsoft.com/en-us/azure/cosmos-db/monitor-resource-logs",
 		},
-		"cosmos-002": {
-			RecommendationID: "cosmos-002",
-			ResourceType:     "Microsoft.DocumentDB/databaseAccounts",
-			Category:         scanners.CategoryHighAvailability,
-			Recommendation:   "CosmosDB should have availability zones enabled",
-			Impact:           scanners.ImpactHigh,
-			Eval: func(target interface{}, scanContext *scanners.ScanContext) (bool, string) {
-				i := target.(*armcosmos.DatabaseAccountGetResults)
-				availabilityZones := false
-				availabilityZonesNotEnabledInALocation := false
-				numberOfLocations := 0
-				for _, location := range i.Properties.Locations {
-					numberOfLocations++
-					if *location.IsZoneRedundant {
-						availabilityZones = true
-					} else {
-						availabilityZonesNotEnabledInALocation = true
-					}
-				}
-
-				zones := availabilityZones && numberOfLocations >= 2 && !availabilityZonesNotEnabledInALocation
-
-				return !zones, ""
-			},
-			LearnMoreUrl: "https://learn.microsoft.com/en-us/azure/cosmos-db/high-availability",
-		},
 		"cosmos-003": {
 			RecommendationID:   "cosmos-003",
 			ResourceType:       "Microsoft.DocumentDB/databaseAccounts",



Test patch:
diff --git a/internal/scanners/cosmos/rules_test.go b/internal/scanners/cosmos/rules_test.go
index 5d2e96f..45f06bf 100644
--- a/internal/scanners/cosmos/rules_test.go
+++ b/internal/scanners/cosmos/rules_test.go
@@ -45,29 +45,6 @@ func TestCosmosDBScanner_Rules(t *testing.T) {
 				result: "",
 			},
 		},
-		{
-			name: "CosmosDBScanner Availability Zones",
-			fields: fields{
-				rule: "cosmos-002",
-				target: &armcosmos.DatabaseAccountGetResults{
-					Properties: &armcosmos.DatabaseAccountGetProperties{
-						Locations: []*armcosmos.Location{
-							{
-								IsZoneRedundant: to.Ptr(true),
-							},
-							{
-								IsZoneRedundant: to.Ptr(true),
-							},
-						},
-					},
-				},
-				scanContext: &scanners.ScanContext{},
-			},
-			want: want{
-				broken: false,
-				result: "",
-			},
-		},
 		{
 			name: "CosmosDBScanner SLA 99.99%",
 			fields: fields{