Azure / Azure/azure-powershell
[Feature]: Invoke-AzOperationalInsightsQuery should have -NoCache switch that adds
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description of the new feature
KQL searches are cached by default. In the log analytics tool in Azure Portal, no-cache is explicitly requested by the browser. When trying to do a polling KQL search, Invoke-AzOperaitonalInsightsQuery can be behind for a while until the cached result expires.
### Proposed implementation details (optional)
Add a switch that adds the nocache header to the KQL request.
Contributor guide
Research direction
Start with the Invoke-AzOperationalInsightsQuery entry point and trace where its KQL request headers are built. Add the -NoCache switch so the request includes the no-cache header, then verify that polling queries no longer use cached results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, powershell
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100