Gallery › Databricks › Azure Landing Zones Library
Deny non-premium Databricks sku
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Enforces the use of Premium Databricks workspaces to make sure appropriate security features are available including Databricks Access Controls, Credential Passthrough and SCIM provisioning for Microsoft Entra ID.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONDeny-Databricks-Sku.alz_policy_definition.json · 50 lines
{
"name": "Deny-Databricks-Sku",
"properties": {
"description": "Enforces the use of Premium Databricks workspaces to make sure appropriate security features are available including Databricks Access Controls, Credential Passthrough and SCIM provisioning for Microsoft Entra ID.",
"displayName": "Deny non-premium Databricks sku",
"metadata": {
"alzCloudEnvironments": [
"AzureCloud"
],
"category": "Databricks",
"source": "https://github.com/Azure/Enterprise-Scale/",
"version": "1.0.0"
},
"mode": "Indexed",
"parameters": {
"effect": {
"allowedValues": [
"Audit",
"Disabled",
"Deny"
],
"defaultValue": "Deny",
"metadata": {
"description": "Enable or disable the execution of the policy",
"displayName": "Effect"
},
"type": "String"
}
},
"policyRule": {
"if": {
"allOf": [
{
"equals": "Microsoft.Databricks/workspaces",
"field": "type"
},
{
"field": "Microsoft.DataBricks/workspaces/sku.name",
"notEquals": "premium"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"policyType": "Custom"
},
"type": "Microsoft.Authorization/policyDefinitions"
}BylawDeny-Databricks-Sku.bylaw.ps1 · 28 lines
# Converted from Deny-Databricks-Sku.alz_policy_definition.json by ConvertTo-Bylaw.
Policy 'Deny-Databricks-Sku' {
Properties @{
DisplayName = 'Deny non-premium Databricks sku'
Description = 'Enforces the use of Premium Databricks workspaces to make sure appropriate security features are available including Databricks Access Controls, Credential Passthrough and SCIM provisioning for Microsoft Entra ID.'
Category = 'Databricks'
Version = '1.0.0'
Mode = 'Indexed'
Metadata = [ordered]@{ alzCloudEnvironments = @('AzureCloud'); source = 'https://github.com/Azure/Enterprise-Scale/' }
}
Parameter Effect @{
AllowedValues = @('Audit', 'Disabled', 'Deny')
Default = 'Deny'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Databricks/workspaces' {
Require 'sku.name is premium' {
Field sku.name | Must -Be 'premium'
}
}
Effect (Param Effect)
}Source: policy_definitions/Deny-Databricks-Sku.alz_policy_definition.json in Azure/Azure-Landing-Zones-Library, under the MIT licence.
Bylaw