diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index c21b5bb43077..2c27c1e447d2 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -21,6 +21,7 @@ * Fixed description of the Get-AzLog cmdlet. * A new parameter called ActionGroupId was added to `New-AzMetricAlertRuleV2` command. - The user can provide either ActionGroupId(string) or ActionGorup(ActivityLogAlertActionGroup). +* Fixed output value for Get-AzMetricDefinition ## Version 1.5.0 * Update references in .psd1 to use relative path diff --git a/src/Monitor/Monitor/OutputClasses/PSMetricDefinition.cs b/src/Monitor/Monitor/OutputClasses/PSMetricDefinition.cs index b155df423e02..9ae16dc5dfba 100644 --- a/src/Monitor/Monitor/OutputClasses/PSMetricDefinition.cs +++ b/src/Monitor/Monitor/OutputClasses/PSMetricDefinition.cs @@ -26,7 +26,7 @@ public class PSMetricDefinition : MetricDefinition /// /// The MetricDefinition public PSMetricDefinition(MetricDefinition metricDefinition) - : base(name: new PSLocalizableString(metricDefinition.Name), metricAvailabilities: new PSMetricAvailabilityCollection(metricDefinition.MetricAvailabilities), primaryAggregationType: metricDefinition.PrimaryAggregationType, resourceId: metricDefinition.ResourceId, unit: metricDefinition.Unit, id: metricDefinition.Id) + : base(name: new PSLocalizableString(metricDefinition.Name), metricAvailabilities: new PSMetricAvailabilityCollection(metricDefinition.MetricAvailabilities), primaryAggregationType: metricDefinition.PrimaryAggregationType, resourceId: metricDefinition.ResourceId, unit: metricDefinition.Unit, id: metricDefinition.Id, dimensions: metricDefinition.Dimensions, supportedAggregationTypes: metricDefinition.SupportedAggregationTypes) { } }