Skip to content

Commit

Permalink
Merge pull request #760 from v-amolpatil/add-prop-in-templateShouldNo…
Browse files Browse the repository at this point in the history
…tContainBlankstest

Added property requiredDataConnectors in Template-Should-Not-Contain-Blanks Test to skip if []
  • Loading branch information
psah434 authored Feb 14, 2024
2 parents 837720d + 2330c8c commit 49def02
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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": {}
}

0 comments on commit 49def02

Please sign in to comment.