From 63d7b44cf274fd9d9d1cbcae1bb37fde569661da Mon Sep 17 00:00:00 2001 From: Shefali Date: Fri, 28 Aug 2015 10:46:59 -0700 Subject: [PATCH] add warning to ASM cmdlets --- .../Cmdlet/AddAzureHDInsightConfigValuesCmdlet.cs | 1 + .../Cmdlet/AddAzureHDInsightMetastoreCmdlet.cs | 1 + .../Cmdlet/AddAzureHDInsightScriptActionCmdlet.cs | 1 + .../Cmdlet/AddAzureHDInsightStorageCmdlet.cs | 1 + .../Commands.HDInsight/Cmdlet/AzureHDInsightCmdlet.cs | 1 + .../Cmdlet/AzureHdInsightPowerShellHardCodes.cs | 3 +++ .../Cmdlet/GetAzureHDInsightClusterCmdlet.cs | 1 + .../Commands.HDInsight/Cmdlet/GetAzureHDInsightJobCmdlet.cs | 1 + .../Cmdlet/GetAzureHDInsightJobOutputCmdlet.cs | 1 + .../Cmdlet/GetAzureHDInsightPropertiesCmdlet.cs | 1 + .../Cmdlet/GrantAzureHDInsightHttpServicesAccessCmdlet.cs | 1 + .../Cmdlet/GrantAzureHdinsightRdpAccessCmdlet.cs | 1 + .../HDInsight/Commands.HDInsight/Cmdlet/InvokeHiveCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightClusterCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightClusterConfigCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightHiveJobDefinitionCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightMapReduceDefinitionCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightPigJobDefinitionCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightSqoopJobDefinitionCmdlet.cs | 1 + .../Cmdlet/NewAzureHDInsightStreamingJobDefinitionCmdlet.cs | 1 + .../Cmdlet/RemoveClusterHDInsightClusterCmdlet.cs | 1 + .../Cmdlet/RevokeAzureHDInsightHttpServicesAccessCmdlet.cs | 1 + .../Cmdlet/RevokeAzureHDInsightRdpAccessCmdlet.cs | 1 + .../Cmdlet/SetAzureHDInsightClusterSizeCmdlet.cs | 1 + .../Cmdlet/SetAzureHDInsightDefaultStorageCmdlet.cs | 1 + .../Commands.HDInsight/Cmdlet/StartAzureHDInsightJobCmdlet.cs | 1 + .../Commands.HDInsight/Cmdlet/StopAzureHDInsightJobCmdlet.cs | 1 + .../Cmdlet/UseAzureHDInsightClusterCmdlet.cs | 1 + .../Commands.HDInsight/Cmdlet/WaitAzureHDInsightJobCmdlet.cs | 1 + 29 files changed, 31 insertions(+) diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightConfigValuesCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightConfigValuesCmdlet.cs index fd175d2d7658..14aac360e13a 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightConfigValuesCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightConfigValuesCmdlet.cs @@ -161,6 +161,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightMetastoreCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightMetastoreCmdlet.cs index bc0bfc5a6883..e6b0482ca44f 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightMetastoreCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightMetastoreCmdlet.cs @@ -106,6 +106,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightScriptActionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightScriptActionCmdlet.cs index 62ca10305f8f..672c05824904 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightScriptActionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightScriptActionCmdlet.cs @@ -105,6 +105,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightStorageCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightStorageCmdlet.cs index c51612580cdd..ec633e25a0b2 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightStorageCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AddAzureHDInsightStorageCmdlet.cs @@ -82,6 +82,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHDInsightCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHDInsightCmdlet.cs index 8e9bcdd35219..6f031f179c9c 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHDInsightCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHDInsightCmdlet.cs @@ -38,6 +38,7 @@ public abstract class AzureHDInsightCmdlet : AzurePSCmdlet private ILogWriter logger; + /// /// Gets or sets a value indicating whether logging should be enabled. /// diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHdInsightPowerShellHardCodes.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHdInsightPowerShellHardCodes.cs index 685c08c7310f..d9b182b753b2 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHdInsightPowerShellHardCodes.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/AzureHdInsightPowerShellHardCodes.cs @@ -104,5 +104,8 @@ internal class AzureHdInsightPowerShellConstants public const string Show = "Show"; public const string Skip = "Skip"; public const string ToDateTime = "To"; + + public const string AsmWarning = + "WARNING: The Azure Service Management (ASM) cmdlets for HDInsight are deprecated and will be non-default in a future release, and they will be removed soon thereafter. Please use Switch-AzureMode AzureResourceManager to use the Azure Resource Manager cmdlets for HDInsight."; } } diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightClusterCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightClusterCmdlet.cs index ba90e36e0099..149855546b15 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightClusterCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightClusterCmdlet.cs @@ -108,6 +108,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.CurrentSubscription = this.GetCurrentSubscription(this.Subscription, this.Certificate); this.command.Logger = this.Logger; Task task = this.command.EndProcessing(); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobCmdlet.cs index b06de1fb73cd..6cc20146356c 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobCmdlet.cs @@ -128,6 +128,7 @@ protected override void EndProcessing() { try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.CurrentSubscription = this.GetCurrentSubscription(this.Subscription, this.Certificate); this.command.Logger = this.Logger; Task task = this.command.EndProcessing(); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobOutputCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobOutputCmdlet.cs index a44e112ca06f..112ecfdbadb4 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobOutputCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightJobOutputCmdlet.cs @@ -140,6 +140,7 @@ public string TaskLogsDirectory /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Logger = this.Logger; this.command.CurrentSubscription = this.GetCurrentSubscription(this.Subscription, this.Certificate); this.AssertTaskLogsDirectorySpecified(this.TaskLogsDirectory); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightPropertiesCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightPropertiesCmdlet.cs index e95bbb6a07f0..c346efef255b 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightPropertiesCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GetAzureHDInsightPropertiesCmdlet.cs @@ -106,6 +106,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Logger = this.Logger; try { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHDInsightHttpServicesAccessCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHDInsightHttpServicesAccessCmdlet.cs index 7cdb66d4c14f..137e24c4d996 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHDInsightHttpServicesAccessCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHDInsightHttpServicesAccessCmdlet.cs @@ -130,6 +130,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Enable = true; try { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHdinsightRdpAccessCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHdinsightRdpAccessCmdlet.cs index ac92c9dbc5a3..293e2aaede78 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHdinsightRdpAccessCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/GrantAzureHdinsightRdpAccessCmdlet.cs @@ -136,6 +136,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Enable = true; try { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/InvokeHiveCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/InvokeHiveCmdlet.cs index 2fad60725cd7..817353e69cf0 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/InvokeHiveCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/InvokeHiveCmdlet.cs @@ -138,6 +138,7 @@ protected override void EndProcessing() this.command.Connection = currentConnection; try { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Logger = this.Logger; this.command.CurrentSubscription = this.GetCurrentSubscription(string.Empty, null); Task task = this.command.EndProcessing(); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterCmdlet.cs index 17a58c45876b..6c204fb5d5b0 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterCmdlet.cs @@ -436,6 +436,7 @@ protected override void BeginProcessing() /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); DateTime start = DateTime.Now; string msg = string.Format(CultureInfo.CurrentCulture, "Create Cluster Started : {0}", start.ToString(CultureInfo.CurrentCulture)); this.Logger.Log(Severity.Informational, Verbosity.Detailed, msg); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterConfigCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterConfigCmdlet.cs index 715edd67618e..85584d210856 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterConfigCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightClusterConfigCmdlet.cs @@ -107,6 +107,7 @@ public string ZookeeperNodeVMSize /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightHiveJobDefinitionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightHiveJobDefinitionCmdlet.cs index cc37dfd51f62..73a1d21309f9 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightHiveJobDefinitionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightHiveJobDefinitionCmdlet.cs @@ -116,6 +116,7 @@ public string StatusFolder /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); if (this.File.IsNullOrEmpty() && this.Query.IsNullOrEmpty()) { throw new PSArgumentException("Either File or Query should be specified for Hive jobs."); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightMapReduceDefinitionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightMapReduceDefinitionCmdlet.cs index 1241bbaeb213..e87bf391d69d 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightMapReduceDefinitionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightMapReduceDefinitionCmdlet.cs @@ -118,6 +118,7 @@ public string StatusFolder /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightMapReduceJobDefinition output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightPigJobDefinitionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightPigJobDefinitionCmdlet.cs index f831f16d2562..8abda341481c 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightPigJobDefinitionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightPigJobDefinitionCmdlet.cs @@ -90,6 +90,7 @@ public string StatusFolder /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); if (this.File.IsNullOrEmpty() && this.Query.IsNullOrEmpty()) { throw new PSArgumentException("Either File or Query should be specified for Pig jobs."); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightSqoopJobDefinitionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightSqoopJobDefinitionCmdlet.cs index 83be88812484..70ba7c78a290 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightSqoopJobDefinitionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightSqoopJobDefinitionCmdlet.cs @@ -79,6 +79,7 @@ public string StatusFolder /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); if (this.File.IsNullOrEmpty() && this.Command.IsNullOrEmpty()) { throw new PSArgumentException("Either File or Command should be specified for Sqoop jobs."); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightStreamingJobDefinitionCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightStreamingJobDefinitionCmdlet.cs index 28908089d58d..6f0b3be609f9 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightStreamingJobDefinitionCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/NewAzureHDInsightStreamingJobDefinitionCmdlet.cs @@ -142,6 +142,7 @@ public string StatusFolder /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightStreamingMapReduceJobDefinition output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RemoveClusterHDInsightClusterCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RemoveClusterHDInsightClusterCmdlet.cs index d262576da487..1c5e4ebb478d 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RemoveClusterHDInsightClusterCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RemoveClusterHDInsightClusterCmdlet.cs @@ -105,6 +105,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); try { this.command.CurrentSubscription = this.GetCurrentSubscription(this.Subscription, this.Certificate); diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightHttpServicesAccessCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightHttpServicesAccessCmdlet.cs index 9ee72f2e85b9..a5ceb9ddc153 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightHttpServicesAccessCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightHttpServicesAccessCmdlet.cs @@ -129,6 +129,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Enable = false; try { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightRdpAccessCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightRdpAccessCmdlet.cs index 3cbcff1d7eb5..aceda2af9568 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightRdpAccessCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/RevokeAzureHDInsightRdpAccessCmdlet.cs @@ -134,6 +134,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.Enable = false; try { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightClusterSizeCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightClusterSizeCmdlet.cs index 1bfa29a88682..abe769cd360e 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightClusterSizeCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightClusterSizeCmdlet.cs @@ -124,6 +124,7 @@ public SetAzureHDInsightClusterSizeCmdlet() protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); if (Cluster != null) { Name = Cluster.Name; diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightDefaultStorageCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightDefaultStorageCmdlet.cs index 630980f02129..8175d4dbebcd 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightDefaultStorageCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/SetAzureHDInsightDefaultStorageCmdlet.cs @@ -88,6 +88,7 @@ public string StorageContainerName /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); this.command.EndProcessing().Wait(); foreach (AzureHDInsightConfig output in this.command.Output) { diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StartAzureHDInsightJobCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StartAzureHDInsightJobCmdlet.cs index 7ffcbbbf4d25..ae4f5f008513 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StartAzureHDInsightJobCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StartAzureHDInsightJobCmdlet.cs @@ -126,6 +126,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); try { this.command.Logger = this.Logger; diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StopAzureHDInsightJobCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StopAzureHDInsightJobCmdlet.cs index c382e85680ae..6ecfd33af2a7 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StopAzureHDInsightJobCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/StopAzureHDInsightJobCmdlet.cs @@ -123,6 +123,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); try { this.command.Logger = this.Logger; diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/UseAzureHDInsightClusterCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/UseAzureHDInsightClusterCmdlet.cs index 63be227578f9..8a72e678e941 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/UseAzureHDInsightClusterCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/UseAzureHDInsightClusterCmdlet.cs @@ -109,6 +109,7 @@ public string Subscription /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); try { this.command.Logger = this.Logger; diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/WaitAzureHDInsightJobCmdlet.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/WaitAzureHDInsightJobCmdlet.cs index 7c18b0e6af94..07ac42fceb89 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/WaitAzureHDInsightJobCmdlet.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Cmdlet/WaitAzureHDInsightJobCmdlet.cs @@ -158,6 +158,7 @@ public double WaitTimeoutInSeconds /// protected override void EndProcessing() { + this.WriteWarning(AzureHdInsightPowerShellConstants.AsmWarning); try { this.command.Logger = this.Logger;