@Swapnil Panchal Thank you for your query!!!
Azure Monitor now supports monitoring multiple resources (of the same type) with a single metric alert rule, for resources that exist in the same Azure region. This feature is currently only supported in Azure public cloud and only for Virtual machines, SQL server databases, SQL server elastic pools and Databox edge devices. Also, this feature is only available for platform metrics, and isn't supported for custom metrics.
You can find more information here.
Metric alerts support alerting on multi-dimensional metrics as well as support defining multiple conditions (up to 5 conditions per alert rule).
Consider the following constraints when using dimensions in an alert rule that contains multiple conditions:
- You can only select one value per dimension within each condition.
- You can't use the option to "Select all current and future values" (Select *).
- When metrics that are configured in different conditions support the same dimension, then a configured dimension value must be explicitly set in the same way for all of those metrics (in the relevant conditions). For example:
Consider a metric alert rule that is defined on a storage account and monitors two conditions:
Total Transactions > 5
Average SuccessE2ELatency > 250 ms
- I'd like to update the first condition, and only monitor transactions where the ApiName dimension equals "GetBlob"
- Because both the Transactions and SuccessE2ELatency metrics support an ApiName dimension, I'll need to update both conditions, and have both of them specify the ApiName dimension with a "GetBlob" value.
Same has been mentioned here as well.
You might be getting error because of above reasons as well.
Hope it helps!!!
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics