Skip to content

Commit 9469e12

Browse files
VeryEarlydingmeng-xueBethanyZhou
authored
[ApplicationInsights] added breaking change warnings (#17672)
* added breaking change warnings * add missing reference * refine breaking change messages * fix api version in breaking change warning Co-authored-by: Dingmeng Xue <dixue@microsoft.com> Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>
1 parent 4ef6279 commit 9469e12

18 files changed

+58
-0
lines changed

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/GetApplicationInsights.cs

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

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
2122
{
23+
[GenericBreakingChange("API version bump up to 2020-02-02, output type will be also updated to match the new API version", "2.0.0")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsights", DefaultParameterSetName = ResourceGroupParameterSet), OutputType(typeof(PSApplicationInsightsComponent))]
2325
public class GetApplicationInsightsCommand : ApplicationInsightsBaseCmdlet
2426
{

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/GetApplicationInsightsApiKey.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
using Microsoft.Azure.Commands.ApplicationInsights.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
2122
{
23+
[GenericBreakingChange("Output type will be updated to match API 2015-05-01", "2.0.0")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsApiKey", DefaultParameterSetName = ComponentNameParameterSet), OutputType(typeof(PSApiKey))]
2325
public class GetApplicationInsightsApiKeyCommand : ApplicationInsightsBaseCmdlet
2426
{
@@ -28,6 +30,7 @@ public class GetApplicationInsightsApiKeyCommand : ApplicationInsightsBaseCmdlet
2830
ParameterSetName = ComponentObjectParameterSet,
2931
ValueFromPipeline = true,
3032
HelpMessage = "Application Insights Component Object.")]
33+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3134
[ValidateNotNull]
3235
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3336

@@ -37,6 +40,7 @@ public class GetApplicationInsightsApiKeyCommand : ApplicationInsightsBaseCmdlet
3740
ParameterSetName = ResourceIdParameterSet,
3841
ValueFromPipelineByPropertyName = true,
3942
HelpMessage = "Application Insights Component Resource Id.")]
43+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4044
[ValidateNotNullOrEmpty]
4145
public string ResourceId { get; set; }
4246

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/GetApplicationInsightsContinuousExport.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
using Microsoft.Azure.Commands.ApplicationInsights.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
2122
{
23+
[GenericBreakingChange("Output type will be updated to match API 2015-05-01", "2.0.0")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsContinuousExport", DefaultParameterSetName = ComponentNameParameterSet), OutputType(typeof(PSExportConfiguration))]
2325
public class GetApplicationInsightsContinuousExportCommand : ApplicationInsightsBaseCmdlet
2426
{
@@ -28,6 +30,7 @@ public class GetApplicationInsightsContinuousExportCommand : ApplicationInsights
2830
ParameterSetName = ComponentObjectParameterSet,
2931
ValueFromPipeline = true,
3032
HelpMessage = "Application Insights Component Object.")]
33+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3134
[ValidateNotNull]
3235
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3336

@@ -37,6 +40,7 @@ public class GetApplicationInsightsContinuousExportCommand : ApplicationInsights
3740
ParameterSetName = ResourceIdParameterSet,
3841
ValueFromPipelineByPropertyName = true,
3942
HelpMessage = "Application Insights Component Resource Id.")]
43+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4044
[ValidateNotNullOrEmpty]
4145
public string ResourceId { get; set; }
4246

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/GetApplicationInsightsLinkedStorageAccount.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
using Microsoft.Azure.Management.ApplicationInsights.Management.Models;
1818
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1919
using Microsoft.Rest.Azure;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2122
using System.Management.Automation;
2223

2324
namespace Microsoft.Azure.Commands.ApplicationInsights.ApplicationInsights
2425
{
26+
[GenericBreakingChange("Output type will be updated to match API 2020-03-01-preview", "2.0.0")]
2527
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsLinkedStorageAccount", DefaultParameterSetName = ByResourceNameParameterSet), OutputType(typeof(PSComponentLinkedStorageAccounts))]
2628
public class GetApplicationInsightsLinkedStorageAccount : ApplicationInsightsBaseCmdlet
2729
{
@@ -51,13 +53,15 @@ public class GetApplicationInsightsLinkedStorageAccount : ApplicationInsightsBas
5153
Mandatory = true,
5254
ValueFromPipeline = true,
5355
HelpMessage = "PSApplicationInsightsComponent")]
56+
[CmdletParameterBreakingChange("InputObject", ChangeDescription = "Parameter InputObject will be removed in upcoming Az.ApplicationInsights 2.0.0")]
5457
[ValidateNotNullOrEmpty]
5558
public PSApplicationInsightsComponent InputObject { get; set; }
5659

5760
[Parameter(
5861
ParameterSetName = ByResourceIdParameterSet,
5962
Mandatory = true,
6063
HelpMessage = "Component ResourceId")]
64+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
6165
[ValidateNotNullOrEmpty]
6266
public string ResourceId { get; set; }
6367

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/NewApplicationInsights.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.ApplicationInsights.Management.Models;
1919
using Microsoft.Rest.Azure;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021
using System.Collections;
2122
using System.Management.Automation;
2223

2324
namespace Microsoft.Azure.Commands.ApplicationInsights
2425
{
26+
[GenericBreakingChange("API version bump up to 2020-02-02, output type will be also updated to match the new API version", "2.0.0")]
2527
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsights", SupportsShouldProcess = true), OutputType(typeof(PSApplicationInsightsComponent))]
2628
public class NewAzureApplicationInsights : ApplicationInsightsBaseCmdlet
2729
{

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/NewApplicationInsightsApiKey.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.ApplicationInsights.Management.Models;
1818
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System;
2021
using System.Management.Automation;
2122

2223
namespace Microsoft.Azure.Commands.ApplicationInsights
2324
{
25+
[GenericBreakingChange("Output type will be updated to match API 2015-05-01", "2.0.0")]
2426
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsApiKey", DefaultParameterSetName = ComponentNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSApiKey))]
2527
public class NewAzureApplicationInsightsApiKeyCommand : ApplicationInsightsBaseCmdlet
2628
{
@@ -31,6 +33,7 @@ public class NewAzureApplicationInsightsApiKeyCommand : ApplicationInsightsBaseC
3133
ValueFromPipeline = true,
3234
HelpMessage = "Application Insights Component Object.")]
3335
[ValidateNotNull]
36+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3437
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3538

3639
[Parameter(
@@ -39,6 +42,7 @@ public class NewAzureApplicationInsightsApiKeyCommand : ApplicationInsightsBaseC
3942
ParameterSetName = ResourceIdParameterSet,
4043
ValueFromPipelineByPropertyName = true,
4144
HelpMessage = "Application Insights Component Resource Id.")]
45+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4246
[ValidateNotNullOrEmpty]
4347
public string ResourceId { get; set; }
4448

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/NewApplicationInsightsContinuousExport.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.ApplicationInsights.Management.Models;
1818
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Linq;
2021
using System.Management.Automation;
2122

2223
namespace Microsoft.Azure.Commands.ApplicationInsights
2324
{
25+
[GenericBreakingChange("Output type will be updated to match API 2015-05-01", "2.0.0")]
2426
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsContinuousExport", DefaultParameterSetName = ComponentNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSExportConfiguration))]
2527
public class NewAzureApplicationInsightsContinuousExportCommand : ApplicationInsightsBaseCmdlet
2628
{
@@ -30,6 +32,7 @@ public class NewAzureApplicationInsightsContinuousExportCommand : ApplicationIns
3032
ParameterSetName = ComponentObjectParameterSet,
3133
ValueFromPipeline = true,
3234
HelpMessage = "Application Insights Component Object.")]
35+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3336
[ValidateNotNull]
3437
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3538

@@ -39,6 +42,7 @@ public class NewAzureApplicationInsightsContinuousExportCommand : ApplicationIns
3942
ParameterSetName = ResourceIdParameterSet,
4043
ValueFromPipelineByPropertyName = true,
4144
HelpMessage = "Application Insights Component Resource Id.")]
45+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4246
[ValidateNotNullOrEmpty]
4347
public string ResourceId { get; set; }
4448

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/NewApplicationInsightsLinkedStorageAccount.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1919
using Microsoft.Rest;
2020
using Microsoft.Rest.Azure;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223
using System.Management.Automation;
2324

2425
namespace Microsoft.Azure.Commands.ApplicationInsights.ApplicationInsights
2526
{
27+
[GenericBreakingChange("Output type will be updated to match API 2020-03-01-Preview", "2.0.0")]
2628
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsLinkedStorageAccount", DefaultParameterSetName = ByResourceNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSComponentLinkedStorageAccounts))]
2729
public class NewApplicationInsightsLinkedStorageAccount : ApplicationInsightsBaseCmdlet
2830
{
@@ -52,13 +54,15 @@ public class NewApplicationInsightsLinkedStorageAccount : ApplicationInsightsBas
5254
Mandatory = true,
5355
ValueFromPipeline = true,
5456
HelpMessage = "PSApplicationInsightsComponent")]
57+
[CmdletParameterBreakingChange("InputObject", ChangeDescription = "Parameter InputObject will be removed in upcoming Az.ApplicationInsights 2.0.0")]
5558
[ValidateNotNullOrEmpty]
5659
public PSApplicationInsightsComponent InputObject { get; set; }
5760

5861
[Parameter(
5962
ParameterSetName = ByResourceIdParameterSet,
6063
Mandatory = true,
6164
HelpMessage = "Component ResourceId")]
65+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
6266
[ValidateNotNullOrEmpty]
6367
public string ResourceId { get; set; }
6468

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/RemoveApplicationInsights.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.Commands.ApplicationInsights.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
@@ -29,6 +30,7 @@ public class RemoveApplicationInsightsComponent : ApplicationInsightsBaseCmdlet
2930
ParameterSetName = ComponentObjectParameterSet,
3031
ValueFromPipeline = true,
3132
HelpMessage = "Application Insights Component Object.")]
33+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Type of ApplicationInsightsComponent will be updated to match API 2020-02-02 in Az.ApplicationInsights 2.0.0")]
3234
[ValidateNotNull]
3335
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3436

@@ -38,6 +40,7 @@ public class RemoveApplicationInsightsComponent : ApplicationInsightsBaseCmdlet
3840
ParameterSetName = ResourceIdParameterSet,
3941
ValueFromPipelineByPropertyName = true,
4042
HelpMessage = "Application Insights Component Resource Id.")]
43+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter 'ResourceId' will be removed and please use it in such way: '$resourceid | Remove-AzApplicationInsights' in upcoming Az.ApplicationInsights 2.0.0")]
4144
[ValidateNotNullOrEmpty]
4245
public string ResourceId { get; set; }
4346

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/RemoveApplicationInsightsApiKey.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.Commands.ApplicationInsights.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
@@ -29,6 +30,7 @@ public class RemoveApplicationComponentInsightsApiKey : ApplicationInsightsBaseC
2930
ParameterSetName = ComponentObjectParameterSet,
3031
ValueFromPipeline = true,
3132
HelpMessage = "Application Insights Component Object.")]
33+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3234
[ValidateNotNull]
3335
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3436

@@ -38,6 +40,7 @@ public class RemoveApplicationComponentInsightsApiKey : ApplicationInsightsBaseC
3840
ParameterSetName = ResourceIdParameterSet,
3941
ValueFromPipelineByPropertyName = true,
4042
HelpMessage = "Application Insights Component Resource Id.")]
43+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4144
[ValidateNotNullOrEmpty]
4245
public string ResourceId { get; set; }
4346

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/RemoveApplicationInsightsContinuousExport.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.Commands.ApplicationInsights.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

2021
namespace Microsoft.Azure.Commands.ApplicationInsights
@@ -29,6 +30,7 @@ public class RemoveApplicationInsightsComponentContinuousExport : ApplicationIns
2930
ParameterSetName = ComponentObjectParameterSet,
3031
ValueFromPipeline = true,
3132
HelpMessage = "Application Insights Component Object.")]
33+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3234
[ValidateNotNull]
3335
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3436

@@ -38,6 +40,7 @@ public class RemoveApplicationInsightsComponentContinuousExport : ApplicationIns
3840
ParameterSetName = ResourceIdParameterSet,
3941
ValueFromPipelineByPropertyName = true,
4042
HelpMessage = "Application Insights Component Resource Id.")]
43+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4144
[ValidateNotNullOrEmpty]
4245
public string ResourceId { get; set; }
4346

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/RemoveApplicationInsightsLinkedStorageAccount.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1818
using Microsoft.Rest.Azure;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2021
using System.Management.Automation;
2122

@@ -50,13 +51,15 @@ public class RemoveApplicationInsightsLinkedStorageAccount : ApplicationInsights
5051
Mandatory = true,
5152
ValueFromPipeline = true,
5253
HelpMessage = "PSApplicationInsightsComponent")]
54+
[CmdletParameterBreakingChange("InputObject", ChangeDescription = "Parameter InputObject will be removed in upcoming Az.ApplicationInsights 2.0.0")]
5355
[ValidateNotNullOrEmpty]
5456
public PSApplicationInsightsComponent InputObject { get; set; }
5557

5658
[Parameter(
5759
ParameterSetName = ByResourceIdParameterSet,
5860
Mandatory = true,
5961
HelpMessage = "Component ResourceId")]
62+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
6063
[ValidateNotNullOrEmpty]
6164
public string ResourceId { get; set; }
6265

src/ApplicationInsights/ApplicationInsights/ApplicationInsights/SetApplicationInsightsContinuousExport.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.ApplicationInsights.Management.Models;
1818
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Management.Automation;
2021

2122
namespace Microsoft.Azure.Commands.ApplicationInsights
2223
{
24+
[GenericBreakingChange("Output type will be updated to match API 2015-05-01", "2.0.0")]
2325
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationInsightsContinuousExport", DefaultParameterSetName = ComponentNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSExportConfiguration))]
2426
public class SetApplicationInsightsContinuousExportCommand : ApplicationInsightsBaseCmdlet
2527
{
@@ -29,6 +31,7 @@ public class SetApplicationInsightsContinuousExportCommand : ApplicationInsights
2931
ParameterSetName = ComponentObjectParameterSet,
3032
ValueFromPipeline = true,
3133
HelpMessage = "Application Insights Component Object.")]
34+
[CmdletParameterBreakingChange("ApplicationInsightsComponent", ChangeDescription = "Parameter ApplicationInsightsComponent will be removed in upcoming Az.ApplicationInsights 2.0.0")]
3235
[ValidateNotNull]
3336
public PSApplicationInsightsComponent ApplicationInsightsComponent { get; set; }
3437

@@ -38,6 +41,7 @@ public class SetApplicationInsightsContinuousExportCommand : ApplicationInsights
3841
ParameterSetName = ResourceIdParameterSet,
3942
ValueFromPipelineByPropertyName = true,
4043
HelpMessage = "Application Insights Component Resource Id.")]
44+
[CmdletParameterBreakingChange("ResourceId", ChangeDescription = "Parameter ResourceId will be removed in upcoming Az.ApplicationInsights 2.0.0")]
4145
[ValidateNotNullOrEmpty]
4246
public string ResourceId { get; set; }
4347

0 commit comments

Comments
 (0)