-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Incorrect column reference in the example #22718
Copy link
Copy link
Closed
Azure/azure-cli-extensions
#4971Labels
Auto-AssignAuto assign by botAuto assign by botMonitoraz monitoraz monitorcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botMonitoraz monitoraz monitorcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the example section https://docs.microsoft.com/en-us/cli/azure/monitor/scheduled-query?view=azure-cli-latest#az-monitor-scheduled-query-create-examples
The sample command used
az monitor scheduled-query create -g {rg} -n {name1} --scopes {rg_id} --condition "count 'Placeholder_1' > 360 resource id _ResourceID at least 1 violations out of 5 aggregated points" --condition-query Placeholder_1="union Event, Syslog | where TimeGenerated > ago(1h) | where EventLevelName=='Error' or SeverityLevel=='err'" --description "Test rule"This will throw an error
ERROR: (BadRequest) ResourceIdColumn '_ResourceID' is missing from the columns in the query's results'_ResourceID' should be referred as '_ResourceId' to resolve above error.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.