az monitor metrics alert create - scope for failedLocationCount #6274
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.
feature-request
This issue requires a new behavior in the product in order be resolved.
Monitor - Metrics
Monitor
Milestone
Related command
Extension name (the extension in question)
monitor metrics alert
Description of issue (in as much detail as possible)
I am trying to create a alert for a Application Insight web test which should have failedLocationCount as trigger. Doing this in the portal gives a resource scope that looks like this:
Dimension in manual create:
Dimension in Az Cli:
"count failedLocationCount > 2"
Scope in Az Cli:
When trying to replicate this with Azure Cli I get the following error:
ERROR: Multiple scopes should be the same resource type.
When only doing one of the scopes I get the following:
{"code":"BadRequest","message":"microsoft.insights/webtests is not a supported platform metric namespace
Or
What would be the correct format for Scope?
The text was updated successfully, but these errors were encountered: