Skip to content

Commit 3519ad9

Browse files
author
Hovsep
committed
Merge pull request Azure#1868 from hovsepm/dev
return if no standard storage is available
2 parents cbbf524 + ff2185c commit 3519ad9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/AEM/SetAzureRmVMAEMExtension.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ public override void ExecuteCmdlet()
296296
if (wadstorage == null)
297297
{
298298
this._Helper.WriteError("A Standard Storage Account is required.");
299+
return;
299300
}
300301

301302
selectedVM = SetAzureVMDiagnosticsExtensionC(selectedVM, wadstorage.Key, wadstorage.Value);
@@ -337,7 +338,7 @@ public override void ExecuteCmdlet()
337338
}).GetAwaiter().GetResult();
338339

339340
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.");
340-
this._Helper.WriteHost("[INFO] You can check the configuration of a virtual machine by calling the Test-VMConfigForSAP_GUI commandlet.");
341+
this._Helper.WriteHost("[INFO] You can check the configuration of a virtual machine by calling the Test-AzureRmVMAEMExtension commandlet.");
341342

342343
var result = Mapper.Map<PSAzureOperationResponse>(op);
343344
WriteObject(result);

0 commit comments

Comments
 (0)