From 7969c9d423cd752554239c4ca32ec5148ee0ed5d Mon Sep 17 00:00:00 2001 From: sedusch Date: Thu, 25 Feb 2016 17:10:08 +0100 Subject: [PATCH 1/2] return if no standard storage is available --- .../Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs index 5f56806ef259..9ddc7ff5c9aa 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs @@ -296,6 +296,7 @@ public override void ExecuteCmdlet() if (wadstorage == null) { this._Helper.WriteError("A Standard Storage Account is required."); + return; } selectedVM = SetAzureVMDiagnosticsExtensionC(selectedVM, wadstorage.Key, wadstorage.Value); From 55fcf7c75b48e037fd1945851893a47660ae5147 Mon Sep 17 00:00:00 2001 From: sedusch Date: Thu, 25 Feb 2016 17:23:06 +0100 Subject: [PATCH 2/2] change output --- .../Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs index 9ddc7ff5c9aa..fe911b650955 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs @@ -338,7 +338,7 @@ public override void ExecuteCmdlet() }).GetAwaiter().GetResult(); this._Helper.WriteHost("[INFO] Azure Enhanced Monitoring Extension for SAP configuration updated. It can take up to 15 Minutes for the monitoring data to appear in the SAP system."); - this._Helper.WriteHost("[INFO] You can check the configuration of a virtual machine by calling the Test-VMConfigForSAP_GUI commandlet."); + this._Helper.WriteHost("[INFO] You can check the configuration of a virtual machine by calling the Test-AzureRmVMAEMExtension commandlet."); var result = Mapper.Map(op); WriteObject(result);