I am trying to get the latest pipeline run logs from a azure data factory, where pipelines run every 10 minutes or so.
I am using the following az-cli command :
az datafactory pipeline-run query-by-factory --factory-name XXXXX --last-updated-after $last_updated_after --last-updated-before $last-updated-before --resource-group XXXXX
Where $last_updated_after and $last_updated_before are defined like the following :
(Python code sample)
last_updated_after = (datetime.datetime.now() - datetime.timedelta(hours=3)).isoformat()
last_updated_before = (datetime.datetime.now()).isoformat()
The documentation isn't very clear what these two parameters represent, but they're supposed to work like a time window filter for selecting our pipeline runs.
However, I only get pipeline runs that occured X hours ago, as defined by last_updated_after, and won't get the pipeline runs that occured less than X hours ago.
And If I use hours =2 or less, I won't get any results, even though there are pipelines running in the past two hours.
Is this a bug? Is there a solution or an alternative?
