Closed BSmeeton closed 1 year ago
@VeryEarly could you take a look at this?
Hi @BSmeeton ,
Thanks for reporting, fixed New-AzMetricAlertRuleV2DimensionSelection
to allow exclude or include. Will be available on 2023-09-05 PST.
However for your case, you might want to create two conditions, one with dimension to include the other with dimension to exclude (Because for a given condition, one dimension name can only be related to one dimension).
Thank you for addressing the issue 👍🏻
Description
When trying to create dimensions to use in the creation of metric alerts (New-AzMetricAlertRuleV2Criteria) it appears that the -ValuesToInclude parameter is mandatory. This is causing issues when wanting to use the ValuesToExclude parameter as the two conflict and cannot be used in parallel for the same dimension.
Issue script & Debug output
Environment data
Module versions
Error output