Share via


Query per la tabella SQLAssessmentRecommendation

Raccomandazioni SQL per area di messa a fuoco

Conteggiare tutte le raccomandazioni SQL in base all'area di messa a fuoco.

SQLAssessmentRecommendation
| summarize AggregatedValue = count() by FocusArea

Raccomandazioni SQL per computer

Conteggiare le raccomandazioni SQL con risultato non riuscito per computer.

SQLAssessmentRecommendation
| where RecommendationResult == "Failed"
| summarize AggregatedValue = count() by Computer

Raccomandazioni SQL per istanza

Conteggiare le raccomandazioni SQL con risultato non riuscito per istanza.

SQLAssessmentRecommendation
| where RecommendationResult == "Failed"
| summarize AggregatedValue = count() by SqlInstanceName

Raccomandazioni SQL per database

Conteggiare le raccomandazioni SQL con risultato non riuscito per database.

SQLAssessmentRecommendation
| where RecommendationResult == "Failed"
| summarize AggregatedValue = count() by DatabaseName

Raccomandazioni SQL per AffectedObjectType

Conteggiare le raccomandazioni SQL con risultato non riuscito in base al tipo di oggetto interessato.

SQLAssessmentRecommendation
| where RecommendationResult == "Failed"
| summarize AggregatedValue = count() by AffectedObjectType

Quante volte ogni raccomandazione SQL univoca ha attivato?

Conteggiare le raccomandazioni SQL con risultato non riuscito in base alla raccomandazione.

SQLAssessmentRecommendation
| where RecommendationResult == "Failed"
| summarize AggregatedValue = count() by Recommendation

Raccomandazioni per la valutazione SQL con priorità elevata

Raccomandazione di sicurezza con priorità elevata più recente con risultato non riuscito dall'ID raccomandazione.

SQLAssessmentRecommendation
| where FocusArea == 'Security and Compliance' and RecommendationResult == 'Failed' and RecommendationScore>=35
| summarize arg_max(TimeGenerated, *) by RecommendationId