diff --git a/arm-ttk/testcases/deploymentTemplate/Template-Should-Not-Contain-Blanks.test.ps1 b/arm-ttk/testcases/deploymentTemplate/Template-Should-Not-Contain-Blanks.test.ps1 index d518a8bc..e3de9c0e 100644 --- a/arm-ttk/testcases/deploymentTemplate/Template-Should-Not-Contain-Blanks.test.ps1 +++ b/arm-ttk/testcases/deploymentTemplate/Template-Should-Not-Contain-Blanks.test.ps1 @@ -32,7 +32,8 @@ param( 'clientId', # Microsoft.ContainerService/managedClusters.properties.servicePrincipalProfile 'allowedCallerIpAddresses', # Microsoft.Logic/workflows Access Control 'workerPools', # Microsoft.Web/hostingEnvironments - 'AzureMonitor' # Microsoft.Insights/VMDiagnosticsSettings + 'AzureMonitor', # Microsoft.Insights/VMDiagnosticsSettings + 'requiredDataConnectors' #Microsoft.SecurityInsights/AlertRuleTemplates ), # Some properties can be empty within a given resource. diff --git a/unit-tests/Template-Should-Not-Contain-Blanks/Pass/requiredDataConnectors-empty-array-should-pass.json b/unit-tests/Template-Should-Not-Contain-Blanks/Pass/requiredDataConnectors-empty-array-should-pass.json new file mode 100644 index 00000000..d2a3c557 --- /dev/null +++ b/unit-tests/Template-Should-Not-Contain-Blanks/Pass/requiredDataConnectors-empty-array-should-pass.json @@ -0,0 +1,32 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "resources": [ + { + "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates", + "name": "TestAnalyticRule", + "properties": { + "mainTemplate": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.2", + "parameters": {}, + "variables": {}, + "resources": [ + { + "type": "Microsoft.SecurityInsights/AlertRuleTemplates", + "name": "TestAnalyticRuleName", + "apiVersion": "2022-04-01-preview", + "kind": "Scheduled", + "properties": { + "displayName": "Test Rule", + "enabled": false, + "query": "Test Query", + "requiredDataConnectors": [] + } + } + ] + } + } + } + ], + "outputs": {} +}