Gallery › Azure Data Explorer › Azure built-in policies
Virtual network injection should be enabled for Azure Data Explorer
Converted Policy Audit Deny Disabled Mode indexed Version 1.0.0
Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONADX_VNET_configured.json · 66 lines
{
"properties": {
"policyType": "BuiltIn",
"displayName": "Virtual network injection should be enabled for Azure Data Explorer",
"description": "Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.",
"metadata": {
"version": "1.0.0",
"category": "Azure Data Explorer"
},
"version": "1.0.0",
"mode": "indexed",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Kusto/Clusters"
},
{
"anyOf": [
{
"field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration",
"exists": false
},
{
"field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.subnetId",
"exists": false
},
{
"field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.enginePublicIpId",
"exists": false
},
{
"field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.dataManagementPublicIpId",
"exists": false
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/9ad2fd1f-b25f-47a2-aa01-1a5a779e6413",
"name": "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413"
}Bylaw9ad2fd1f-b25f-47a2-aa01-1a5a779e6413.bylaw.ps1 · 41 lines
# Converted from ADX_VNET_configured.json by ConvertTo-Bylaw.
Policy '9ad2fd1f-b25f-47a2-aa01-1a5a779e6413' {
Properties @{
DisplayName = 'Virtual network injection should be enabled for Azure Data Explorer'
Description = 'Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.'
Version = '1.0.0'
Category = 'Azure Data Explorer'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
Type = 'string'
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Kusto/Clusters' {
Require 'virtualNetworkConfiguration exists' {
Field virtualNetworkConfiguration | Must -Exist
}
Require 'virtualNetworkConfiguration.subnetId exists' {
Field virtualNetworkConfiguration.subnetId | Must -Exist
}
Require 'virtualNetworkConfiguration.enginePublicIpId exists' {
Field virtualNetworkConfiguration.enginePublicIpId | Must -Exist
}
Require 'virtualNetworkConfiguration.dataManagementPublicIpId exists' {
Field virtualNetworkConfiguration.dataManagementPublicIpId | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Azure Data Explorer/ADX_VNET_configured.json in Azure/azure-policy, under the MIT licence.
Bylaw