Gallery › Azure Databricks › Azure built-in policies
Azure Databricks Workspaces should disable public network access
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.1
Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can control exposure of your resources by creating private endpoints instead. Learn more at: https://learn.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/private-link.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONDatabricks_AuditPublicNetworkAccess.json · 50 lines
{
"properties": {
"displayName": "Azure Databricks Workspaces should disable public network access",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can control exposure of your resources by creating private endpoints instead. Learn more at: https://learn.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/private-link. ",
"metadata": {
"version": "1.0.1",
"category": "Azure Databricks"
},
"version": "1.0.1",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The desired effect of the policy."
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Databricks/workspaces"
},
{
"field": "Microsoft.Databricks/workspaces/publicNetworkAccess",
"notEquals": "Disabled"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/0e7849de-b939-4c50-ab48-fc6b0f5eeba2",
"name": "0e7849de-b939-4c50-ab48-fc6b0f5eeba2"
}Bylaw0e7849de-b939-4c50-ab48-fc6b0f5eeba2.bylaw.ps1 · 28 lines
# Converted from Databricks_AuditPublicNetworkAccess.json by ConvertTo-Bylaw.
Policy '0e7849de-b939-4c50-ab48-fc6b0f5eeba2' {
Properties @{
DisplayName = 'Azure Databricks Workspaces should disable public network access'
Description = 'Disabling public network access improves security by ensuring that the resource isn''t exposed on the public internet. You can control exposure of your resources by creating private endpoints instead. Learn more at: https://learn.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/private-link. '
Version = '1.0.1'
Category = 'Azure Databricks'
PolicyVersion = '1.0.1'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The desired effect of the policy.'
}
Resource 'Microsoft.Databricks/workspaces' {
Require 'publicNetworkAccess is Disabled' {
Field publicNetworkAccess | Must -Be 'Disabled'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Azure Databricks/Databricks_AuditPublicNetworkAccess.json in Azure/azure-policy, under the MIT licence.
Bylaw