Skip to content

Commit 46e6be6

Browse files
author
Zhenyu Zhou
committed
Call out breaking change and remove
Remove outdated breaking change Add suppression
1 parent 78b2f9e commit 46e6be6

11 files changed

+19
-6
lines changed

src/HDInsight/HDInsight/Az.HDInsight.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ CmdletsToExport = 'Get-AzHDInsightJob', 'New-AzHDInsightSqoopJobDefinition',
107107

108108
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
109109
AliasesToExport = 'Enable-AzHDInsightOMS', 'Disable-AzHDInsightOMS',
110-
'Add-AzHDInsightConfigValues', 'Get-AzHDInsightOMS',
111-
'Get-AzHDInsightProperties'
110+
'Get-AzHDInsightOMS'
112111

113112
# DSC resources to export from this module
114113
# DscResourcesToExport = @()

src/HDInsight/HDInsight/ManagementCommands/AddAzureHDInsightConfigValuesCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222

2323
namespace Microsoft.Azure.Commands.HDInsight
2424
{
25-
[GenericBreakingChange("Add-AzHDInsightConfigValues alias will be removed in an upcoming breaking change release", "2.0.0")]
2625
[Cmdlet("Add", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightConfigValue"),OutputType(typeof(AzureHDInsightConfig))]
27-
[Alias("Add-AzHDInsightConfigValues")]
2826
public class AddAzureHDInsightConfigValuesCommand : HDInsightCmdletBase
2927
{
3028
private Dictionary<string, Hashtable> _configurations;

src/HDInsight/HDInsight/ManagementCommands/DisableAzureHDInsightOMSCommand.cs

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

2021
namespace Microsoft.Azure.Commands.HDInsight
2122
{
23+
[CmdletDeprecation(ReplacementCmdletName = "Disable-AzHDInsightMonitoring")]
2224
[Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOperationsManagementSuite",SupportsShouldProcess = true)]
2325
[Alias("Disable-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOMS")]
2426
[OutputType(typeof(OperationResource))]

src/HDInsight/HDInsight/ManagementCommands/EnableAzureHDInsightOMSCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
using System.Reflection;
2121
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
2222
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.HDInsight
2526
{
27+
[CmdletDeprecation(ReplacementCmdletName = "Enable-AzHDInsightMonitoring")]
2628
[Cmdlet("Enable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOperationsManagementSuite",SupportsShouldProcess = true)]
2729
[Alias("Enable-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOMS")]
2830
[OutputType(typeof(OperationResource))]

src/HDInsight/HDInsight/ManagementCommands/GetAzureHDInsightOMSCommand.cs

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

2021
namespace Microsoft.Azure.Commands.HDInsight
2122
{
23+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzHDInsightMonitoring")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOperationsManagementSuite")]
2325
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightOMS")]
2426
[OutputType(typeof(AzureHDInsightOMS))]

src/HDInsight/HDInsight/ManagementCommands/GetAzureHDInsightPropertiesCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020

2121
namespace Microsoft.Azure.Commands.HDInsight
2222
{
23-
[GenericBreakingChange("Get-AzHDInsightProperties alias will be removed in an upcoming breaking change release", "2.0.0")]
23+
[CmdletOutputBreakingChange(typeof(CapabilitiesResponse), ReplacementCmdletOutputTypeName = "AzureHDInsightCapabilities")]
2424
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightProperty"),OutputType(typeof(CapabilitiesResponse))]
25-
[Alias("Get-AzHDInsightProperties")]
2625
public class GetAzureHDInsightPropertiesCommand : HDInsightCmdletBase
2726
{
2827
#region Input Parameter Definitions

src/HDInsight/HDInsight/ManagementCommands/GrantAzureHDInsightRdpServicesAccessCommand.cs

Lines changed: 2 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.HDInsight.Models;
1818
using Microsoft.WindowsAzure.Commands.Common;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System;
2021
using System.Management.Automation;
2122

2223
namespace Microsoft.Azure.Commands.HDInsight
2324
{
25+
[CmdletDeprecation("3.0.0")]
2426
[Cmdlet("Grant", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightRdpServicesAccess"),OutputType(typeof(void))]
2527
public class GrantAzureHDInsightRdpServicesAccessCommand : HDInsightCmdletBase
2628
{

src/HDInsight/HDInsight/ManagementCommands/RemoveAzureHDInsightClusterCommand.cs

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

2021
namespace Microsoft.Azure.Commands.HDInsight
2122
{
23+
[CmdletOutputBreakingChange(typeof(ClusterGetResponse))]
2224
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightCluster"),OutputType(typeof(ClusterGetResponse))]
2325
public class RemoveAzureHDInsightCommand : HDInsightCmdletBase
2426
{

src/HDInsight/HDInsight/ManagementCommands/RevokeAzureHDInsightRdpServicesAccessCommand.cs

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

2021
namespace Microsoft.Azure.Commands.HDInsight
2122
{
23+
[CmdletDeprecation("3.0.0")]
2224
[Cmdlet("Revoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightRdpServicesAccess"),OutputType(typeof(void))]
2325
public class RevokeAzureHDInsightRdpServicesAccessCommand : HDInsightCmdletBase
2426
{

src/HDInsight/HDInsight/ManagementCommands/SetAzureHDInsightGatewayCredentialCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
using Microsoft.Azure.Management.HDInsight.Models;
2020
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2121
using Microsoft.WindowsAzure.Commands.Common;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2324
using System;
2425
using System.Management.Automation;
2526

2627
namespace Microsoft.Azure.Commands.HDInsight
2728
{
29+
[CmdletOutputBreakingChange(typeof(HttpConnectivitySettings), ReplacementCmdletOutputTypeName = "AzureHDInsightGatewaySettings")]
2830
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightGatewayCredential", DefaultParameterSetName = SetByNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(HttpConnectivitySettings))]
2931
public class SetAzureHDInsightGatewayCredentialCommand : HDInsightCmdletBase
3032
{
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.GrantAzureHDInsightHttpServicesAccessCommand","Grant-AzHDInsightHttpServicesAccess","0","1000","The cmdlet 'Grant-AzHDInsightHttpServicesAccess' has been removed and no alias was found for the original cmdlet name.","Add the cmdlet 'Grant-AzHDInsightHttpServicesAccess' back to the module, or add an alias to the original cmdlet name."
3+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.RevokeAzureHDInsightHttpServicesAccessCommand","Revoke-AzHDInsightHttpServicesAccess","0","1000","The cmdlet 'Revoke-AzHDInsightHttpServicesAccess' has been removed and no alias was found for the original cmdlet name.","Add the cmdlet 'Revoke-AzHDInsightHttpServicesAccess' back to the module, or add an alias to the original cmdlet name."

0 commit comments

Comments
 (0)