Skip to content

Commit 891e10e

Browse files
committed
Added model property
1 parent c592d0f commit 891e10e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

samples/features/azure-arc/workbooks/Azure Arc Sql Servers.workbook

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"type": 3,
223223
"content": {
224224
"version": "KqlItem/1.0",
225-
"query": "resources\r\n| where type =~ \"Microsoft.AzureArcData/sqlServerInstances\"\r\n| extend SQLInstance = id, AzureArcServer = tolower(tostring(properties.containerResourceId))\r\n| join kind=inner (resources\r\n| where type in ('microsoft.hybridcompute/machines')\r\n| where properties.status != \"Expired\"\r\n| extend id = tolower(id)) on $left.AzureArcServer == $right.id\r\n| where SQLInstance like \"{SQLInstance}\"\r\n| where AzureArcServer like \"{ServerName}\"\r\n| extend createdAt = format_datetime(todatetime(systemData.createdAt), 'yyyy-MM-dd hh:mm:ss')\r\n| extend version = tostring(properties.version)\r\n| extend edition = tostring(properties.edition)\r\n| extend currentVersion = tostring(properties.currentVersion)\r\n| extend licenseType = tostring(properties.licenseType)\r\n| extend azureDefenderStatus = tostring(properties.azureDefenderStatus)\r\n| extend patchLevel = tostring(properties.patchLevel)\r\n| extend vcores = toint(properties.vCore)\r\n| project createdAt,AzureArcServer,SQLInstance,version,currentVersion,patchLevel,edition,vcores,subscriptionId,licenseType,azureDefenderStatus\r\n",
225+
"query": "resources\r\n| where type =~ \"Microsoft.AzureArcData/sqlServerInstances\"\r\n| extend SQLInstance = id, AzureArcServer = tolower(tostring(properties.containerResourceId))\r\n| join kind=inner (resources\r\n| where type in ('microsoft.hybridcompute/machines')\r\n| where properties.status != \"Expired\"\r\n| extend model = tostring(properties.detectedProperties.model)\r\n| extend id = tolower(id)) on $left.AzureArcServer == $right.id\r\n| where SQLInstance like \"{SQLInstance}\"\r\n| where AzureArcServer like \"{ServerName}\"\r\n| extend createdAt = format_datetime(todatetime(systemData.createdAt), 'yyyy-MM-dd hh:mm:ss')\r\n| extend version = tostring(properties.version)\r\n| extend edition = tostring(properties.edition)\r\n| extend currentVersion = tostring(properties.currentVersion)\r\n| extend licenseType = tostring(properties.licenseType)\r\n| extend azureDefenderStatus = tostring(properties.azureDefenderStatus)\r\n| extend patchLevel = tostring(properties.patchLevel)\r\n| extend vcores = toint(properties.vCore)\r\n| project createdAt,AzureArcServer,SQLInstance,version,currentVersion,patchLevel,edition,model,vcores,subscriptionId,licenseType,azureDefenderStatus\r\n",
226226
"size": 0,
227227
"showAnalytics": true,
228228
"queryType": 1,
@@ -257,14 +257,14 @@
257257
"columnMatch": "version",
258258
"formatter": 0,
259259
"formatOptions": {
260-
"customColumnWidthSetting": "21ch"
260+
"customColumnWidthSetting": "19ch"
261261
}
262262
},
263263
{
264264
"columnMatch": "currentVersion",
265265
"formatter": 0,
266266
"formatOptions": {
267-
"customColumnWidthSetting": "20ch"
267+
"customColumnWidthSetting": "17.4286ch"
268268
}
269269
},
270270
{
@@ -281,6 +281,13 @@
281281
"customColumnWidthSetting": "11.4286ch"
282282
}
283283
},
284+
{
285+
"columnMatch": "model",
286+
"formatter": 0,
287+
"formatOptions": {
288+
"customColumnWidthSetting": "18.4286ch"
289+
}
290+
},
284291
{
285292
"columnMatch": "vcores",
286293
"formatter": 0,

0 commit comments

Comments
 (0)