Open jonarmstrong opened 4 years ago
@VeryEarly , please look into it.
@VeryEarly , @dingmeng-xue
Any updates on this?
Hi @jonarmstrong ,
I tried to reproduce this and found there are no headers in the request I sent, submitted issue to dotnet sdk: https://github.com/Azure/azure-sdk-for-net/issues/13472
Will keep you up-to-date once I found the cause.
Thanks
@VeryEarly, thank you for looking into this.
The issue still exists as of today using latest PowerShell and Azure Modules. Any updates?
Description
Using
Invoke-AzOperationalInsightsQuery
will throw an A task was cancelled exception before the timeout specified by -Wait has elapsed, ~ 120 seconds until the thread task is cancelled.Steps to reproduce
Use Invoke-AzOperationalInsightsQuery with a query that takes a long time to complete. The thread task will be cancelled before the timeout specified by -Wait. I can't share the exact query provided, as it is confidential work product, but it involved a regex search on the AzureDiagnostics table, similar to below. Shortening the date time search is effective up to a point, except that when a lot of data is present in the time range, it starts timing-out at the thread task. If I run the same kql query in Azure Monitor, it is able to return results before the max 10m timelimit on the log analytics API.
Environment data
Module versions
Debug output
Error output