Skip to content

Commit 4b63340

Browse files
authored
[Monitor] breaking changes warning for upcoming major release (#19339)
* breakingchange messages * breaking change warning for autoscale * remove breakingchange warning for get-azautoscalehistory * fix upcoming version
1 parent ae43fa8 commit 4b63340

33 files changed

+72
-0
lines changed

src/Monitor/Monitor/ActivityLogAlert/DisableAzureRmActivityLogAlertCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
using Microsoft.Azure.Management.Monitor.Models;
1919
using System.Collections.Generic;
2020
using System.Management.Automation;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122

2223
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2324
{
2425
/// <summary>
2526
/// Disable an activity log alert
2627
/// </summary>
28+
[CmdletDeprecation(ReplacementCmdletName = "Update-AzActivityLogAlert")]
2729
[Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlert", SupportsShouldProcess = true), OutputType(typeof(PSActivityLogAlertResource))]
2830
public class DisableAzureRmActivityLogAlertCommand : ManagementCmdletBase
2931
{

src/Monitor/Monitor/ActivityLogAlert/EnableAzureRmActivityLogAlertCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
using Microsoft.Azure.Management.Monitor.Models;
1919
using System.Collections.Generic;
2020
using System.Management.Automation;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122

2223
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2324
{
2425
/// <summary>
2526
/// Enable an activity log alert
2627
/// </summary>
28+
[CmdletDeprecation(ReplacementCmdletName = "Update-AzActivityLogAlert")]
2729
[Cmdlet("Enable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlert", SupportsShouldProcess = true), OutputType(typeof(PSActivityLogAlertResource))]
2830
public class EnableAzureRmActivityLogAlertCommand : ManagementCmdletBase
2931
{

src/Monitor/Monitor/ActivityLogAlert/GetAzureRmActivityLogAlertCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
using System.Collections.Generic;
1919
using System.Linq;
2020
using System.Management.Automation;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122

2223
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2324
{
2425
/// <summary>
2526
/// Get an Activity Log Alert
2627
/// </summary>
28+
[GenericBreakingChange("API version bump up to 2020-10-01, output type will be also updated to match the new API version", "4.2.0")]
2729
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlert"), OutputType(typeof(PSActivityLogAlertResource))]
2830
public class GetAzureRmActivityLogAlertCommand : ManagementCmdletBase
2931
{

src/Monitor/Monitor/ActivityLogAlert/NewAzureRmActionGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
using Microsoft.Azure.Management.Monitor.Models;
1717
using System.Management.Automation;
1818
using System.Collections.Generic;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2122
{
2223
/// <summary>
2324
/// Create an Activity Log Alert Action Group
2425
/// </summary>
26+
[GenericBreakingChange("API version bump up to 2020-10-01, input/output type will be also updated to match the new API version", "4.2.0")]
2527
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActionGroup"), OutputType(typeof(Management.Monitor.Management.Models.ActivityLogAlertActionGroup))]
2628
public class NewAzureRmActionGroupCommand : AzureRMCmdlet
2729
{

src/Monitor/Monitor/ActivityLogAlert/NewAzureRmActivityLogAlertConditionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
using Microsoft.Azure.Commands.ResourceManager.Common;
1616
using Microsoft.Azure.Management.Monitor.Models;
1717
using System.Management.Automation;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819

1920
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2021
{
2122
/// <summary>
2223
/// Create an Activity Log Alert condition
2324
/// </summary>
25+
[CmdletDeprecation(ReplacementCmdletName = "New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject")]
2426
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlertCondition"), OutputType(typeof(Management.Monitor.Management.Models.ActivityLogAlertLeafCondition))]
2527
public class NewAzureRmActivityLogAlertConditionCommand : AzureRMCmdlet
2628
{

src/Monitor/Monitor/ActivityLogAlert/RemoveAzureRmActivityLogAlertCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.Insights.OutputClasses;
1818
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2122
{
2223
/// <summary>
2324
/// Remove an activity log alert.
2425
/// </summary>
26+
[GenericBreakingChange("API version bump up to 2020-10-01, output type will be also updated to match the new API version", "4.2.0")]
2527
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlert", SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse))]
2628
public class RemoveAzureRmActivityLogAlertCommand : ManagementCmdletBase
2729
{

src/Monitor/Monitor/ActivityLogAlert/SetAzureRmActivityLogAlertCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
using System.Collections.Generic;
2020
using System.Linq;
2121
using System.Management.Automation;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
namespace Microsoft.Azure.Commands.Insights.ActivityLogAlert
2425
{
2526
/// <summary>
2627
/// Create or update an Activity Log Alert
2728
/// </summary>
29+
[CmdletDeprecation(ReplacementCmdletName = "Update-AzActivityLogAlert")]
2830
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ActivityLogAlert", SupportsShouldProcess = true), OutputType(typeof(PSActivityLogAlertResource))]
2931
public class SetAzureRmActivityLogAlertCommand : ManagementCmdletBase
3032
{

src/Monitor/Monitor/Autoscale/AddAzureRmAutoscaleSettingCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2424
using Microsoft.Azure.Commands.Insights.TransitionalClasses;
2525
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
26+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2627

2728
namespace Microsoft.Azure.Commands.Insights.Autoscale
2829
{
2930
/// <summary>
3031
/// Create or update an Autoscale setting
3132
/// </summary>
33+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAutoscaleSetting")]
34+
[GenericBreakingChange("API version bump up to 2022-10-01, input/output type will be also updated to match the new API version", "4.2.0")]
3235
[Cmdlet("Add", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleSetting", SupportsShouldProcess = true), OutputType(typeof(PSAddAutoscaleSettingOperationResponse))]
3336
public class AddAzureRmAutoscaleSettingCommand : ManagementCmdletBase
3437
{

src/Monitor/Monitor/Autoscale/GetAzureRmAutoscaleSettingCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
using System.Management.Automation;
2121
using Microsoft.Rest.Azure;
2222
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.Insights.Autoscale
2526
{
2627
/// <summary>
2728
/// Get an Alert rule
2829
/// </summary>
30+
[GenericBreakingChange("API version bump up to 2022-10-01, output type will be also updated to match the new API version", "4.2.0")]
2931
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleSetting"), OutputType(typeof(PSAutoscaleSetting))]
3032
public class GetAzureRmAutoscaleSettingCommand : ManagementCmdletBase
3133
{

src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleNotificationCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
using Microsoft.Azure.Management.Monitor.Models;
1616
using System;
1717
using System.Management.Automation;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819

1920
namespace Microsoft.Azure.Commands.Insights.Autoscale
2021
{
2122
/// <summary>
2223
/// Create an AutoscaleNotification
2324
/// </summary>
25+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAutoscaleNotificationObject")]
2426
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleNotification"), OutputType(typeof(Management.Monitor.Management.Models.AutoscaleNotification))]
2527
public class NewAzureRmAutoscaleNotificationCommand : MonitorCmdletBase
2628
{

src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Management.Automation;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Insights.Autoscale
2223
{
2324
/// <summary>
2425
/// Create an autoscale profile
2526
/// </summary>
27+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAutoscaleProfileObject")]
2628
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleProfile"), OutputType(typeof(Management.Monitor.Management.Models.AutoscaleProfile))]
2729
public class NewAzureRmAutoscaleProfileCommand : MonitorCmdletBase
2830
{

src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleRuleCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
using Microsoft.Azure.Management.Monitor.Models;
1717
using System;
1818
using System.Management.Automation;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Insights.Autoscale
2122
{
2223
/// <summary>
2324
/// Create an Autoscale rule
2425
/// </summary>
26+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAutoscaleScaleRuleObject")]
2527
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleRule"), OutputType(typeof(Management.Monitor.Management.Models.ScaleRule))]
2628
public class NewAzureRmAutoscaleRuleCommand : MonitorCmdletBase
2729
{

src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleWebhookCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Management.Automation;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Insights.Autoscale
2223
{
2324
/// <summary>
2425
/// Create an WebhookNotification
2526
/// </summary>
27+
[CmdletDeprecation(ReplacementCmdletName = "New-AzAutoscaleWebhookNotificationObject")]
2628
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleWebhook"), OutputType(typeof(Management.Monitor.Management.Models.WebhookNotification))]
2729
public class NewAzureRmAutoscaleWebhookCommand : MonitorCmdletBase
2830
{

src/Monitor/Monitor/Autoscale/RemoveAzureRmAutoscaleSettingCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
using System.Net;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819

1920
namespace Microsoft.Azure.Commands.Insights.Autoscale
2021
{
2122
/// <summary>
2223
/// Remove an autoscale setting.
2324
/// </summary>
25+
[GenericBreakingChange("API version bump up to 2022-10-01, output type will be also updated to match the new API version", "4.2.0")]
2426
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AutoscaleSetting", SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse))]
2527
public class RemoveAzureRmAutoscaleSettingCommand : ManagementCmdletBase
2628
{

src/Monitor/Monitor/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added breakingchange warning messages for
23+
- `ActivityLogAlert`
24+
- `DiagnosticSetting`
25+
- `ScheduledQueryRule`
26+
- `Autoscale`
27+
2228
## Version 3.0.2
2329
* Added optional parameter `Location` for Adding/Update action group cmdlet
2430

src/Monitor/Monitor/Diagnostics/GetAzureRMSubscriptionDiagnosticSettingCategoryCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
using Microsoft.Azure.Commands.Insights.OutputClasses;
1919
using Microsoft.Azure.Management.Monitor;
2020
using Microsoft.Azure.Management.Monitor.Models;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122

2223
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2324
{
25+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzEventCategory")]
2426
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SubscriptionDiagnosticSettingCategory"), OutputType(typeof(PSSubscriptionDiagnosticSettingCategory))]
2527
public class GetAzureRmSubscriptionDiagnosticSettingCategoryCommand : ManagementCmdletBase
2628
{

src/Monitor/Monitor/Diagnostics/GetAzureRmDiagnosticSettingCategoryCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
using Microsoft.Azure.Commands.Insights.OutputClasses;
1818
using Microsoft.Azure.Management.Monitor;
1919
using Microsoft.WindowsAzure.Commands.Utilities.Common;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2223
{
24+
[GenericBreakingChange("API version bump up to 2021-05-01-preview, output type will be also updated to match the new API version", "4.2.0")]
2325
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSettingCategory"), OutputType(typeof(PSDiagnosticSettingCategory))]
2426
public class GetAzureRmDiagnosticSettingCategoryCommand : ManagementCmdletBase
2527
{

src/Monitor/Monitor/Diagnostics/GetAzureRmDiagnosticSettingCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
using System.Collections.Generic;
2020
using System.Linq;
2121
using System.Management.Automation;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2425
{
2526
/// <summary>
2627
/// Gets the logs and metrics for the resource.
2728
/// </summary>
29+
[GenericBreakingChange("API version bump up to 2021-05-01-preview, output type will be also updated to match the new API version", "4.2.0")]
2830
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSetting", DefaultParameterSetName = ResourceIdParameterSet), OutputType(typeof(PSServiceDiagnosticSettings))]
2931
public class GetAzureRmDiagnosticSettingCommand : DiagnosticSettingCommandBase
3032
{

src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticDetailSettingCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
using Microsoft.Azure.Management.Monitor;
2121
using Microsoft.Azure.Management.Monitor.Models;
2222
using Microsoft.WindowsAzure.Commands.Utilities.Common;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2526
{
27+
[CmdletDeprecation(ReplacementCmdletName = "New-AzDiagnosticSettingLogSettingsObject")]
28+
[CmdletDeprecation(ReplacementCmdletName = "New-AzDiagnosticSettingMetricSettingsObject")]
2629
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticDetailSetting", DefaultParameterSetName = MetricSettingParameterSet), OutputType(typeof(PSDiagnosticDetailSettings))]
2730
public class NewAzureRmDiagnosticDetailSettingCommand : ManagementCmdletBase
2831
{

src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticSettingCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
using Microsoft.Azure.Commands.Insights.OutputClasses;
2020
using Microsoft.Azure.Management.Monitor.Models;
2121
using Microsoft.WindowsAzure.Commands.Utilities.Common;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2425
{
26+
[GenericBreakingChange("API version bump up to 2021-05-01-preview, input/output type will be also updated to match the new API version", "4.2.0")]
2527
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSetting", DefaultParameterSetName = ResourceIdParameterSet), OutputType(typeof(PSServiceDiagnosticSettings))]
2628
public class NewAzureRmDiagnosticSettingCommand : DiagnosticSettingCommandBase
2729
{

src/Monitor/Monitor/Diagnostics/RemoveAzureRmDiagnosticSettingCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
using System.Management.Automation;
2525
using System.Net;
2626
using System.Threading;
27+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2728

2829
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2930
{
3031
/// <summary>
3132
/// Removes a named diagnostic setting or disables the setting called 'service' if the name argument is not present or if is 'service'.
3233
/// </summary>
34+
[CmdletDeprecation(ReplacementCmdletName = "New-AzDiagnosticSettingLogSettingsObject")]
35+
[GenericBreakingChange("API version bump up to 2021-05-01-preview, output type will be also updated to match the new API version", "4.2.0")]
3336
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSetting", DefaultParameterSetName = ResourceIdParameterSet, SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse))]
3437
public class RemoveAzureRmDiagnosticSettingCommand : DiagnosticSettingCommandBase
3538
{

src/Monitor/Monitor/Diagnostics/SetAzureRmDiagnosticSettingCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
using Microsoft.Azure.Management.Monitor;
2424
using Microsoft.Azure.Management.Monitor.Models;
2525
using Microsoft.WindowsAzure.Commands.Utilities.Common;
26+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2627

2728
namespace Microsoft.Azure.Commands.Insights.Diagnostics
2829
{
2930
/// <summary>
3031
/// Get the list of events for at a subscription level.
3132
/// </summary>
33+
[CmdletDeprecation()]
3234
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSetting", SupportsShouldProcess = true, DefaultParameterSetName = SetAzureRmDiagnosticSettingOldParamGroup), OutputType(typeof(PSServiceDiagnosticSettings))]
3335
public class SetAzureRmDiagnosticSettingCommand : ManagementCmdletBase
3436
{

src/Monitor/Monitor/ScheduledQueryRules/GetScheduledQueryRuleCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2222
using Microsoft.WindowsAzure.Commands.Utilities.Common;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.Insights.ScheduledQueryRules
2526
{
2627
/// <summary>
2728
/// Get all ScheduledQueryRule objects in a subscription, resource group or by rule name
2829
/// </summary>
30+
[GenericBreakingChange("API version bump up to 2021-08-01, output type will be also updated to match the new API version", "4.2.0")]
2931
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ScheduledQueryRule", DefaultParameterSetName = BySubscriptionOrResourceGroup), OutputType(typeof(PSScheduledQueryRuleResource))]
3032
public class GetScheduledQueryRuleCommand : ManagementCmdletBase
3133
{

src/Monitor/Monitor/ScheduledQueryRules/NewScheduledQueryRuleAlertingActionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Collections.Generic;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Insights.ScheduledQueryRules
2223
{
2324
/// <summary>
2425
/// Create a ScheduledQueryRule Source object
2526
/// </summary>
27+
[CmdletDeprecation()]
2628
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ScheduledQueryRuleAlertingAction"), OutputType(typeof(PSScheduledQueryRuleAlertingAction))]
2729
public class NewScheduledQueryRuleAlertingActionCommand : MonitorCmdletBase
2830
{

src/Monitor/Monitor/ScheduledQueryRules/NewScheduledQueryRuleAznsActionGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
using Microsoft.Azure.Management.Monitor.Models;
1717
using System.Collections.Generic;
1818
using System.Management.Automation;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Insights.ScheduledQueryRules
2122
{
2223
/// <summary>
2324
/// Create a ScheduledQueryRule Source object
2425
/// </summary>
26+
[CmdletDeprecation()]
2527
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ScheduledQueryRuleAznsActionGroup"), OutputType(typeof(PSScheduledQueryRuleAznsAction))]
2628
public class NewScheduledQueryRuleAznsActionGroupCommand : MonitorCmdletBase
2729
{

src/Monitor/Monitor/ScheduledQueryRules/NewScheduledQueryRuleCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
using System.Management.Automation;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.Insights.ScheduledQueryRules
2526
{
2627
/// <summary>
2728
/// Create a ScheduledQueryRule Source object
2829
/// </summary>
30+
[GenericBreakingChange("API version bump up to 2021-08-01, input/output type will be also updated to match the new API version", "4.2.0")]
2931
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ScheduledQueryRule", SupportsShouldProcess = true), OutputType(typeof(PSScheduledQueryRuleResource))]
3032
public class NewScheduledQueryRuleCommand : ManagementCmdletBase
3133
{

src/Monitor/Monitor/ScheduledQueryRules/NewScheduledQueryRuleLogMetricTriggerCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Collections.Generic;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Insights.ScheduledQueryRules
2223
{
2324
/// <summary>
2425
/// Create a ScheduledQueryRule Metric Trigger object
2526
/// </summary>
27+
[CmdletDeprecation()]
2628
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ScheduledQueryRuleLogMetricTrigger"), OutputType(typeof(PSScheduledQueryRuleLogMetricTrigger))]
2729
public class NewScheduledQueryRuleLogMetricTriggerCommand : MonitorCmdletBase
2830
{

0 commit comments

Comments
 (0)