Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az monitor activity-log list command not working for a particular resource #30204

Open
ponson-thankavel opened this issue Oct 28, 2024 · 1 comment
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor az monitor
Milestone

Comments

@ponson-thankavel
Copy link

Describe the bug

Env: Macbook M1 Pro

  • Installed latest azure cli "2.65.0_2"
  • Tried to run this command - az monitor activity-log list -g "$rsg" --resource-id "$rsid" --offset 30d

I Expected that the cli to filter events by the resource-id specified. But, it returns all the events in the resource group.

Related command

az monitor activity-log list -g "$rsg" --resource-id "$rsid" --offset 30d

Errors

No Error. --resource-id flag is ignored

Issue script & Debug output

az monitor activity-log list -g "$rsg" --resource-id "$rsid" --offset 30d

Expected behavior

The result should only list events for the specified resource-id

Environment Summary

{
"azure-cli": "2.65.0",
"azure-cli-core": "2.65.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}

Additional context

looks like a similar issue was reported in year 2021 which was fixed in a later azure cli version - #16485

@ponson-thankavel ponson-thankavel added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 28, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 28, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Monitor az monitor labels Oct 28, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 28, 2024
@yonzhan yonzhan added this to the Backlog milestone Oct 28, 2024
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor az monitor
Projects
None yet
Development

No branches or pull requests

3 participants