Skip to content

Commit f834d4a

Browse files
authored
[Monitor] [data collection rule] breaking change message for autorest generation (#22638)
* breaking change for monitor data collection rule * changelog of breaking change for monitor data collection rule * update changelog * change to Parameter set ParameterSet change to Parameter set
1 parent 41ed04d commit f834d4a

6 files changed

+6
-0
lines changed

src/Monitor/Monitor/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Fixed `New-AzMetricAlertRuleV2DimensionSelection` to have "exclude" or "include" values only [#22256]
2323
* Fixed `Add-AzMetriAlertRuleV2` and `Get-AzMetricAlertRuleV2` to support web tests criteria [#22350]
2424
* Added parameter `Dimension` for `Get-AzMetric` to easily filter metrics by dimensions [#22320]
25+
* Added breaking change for Data Collection Rule
2526

2627
## Version 4.5.0
2728
* Added cmdlets for monitor workspace:

src/Monitor/Monitor/DataCollectionRules/GetAzureRmDataCollectionRuleCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace Microsoft.Azure.Commands.Insights.DataCollectionRules
2828
/// <summary>
2929
/// Get a Data Collection Rule
3030
/// </summary>
31+
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set ByResourceId will be deprecated", "11.0.0", "5.0.0", "2023/11/15")]
3132
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataCollectionRule", DefaultParameterSetName = BySubscription)]
3233
[OutputType(typeof(PSDataCollectionRuleResource))]
3334
public class GetAzureRmDataCollectionRuleCommand : ManagementCmdletBase

src/Monitor/Monitor/DataCollectionRules/NewAzureRmDataCollectionRuleCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace Microsoft.Azure.Commands.Insights.DataCollectionRules
2929
/// <summary>
3030
/// Create a Data Collection Rule
3131
/// </summary>
32+
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter RuleFile will be replaced by JsonFilePath.", "11.0.0", "5.0.0", "2023/11/15")]
3233
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataCollectionRule", DefaultParameterSetName = ByFile, SupportsShouldProcess = true)]
3334
[OutputType(typeof(PSDataCollectionRuleResource))]
3435
public class NewAzureRmDataCollectionRuleCommand : ManagementCmdletBase

src/Monitor/Monitor/DataCollectionRules/RemoveAzureRmDataCollectionRuleAssociationCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace Microsoft.Azure.Commands.Insights.DataCollectionRules
2424
/// <summary>
2525
/// Delete a Data Collection Rule Association
2626
/// </summary>
27+
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set ByResourceId will be deprecated", "11.0.0", "5.0.0", "2023/11/15")]
2728
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataCollectionRuleAssociation", DefaultParameterSetName = ByName, SupportsShouldProcess = true)]
2829
[OutputType(typeof(bool))]
2930
public class RemoveAzureRmDataCollectionRuleAssociationCommand : ManagementCmdletBase

src/Monitor/Monitor/DataCollectionRules/RemoveAzureRmDataCollectionRuleCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace Microsoft.Azure.Commands.Insights.DataCollectionRules
2424
/// <summary>
2525
/// Delete a Data Collection Rule
2626
/// </summary>
27+
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set ByResourceId will be deprecated", "11.0.0", "5.0.0", "2023/11/15")]
2728
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataCollectionRule", DefaultParameterSetName = ByName, SupportsShouldProcess = true)]
2829
[OutputType(typeof(bool))]
2930
public class RemoveAzureRmDataCollectionRuleCommand : ManagementCmdletBase

src/Monitor/Monitor/DataCollectionRules/SetAzureRmDataCollectionRuleCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Microsoft.Azure.Commands.Insights.DataCollectionRules
3030
/// <summary>
3131
/// Update a Data Collection Rule
3232
/// </summary>
33+
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChangeWithVersion("Parameter set ByResourceId will be deprecated", "11.0.0", "5.0.0", "2023/11/15", NewWay = "Update")]
3334
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataCollectionRule", DefaultParameterSetName = ByName, SupportsShouldProcess = true)]
3435
[OutputType(typeof(PSDataCollectionRuleResource))]
3536
public class SetAzureRmDataCollectionRuleCommand : ManagementCmdletBase

0 commit comments

Comments
 (0)