You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/Compute/Commands.Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AEMExtensionTests/TestAEMExtensionAdvancedWindowsMD.json
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM Size","vmsize",sapmonPublicConfig,vmSize,aemConfigResult);
@@ -315,7 +335,7 @@ public override void ExecuteCmdlet()
315
335
this._Helper.WriteHost("NOT OK ",ConsoleColor.Red);
@@ -327,22 +347,35 @@ public override void ExecuteCmdlet()
327
347
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS Disk Type","osdisk.type",sapmonPublicConfig,AEMExtensionConstants.DISK_TYPE_STANDARD,aemConfigResult);
328
348
329
349
}
330
-
else
350
+
elseif(storage!=null)
331
351
{
332
352
varsla=this._Helper.GetDiskSLA(osdisk);
333
353
334
354
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS Disk Type","osdisk.type",sapmonPublicConfig,AEMExtensionConstants.DISK_TYPE_PREMIUM,aemConfigResult);
335
355
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS Disk SLA IOPS","osdisk.sla.throughput",sapmonPublicConfig,sla.TP,aemConfigResult);
336
356
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS Disk SLA Throughput","osdisk.sla.iops",sapmonPublicConfig,sla.IOPS,aemConfigResult);
337
357
358
+
}else
359
+
{
360
+
this._Helper.WriteWarning("[WARN] Managed Disks are not yet supported. Extension will be installed but no disk metrics will be available.");
361
+
}
362
+
363
+
if(osdisk.ManagedDisk==null)
364
+
{
365
+
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS disk name","osdisk.name",sapmonPublicConfig,this._Helper.GetDiskName(osdisk.Vhd.Uri),aemConfigResult);
338
366
}
339
-
this._Helper.CheckMonitoringProperty("Azure Enhanced Monitoring Extension for SAP public configuration check: VM OS disk name","osdisk.name",sapmonPublicConfig,this._Helper.GetDiskName(osdisk.Vhd.Uri),aemConfigResult);
0 commit comments