This example gets the 100 latest alerts, adds the row number column to each row, and projects 5 interesting fields
let maxRows = 100;
Alert
| top maxRows by TimeGenerated
| serialize
| extend Id = row_number()
| project Id, TimeGenerated , AlertName , AlertDescription , AlertSeverity