I'm now to Azure, KQL and Log Analytics. I'm trying to run the following query on my tasting Log Analytics workspace but I'm getting this error and I can't get around it.
Error:
'where' operator: failed to resolve scalar expression named 'timeOffsetMin'
Query:
let timeOffsetMin = 7d;
let timeOffsetMax = timeOffsetMin * 2;
AuditLogs | where TimeGenerated > ago(timeOffsetMin) and TimeGenerated < ago(timeOffsetMax);
Thanks for the help.