az monitor scheduled-query create doesn't support an identity parameter #8364
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Attempting to create a scheduled query using a Azure Resource Graph query results in an error because there is no way to specify an identity.
Command Name
az monitor scheduled-query create Extension Name: scheduled-query. Version: 1.0.0b1.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Provide a query that accesses Azure Resource Graph (arg)
Expected Behavior
Command needs an additional parameter to specify the identity, which looks like it was added in version
2022-08-01-preview
of the API.https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/change-log/scheduledqueryrules#2022-08-01-preview.
Other queries I've added via the cli command appear to be created using api version
2021-08-01
Environment Summary
Additional Context
This is the option you get when creating via the portal:
The text was updated successfully, but these errors were encountered: