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:
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
ERROR: (BadRequest) Couldn't find a metric named failedLocationCount. Make sure the name is correct. Activity ID: <id>
Code: BadRequest
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?