Would like to know a KQL query to detect changes in ADF triggers.
Looking at Log Analytics since we are sending all logs to LA, I see several tables are created and populated, some are not.
AzureActivity looked promising but I only see Start/Success under ActivityStatusValue for the specific trigger name.
AzureDiagnostics does not appear to contain any data.
AzureMetrics has quite a few Metrics under MetricName but nothing close to what I’m looking for.
Thanks for any help you may provide.
2
Answers
The easy way to do this is to look at the Activity Log right under the Overview menu option for the resource. You can select a time period and you can filter by Operation Name, in my case I searched for Trigger Stop and that gave me the information I needed after downloading the file to a CSV worksheet.
REST API Solution (Using ADF and SQL Server):
Web Activity JSON:
The output of that looks like this:
You could then read that into a stored procedure and write to a backend table and do whatever spanning and historical tracking you would like. Here is the Stored Procedure and Table DDL to make it happen:
Procedure:
Table DDL:
This I know is not through Log Analytics, but I know from experience it is a highly effective way of tracking triggers across ALL Azure Data Factories, which is imperative once you have dozens of ADF’s to support. It’s always fun when your director asks you, is there anything running in ADF right now…