Query per la tabella SQLAssessmentRecommendation

Per informazioni sull'uso di queste query nella portale di Azure, vedere Esercitazione su Log Analytics. Per l'API REST, vedere Query.

Raccomandazioni SQL per area di interesse

Contare tutte le raccomandazioni SQL in base all'area di interesse.

SQLAssessmentRecommendation
| summarize AggregatedValue = count() by FocusArea

Consigli sql per computer

Contare le raccomandazioni SQL con risultato non riuscito per computer.

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

Raccomandazioni SQL per istanza

Contare le raccomandazioni SQL con risultato non riuscito per istanza.

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

Raccomandazioni sql per database

Contare le raccomandazioni SQL con risultato non riuscito per database.

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

Raccomandazioni SQL per AffectedObjectType

Contare 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 trigger di raccomandazione SQL univoco è stato attivato?

Contare 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à alta 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