diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs index 5f56806ef259..fe911b650955 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); @@ -337,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);