Skip to content

Commit 71c6293

Browse files
authored
[Monitor] Remove Metric breaking change message (#24753)
* withdraw the metric management plane upgrade * remove Metric breaking change messages
1 parent be28d87 commit 71c6293

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

src/Monitor/Monitor/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
## Upcoming Release
2222
* `-Location` parameter was removed from `Update-AzActionGroup` and `Update-AzDataCollectionRule` because they do not support updating the location.
2323
* Introduced secrets detection feature to safeguard sensitive data.
24+
* Removed breaking change warning messages for Metric Management Plane
25+
* Get-AzMetric
26+
* Get-AzMetricDefinition
27+
* New-AzMetricFilter
2428

2529
## Version 5.1.1
2630
* Added breaking change warning messages for Metric Management Plane

src/Monitor/Monitor/Metrics/GetAzureRmMetricCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ namespace Microsoft.Azure.Commands.Insights.Metrics
3131
/// Get the list of metric definition for a resource.
3232
/// </summary>
3333
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Metric", DefaultParameterSetName = GetAzureRmAMetricParamGroup), OutputType(typeof(PSMetric))]
34-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set GetWithDefaultParameters will be removed", "12.0.0", "6.0.0", "2024/05/21")]
35-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set GetWithFullParameters will be changed to List2 and be 'Default' set", "12.0.0", "6.0.0", "2024/05/21")]
36-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletOutputBreakingChangeWithVersion(typeof(PSMetric), "12.0.0", "6.0.0", "2024/05/21", ReplacementCmdletOutputTypeName = "Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IResponse", DeprecatedOutputProperties = new[] { "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetric" } , NewOutputProperties = new[] { "Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.ISubscriptionScopeMetricDefinition"})]
3734
public class GetAzureRmMetricCommand : ManagementCmdletBase
3835
{
3936
internal const string GetAzureRmAMetricParamGroup = "GetWithDefaultParameters";
@@ -55,7 +52,6 @@ public class GetAzureRmMetricCommand : ManagementCmdletBase
5552
/// <summary>
5653
/// Gets or sets the timegrain parameter of the cmdlet
5754
/// </summary>
58-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletParameterBreakingChangeWithVersion("The interval (i.e.timegrain) of the query in ISO 8601 duration format", "12.0.0", "6.0.0", "2024/05/21")]
5955
[Parameter(ParameterSetName = GetAzureRmAMetricParamGroup, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The time grain of the query.")]
6056
[Parameter(ParameterSetName = GetAzureRmAMetricFullParamGroup, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The time grain of the query.")]
6157
[ValidateNotNullOrEmpty]
@@ -116,7 +112,6 @@ public class GetAzureRmMetricCommand : ManagementCmdletBase
116112
/// <summary>
117113
/// Gets or sets the dimension parameter of the cmdlet
118114
/// </summary>]
119-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletParameterBreakingChangeWithVersion("Parameter Dimension will be removed", "12.0.0", "6.0.0", "2024/05/21")]
120115
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The metric dimensions to query metrics for")]
121116
public string[] Dimension { get; set; }
122117

@@ -132,7 +127,6 @@ public class GetAzureRmMetricCommand : ManagementCmdletBase
132127
/// <summary>
133128
/// Gets or sets the detailedoutput parameter of the cmdlet
134129
/// </summary>
135-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletParameterBreakingChangeWithVersion("Parameter DetailedOutput will be removed", "12.0.0", "6.0.0", "2024/05/21")]
136130
[Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "Return object with all the details of the records (the default is to return only some attributes, i.e. no detail)")]
137131
public SwitchParameter DetailedOutput { get; set; }
138132

src/Monitor/Monitor/Metrics/GetAzureRmMetricDefinitionCommand.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace Microsoft.Azure.Commands.Insights.Metrics
2323
/// Get the list of metric definitions for a resource.
2424
/// </summary>
2525
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "MetricDefinition"), OutputType(typeof(PSMetricDefinition))]
26-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletOutputBreakingChangeWithVersion(typeof(PSMetricDefinition), "12.0.0", "6.0.0", "2024/05/21", ReplacementCmdletOutputTypeName = "Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricDefinition")]
2726
public class GetAzureRmMetricDefinitionCommand : ManagementCmdletBase
2827
{
2928
/// <summary>
@@ -36,7 +35,6 @@ public class GetAzureRmMetricDefinitionCommand : ManagementCmdletBase
3635
/// <summary>
3736
/// Gets or sets the metricnames parameter of the cmdlet
3837
/// </summary>
39-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletParameterBreakingChangeWithVersion("Parameter MetricName will be removed", "12.0.0", "6.0.0", "2024/05/21")]
4038
[Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "The metric names of the query")]
4139
[ValidateNotNullOrEmpty]
4240
public string[] MetricName { get; set; }
@@ -50,7 +48,6 @@ public class GetAzureRmMetricDefinitionCommand : ManagementCmdletBase
5048
/// <summary>
5149
/// Gets or sets the detailedoutput parameter of the cmdlet
5250
/// </summary>
53-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.CmdletParameterBreakingChangeWithVersion("Parameter DetailedOutput will be removed", "12.0.0", "6.0.0", "2024/05/21")]
5451
[Parameter(HelpMessage = "Return object with all the details of the records (the default is to return only some attributes, i.e. no detail)")]
5552
public SwitchParameter DetailedOutput { get; set; }
5653

src/Monitor/Monitor/Metrics/NewAzureRmMetricFilterCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Commands.Insights.Metrics
1818
/// <summary>
1919
/// Create a metric dimension filter
2020
/// </summary>
21-
[Microsoft.WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter DefaultProfile will be removed", "12.0.0", "6.0.0", "2024/05/21")]
2221
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "MetricFilter"), OutputType(typeof(string))]
2322
public class NewAzureRmMetricFilterCommand : MonitorCmdletBase
2423
{

0 commit comments

Comments
 (0)