Skip to content

Commit 9371468

Browse files
committed
Add Arc SQL Server Feature Status Dashboard
1 parent 7706d73 commit 9371468

1 file changed

Lines changed: 334 additions & 0 deletions

File tree

Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,334 @@
1+
{
2+
"properties": {
3+
"title": "Arc SQL Server Feature Status",
4+
"pages": [
5+
{
6+
"title": "Feature Status",
7+
"tiles": [
8+
{
9+
"data": {
10+
"kind": "arg",
11+
"query": "resources\r\n| where type == \"microsoft.azurearcdata/sqlserverinstances\"\r\n| project \r\nid, \r\nMigrationAssessment = iif(properties.migration.assessment.enabled == 'true', 'Enabled', 'Disabled'), \r\nMonitoring = iif(properties.monitoring.enabled == 'true', 'Enabled', 'Disabled'), \r\nBackupEnabled = iif(isempty(properties.backupPolicy.retentionPeriodDays),'Disabled', iif(properties.backupPolicy.retentionPeriodDays == 0,'Disabled','Enabled'))\r\n| order by id asc",
12+
"usedParameters": []
13+
},
14+
"visualization": {
15+
"type": "table",
16+
"options": {
17+
"hideTileTitle": false,
18+
"table__enableFormatting": true,
19+
"table__enableRenderLinks": true,
20+
"table__renderLinksForColumns": [],
21+
"colorRules": [],
22+
"colorRulesDisabled": true,
23+
"colorStyle": "light",
24+
"crossFilter": [],
25+
"crossFilterDisabled": false,
26+
"drillthrough": [],
27+
"drillthroughDisabled": false
28+
}
29+
},
30+
"title": "SQL Server instance features status",
31+
"subtitle": "Shows enabled/disabled for each feature that is configured at the SQL Server instance level",
32+
"type": "QueryTile",
33+
"layout": {
34+
"x": 0,
35+
"y": 0,
36+
"width": 8,
37+
"height": 4
38+
}
39+
},
40+
{
41+
"data": {
42+
"kind": "arg",
43+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project\r\nid,\r\nESU = iff(notnull(properties.settings.enableExtendedSecurityUpdates), iff(properties.settings.enableExtendedSecurityUpdates == true,\"Enabled\",\"Disabled\"), \"Disabled\"),\r\nPurview = iff(notnull(properties.settings.ExternalPolicyBasedAuthorization),\"Enabled\",\"Disabled\"),\r\nEntra = iff(notnull(properties.settings.AzureAD),\"Enabled\",\"Disabled\"),\r\nBPA = iff(notnull(properties.settings.AssessmentSettings),\"Enabled\",\"Disabled\"),\r\nAutomaticUpdate = iff(properties.settings.MicrosoftUpdateConfiguration.EnableMicrosoftUpdate == true, \"Enabled\", \"Disabled\")\r\n| order by id asc",
44+
"usedParameters": []
45+
},
46+
"visualization": {
47+
"type": "table",
48+
"options": {
49+
"hideTileTitle": false,
50+
"table__enableFormatting": true,
51+
"table__enableRenderLinks": true,
52+
"table__renderLinksForColumns": [],
53+
"colorRules": [],
54+
"colorRulesDisabled": true,
55+
"colorStyle": "light",
56+
"crossFilter": [],
57+
"crossFilterDisabled": false,
58+
"drillthrough": [],
59+
"drillthroughDisabled": false
60+
}
61+
},
62+
"title": "SQL Server extension feature status",
63+
"subtitle": "Shows the enabled and disabled state of each feature configured at the SQL Server extension level",
64+
"type": "QueryTile",
65+
"layout": {
66+
"x": 0,
67+
"y": 4,
68+
"width": 8,
69+
"height": 4
70+
}
71+
},
72+
{
73+
"data": {
74+
"kind": "arg",
75+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project id, ESU = iff(notnull(properties.settings.enableExtendedSecurityUpdates), iff(properties.settings.enableExtendedSecurityUpdates == true,\"Enabled\",\"Disabled\"), \"Disabled\")\r\n| summarize count(id) by ESU",
76+
"usedParameters": []
77+
},
78+
"visualization": {
79+
"type": "pie",
80+
"options": {
81+
"hideTileTitle": false,
82+
"table__enableFormatting": true,
83+
"table__enableRenderLinks": true,
84+
"table__renderLinksForColumns": [],
85+
"colorRules": [],
86+
"colorRulesDisabled": true,
87+
"colorStyle": "light",
88+
"crossFilter": [],
89+
"crossFilterDisabled": false,
90+
"drillthrough": [],
91+
"drillthroughDisabled": false
92+
}
93+
},
94+
"title": "Extended Security Updates",
95+
"subtitle": "",
96+
"type": "QueryTile",
97+
"layout": {
98+
"x": 8,
99+
"y": 4,
100+
"width": 6,
101+
"height": 4
102+
}
103+
},
104+
{
105+
"data": {
106+
"kind": "arg",
107+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project id, Purview = iff(notnull(properties.settings.ExternalPolicyBasedAuthorization), iff(properties.settings.enableExtendedSecurityUpdates == true,\"Enabled\",\"Disabled\"), \"Disabled\")\r\n| summarize count(id) by Purview",
108+
"usedParameters": []
109+
},
110+
"visualization": {
111+
"type": "pie",
112+
"options": {
113+
"hideTileTitle": false,
114+
"table__enableFormatting": true,
115+
"table__enableRenderLinks": true,
116+
"table__renderLinksForColumns": [],
117+
"colorRules": [],
118+
"colorRulesDisabled": true,
119+
"colorStyle": "light",
120+
"crossFilter": [],
121+
"crossFilterDisabled": false,
122+
"drillthrough": [],
123+
"drillthroughDisabled": false
124+
}
125+
},
126+
"title": "Purview",
127+
"subtitle": "",
128+
"type": "QueryTile",
129+
"layout": {
130+
"x": 14,
131+
"y": 4,
132+
"width": 6,
133+
"height": 4
134+
}
135+
},
136+
{
137+
"data": {
138+
"kind": "arg",
139+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project id, Entra = iff(notnull(properties.settings.AzureAD), iff(properties.settings.enableExtendedSecurityUpdates == true,\"Enabled\",\"Disabled\"), \"Disabled\")\r\n| summarize count(id) by Entra",
140+
"usedParameters": []
141+
},
142+
"visualization": {
143+
"type": "pie",
144+
"options": {
145+
"hideTileTitle": false,
146+
"table__enableFormatting": true,
147+
"table__enableRenderLinks": true,
148+
"table__renderLinksForColumns": [],
149+
"colorRules": [],
150+
"colorRulesDisabled": true,
151+
"colorStyle": "light",
152+
"crossFilter": [],
153+
"crossFilterDisabled": false,
154+
"drillthrough": [],
155+
"drillthroughDisabled": false
156+
}
157+
},
158+
"title": "Entra ID authentication",
159+
"subtitle": "",
160+
"type": "QueryTile",
161+
"layout": {
162+
"x": 8,
163+
"y": 8,
164+
"width": 6,
165+
"height": 4
166+
}
167+
},
168+
{
169+
"data": {
170+
"kind": "arg",
171+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project id, BPA = iff(notnull(properties.settings.AssessmentSettings), iff(properties.settings.enableExtendedSecurityUpdates == true,\"Enabled\",\"Disabled\"), \"Disabled\")\r\n| summarize count(id) by BPA",
172+
"usedParameters": []
173+
},
174+
"visualization": {
175+
"type": "pie",
176+
"options": {
177+
"hideTileTitle": false,
178+
"table__enableFormatting": true,
179+
"table__enableRenderLinks": true,
180+
"table__renderLinksForColumns": [],
181+
"colorRules": [],
182+
"colorRulesDisabled": true,
183+
"colorStyle": "light",
184+
"crossFilter": [],
185+
"crossFilterDisabled": false,
186+
"drillthrough": [],
187+
"drillthroughDisabled": false
188+
}
189+
},
190+
"title": "Best practices assessment",
191+
"subtitle": "",
192+
"type": "QueryTile",
193+
"layout": {
194+
"x": 14,
195+
"y": 8,
196+
"width": 6,
197+
"height": 4
198+
}
199+
},
200+
{
201+
"data": {
202+
"kind": "arg",
203+
"query": "resources\r\n| where type == \"microsoft.hybridcompute/machines/extensions\"\r\n| where properties.type in (\"WindowsAgent.SqlServer\",\"LinuxAgent.SqlServer\")\r\n| project id, AutomaticUpdates = iff(properties.settings.MicrosoftUpdateConfiguration.EnableMicrosoftUpdate == true, \"Enabled\", \"Disabled\")\r\n| summarize count(id) by AutomaticUpdates",
204+
"usedParameters": []
205+
},
206+
"visualization": {
207+
"type": "pie",
208+
"options": {
209+
"hideTileTitle": false,
210+
"table__enableFormatting": true,
211+
"table__enableRenderLinks": true,
212+
"table__renderLinksForColumns": [],
213+
"colorRules": [],
214+
"colorRulesDisabled": true,
215+
"colorStyle": "light",
216+
"crossFilter": [],
217+
"crossFilterDisabled": false,
218+
"drillthrough": [],
219+
"drillthroughDisabled": false
220+
}
221+
},
222+
"title": "Automatic Updates",
223+
"subtitle": "",
224+
"type": "QueryTile",
225+
"layout": {
226+
"x": 20,
227+
"y": 4,
228+
"width": 6,
229+
"height": 4
230+
}
231+
},
232+
{
233+
"data": {
234+
"kind": "arg",
235+
"query": "resources\r\n| where type == \"microsoft.azurearcdata/sqlserverinstances\"\r\n| project \r\nid, \r\nMigrationAssessment = iif(properties.migration.assessment.enabled == 'true', 'Enabled', 'Disabled')\r\n| summarize count(id) by MigrationAssessment",
236+
"usedParameters": []
237+
},
238+
"visualization": {
239+
"type": "pie",
240+
"options": {
241+
"hideTileTitle": false,
242+
"table__enableFormatting": true,
243+
"table__enableRenderLinks": true,
244+
"table__renderLinksForColumns": [],
245+
"colorRules": [],
246+
"colorRulesDisabled": true,
247+
"colorStyle": "light",
248+
"crossFilter": [],
249+
"crossFilterDisabled": false,
250+
"drillthrough": [],
251+
"drillthroughDisabled": false
252+
}
253+
},
254+
"title": "Migration assessment",
255+
"subtitle": "",
256+
"type": "QueryTile",
257+
"layout": {
258+
"x": 8,
259+
"y": 0,
260+
"width": 6,
261+
"height": 4
262+
}
263+
},
264+
{
265+
"data": {
266+
"kind": "arg",
267+
"query": "resources\r\n| where type == \"microsoft.azurearcdata/sqlserverinstances\"\r\n| project \r\nid, \r\nMonitoring = iif(properties.monitoring.enabled == 'true', 'Enabled', 'Disabled')\r\n| summarize count(id) by Monitoring",
268+
"usedParameters": []
269+
},
270+
"visualization": {
271+
"type": "pie",
272+
"options": {
273+
"hideTileTitle": false,
274+
"table__enableFormatting": true,
275+
"table__enableRenderLinks": true,
276+
"table__renderLinksForColumns": [],
277+
"colorRules": [],
278+
"colorRulesDisabled": true,
279+
"colorStyle": "light",
280+
"crossFilter": [],
281+
"crossFilterDisabled": false,
282+
"drillthrough": [],
283+
"drillthroughDisabled": false
284+
}
285+
},
286+
"title": "Monitoring",
287+
"subtitle": "",
288+
"type": "QueryTile",
289+
"layout": {
290+
"x": 14,
291+
"y": 0,
292+
"width": 6,
293+
"height": 4
294+
}
295+
},
296+
{
297+
"data": {
298+
"kind": "arg",
299+
"query": "resources\r\n| where type == \"microsoft.azurearcdata/sqlserverinstances\"\r\n| project \r\nid, \r\nBackupEnabled = iif(isempty(properties.backupPolicy.retentionPeriodDays),'Disabled', iif(properties.backupPolicy.retentionPeriodDays == 0,'Disabled','Enabled'))\r\n| summarize count(id) by BackupEnabled",
300+
"usedParameters": []
301+
},
302+
"visualization": {
303+
"type": "pie",
304+
"options": {
305+
"hideTileTitle": false,
306+
"table__enableFormatting": true,
307+
"table__enableRenderLinks": true,
308+
"table__renderLinksForColumns": [],
309+
"colorRules": [],
310+
"colorRulesDisabled": true,
311+
"colorStyle": "light",
312+
"crossFilter": [],
313+
"crossFilterDisabled": false,
314+
"drillthrough": [],
315+
"drillthroughDisabled": false
316+
}
317+
},
318+
"title": "Backups",
319+
"subtitle": "",
320+
"type": "QueryTile",
321+
"layout": {
322+
"x": 20,
323+
"y": 0,
324+
"width": 6,
325+
"height": 4
326+
}
327+
}
328+
]
329+
}
330+
],
331+
"parameters": [],
332+
"provisioningState": "Succeeded"
333+
}
334+
}

0 commit comments

Comments
 (0)