Skip to content

az resource invoke-action fails for Log Analytics Purge #24857

@afscrome

Description

@afscrome

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

 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

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamUpgradeaz upgradeact-identity-squadact-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions