| reviewed | 2024-01-12 |
|---|---|
| severity | Critical |
| pillar | Security |
| category | SE:06 Network controls |
| resource | Databricks |
| resourceType | Microsoft.Databricks/workspaces |
| online version | https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Databricks.PublicAccess/ |
Azure Databricks workspaces should disable public network access.
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.
Consider configuring Databricks workspaces to disable public network access, using private endpoints to control connectivity.
To deploy workspaces that pass this rule:
- Set the
properties.publicNetworkAccessproperty toDisabled.
For example:
{
"type": "Microsoft.Databricks/workspaces",
"apiVersion": "2023-02-01",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"sku": {
"name": "standard"
},
"properties": {
"managedResourceGroupId": "[subscriptionResourceId('Microsoft.Resources/resourceGroups', 'example-mg')]",
"publicNetworkAccess": "Disabled",
"parameters": {
"enableNoPublicIp": {
"value": true
}
}
}
}To deploy workspaces that pass this rule:
- Set the
properties.publicNetworkAccessproperty toDisabled.
For example:
resource databricks 'Microsoft.Databricks/workspaces@2023-02-01' = {
name: name
location: location
sku: {
name: 'standard'
}
properties: {
managedResourceGroupId: managedRg.id
publicNetworkAccess: 'Disabled'
parameters: {
enableNoPublicIp: {
value: true
}
}
}
}