`az resource invoke-action` fails for Log Analytics Purge
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
`az resource invoke-action`
**Describe the bug**
Using `invoke-action` to `purge` data from a log anlaytics workspace results in an error:
> Deployment failed. Correlation ID: 2580c410-7196-4208-a9dc-25b1547621e5. Location header is missing from long running operation.
**To Reproduce**
```ps
az resource invoke-action `
--name WORKSPACE NAME `
--resource-group RESOURCE-GROUP `
--subscription SUBSCRIPTION `
--resource-type 'microsoft.operationalinsights/workspaces' `
--action purge `
--request-body @file.json
```
**Expected behavior**
The operation to complete, showing the operation id of the puge.
**Environment summary**
Initially installed via Windows MSI, upgraded to latest via `az upgrade`
```
azure-cli 2.43.0
core 2.43.0
telemetry 1.0.8
Extensions:
application-insights 0.1.15
azure-devops 0.25.0
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\REDACTED\.azure\cliextensions'
Python (Windows) 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:37:59) [MSC v.1933 32 bit (Intel)]
```
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.