Skip to content

Commit

Permalink
Merge pull request #761 from v-rusraut/v-rusraut-add-prop-in-template…
Browse files Browse the repository at this point in the history
…ShouldNotContainBlankstest

Added property serializedData in Template-Should-Not-Contain-Blanks T…
  • Loading branch information
psah434 authored Feb 23, 2024
2 parents 49def02 + 796dbd4 commit 6790eea
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ param(
# A value of "properties.settings" would allow blanks in any subproperty of settings.
[Collections.IDictionary]
$ResourcePropertiesThatCanBeEmpty = @{
"Microsoft.Web/sites/config" = "properties"
"Microsoft.Web/sites/config" = "properties";
"Microsoft.Insights/workbooks" = "properties.serializedData"
}
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
"apiVersion": "2023-04-01-preview",
"name": "TestWorkbookName",
"properties": {
"description": "Test Workbook with template version 3.0.3",
"mainTemplate": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "2.1.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Insights/workbooks",
"name": "TestContent",
"kind": "shared",
"apiVersion": "2021-08-01",
"metadata": {
"description": "Test description"
},
"properties": {
"displayName": "Test Workbook Display Name",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"# test\"},\"customWidth\":\"35\",\"name\":\"Headline\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"{\\\"version\\\":\\\"ARMEndpoint/1.0\\\",\\\"headers\\\":[],\\\"method\\\":\\\"POST\\\",\\\"path\\\":\\\"/subscriptions/{Subscription:id}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{Workspace:name}/providers/Microsoft.SecurityInsights/incidents/{IncidentID}/entities\\\",\\\"urlParams\\\":[{\\\"key\\\":\\\"api-version\\\",\\\"value\\\":\\\"2021-04-01\\\"}],\\\"batchDisabled\\\":false,\\\"transformers\\\":[{\\\"type\\\":\\\"jsonpath\\\",\\\"settings\\\":{\\\"tablePath\\\":\\\"$.metaData\\\",\\\"columns\\\":[]}}]}\\r\\n\",\"size\":2,\"noDataMessage\":\"No entities were found\",\"noDataMessageStyle\":4,\"queryType\":12,\"visualization\":\"piechart\",\"tileSettings\":{\"titleContent\":{\"columnMatch\":\"entityKind\",\"formatter\":12,\"formatOptions\":{\"palette\":\"blue\"}},\"leftContent\":{\"columnMatch\":\"count\",\"formatter\":1,\"numberFormat\":{\"unit\":0,\"options\":{\"style\":\"decimal\"}}},\"showBorder\":false,\"sortCriteriaField\":\"Order\",\"sortOrderField\":1,\"size\":\"auto\"}},\"customWidth\":\"30\",\"name\":\"Entities\"}],\"fromTemplateId\":\"test1\",\"$schema\":\"test\"}\r\n",
"version": "1.0"
}
}
]
}
}
}
],
"outputs": {}
}

0 comments on commit 6790eea

Please sign in to comment.