From c488891568769db3e88e5d997dbeb4f9cca507ef Mon Sep 17 00:00:00 2001 From: aim-for-better Date: Fri, 25 Sep 2020 11:22:27 +0800 Subject: [PATCH] Added warning message for planning to deprecate the parameters of old private link (#13059) Co-authored-by: Zhenyu Zhou --- src/HDInsight/HDInsight/ChangeLog.md | 1 + .../ManagementCommands/NewAzureHDInsightClusterCommand.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/HDInsight/HDInsight/ChangeLog.md b/src/HDInsight/HDInsight/ChangeLog.md index f624e26fe440..5f37d1e2df2e 100644 --- a/src/HDInsight/HDInsight/ChangeLog.md +++ b/src/HDInsight/HDInsight/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added warning message for planning to deprecate the parameters `PublicNetworkAccessType` and `OutboundPublicNetworkAccessType` ## Version 3.6.0 * Supported creating cluster with Autoscale configuration diff --git a/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs b/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs index 9ceb83c0a215..8f95802c2151 100644 --- a/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs +++ b/src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs @@ -21,6 +21,7 @@ using Microsoft.Azure.Graph.RBAC.Version1_6; using Microsoft.Azure.Management.HDInsight.Models; using Microsoft.WindowsAzure.Commands.Common; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Collections; using System.Collections.Generic; @@ -392,10 +393,12 @@ public DateTime RdpAccessExpiry [Parameter(HelpMessage = "Gets or sets the encryption vault uri.")] public string EncryptionVaultUri { get; set; } + [CmdletParameterBreakingChange("PublicNetworkAccessType", ChangeDescription = "This parameter is being deprecated.")] [Parameter(HelpMessage = "Gets or sets the public network access type.")] [ValidateSet(PublicNetworkAccess.InboundAndOutbound, PublicNetworkAccess.OutboundOnly, IgnoreCase = true)] public string PublicNetworkAccessType { get; set; } + [CmdletParameterBreakingChange("OutboundPublicNetworkAccessType", ChangeDescription = "This parameter is being deprecated.")] [Parameter(HelpMessage = "Gets or sets the outbound access type to the public network.")] [ValidateSet(OutboundOnlyPublicNetworkAccessType.PublicLoadBalancer, OutboundOnlyPublicNetworkAccessType.UDR, IgnoreCase = true)] public string OutboundPublicNetworkAccessType { get; set; }