@@ -294,7 +294,7 @@ resources
294294| extend Version = properties.version
295295| extend Edition = properties.edition
296296| extend containerId = tolower(tostring (properties.containerResourceId))
297- | where Version in ("2012", "2014")
297+ | where Version in ("SQL Server 2012", "SQL Server 2014")
298298| where Edition in ("Enterprise", "Standard")
299299| where isnotempty(containerId)
300300| project containerId, SQL_instance = name, Version, Edition
@@ -310,7 +310,11 @@ on $left.containerId == $right.machineId
310310 | where type == "microsoft.hybridcompute/machines/extensions"
311311 | where properties.type in ("WindowsAgent.SqlServer","LinuxAgent.SqlServer")
312312 | extend machineIdHasSQLServerExtensionInstalled = tolower(iff(id contains "/extensions/WindowsAgent.SqlServer" or id contains "/extensions/LinuxAgent.SqlServer", substring(id, 0, indexof(id, "/extensions/")), ""))
313- | project machineIdHasSQLServerExtensionInstalled, Extension_State = properties.provisioningState, License_Type = properties.settings.LicenseType, ESU = iff(notnull(properties.settings.enableExtendedSecurityUpdates), iff(properties.settings.enableExtendedSecurityUpdates == true,"enabled","disabled"), ""), Extension_Version = properties.instanceView.typeHandlerVersion
313+ | project machineIdHasSQLServerExtensionInstalled,
314+ Extension_State = properties.provisioningState,
315+ License_Type = properties.settings.LicenseType,
316+ ESU = iff(notnull(properties.settings.enableExtendedSecurityUpdates), iff(properties.settings.enableExtendedSecurityUpdates == 'true',"ENABLED","disabled"), "disabled"),
317+ Extension_Version = properties.instanceView.typeHandlerVersion
314318)
315319on $left.machineId == $right.machineIdHasSQLServerExtensionInstalled
316320| project-away machineId, containerId, machineIdHasSQLServerExtensionInstalled
0 commit comments