๐ง Azure Databricks Workspace is not encrypted using customer-managed key (CMK) - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ Azure Databricks Workspace
- ๐ Azure Databricks Workspace - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2026-06-06T12:03:34.090243665Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 199 | โ๏ธ extract('CA10Z1__encryptionManagedDisksKeySource__c').isEmpty() | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 299 | โ๏ธ extract('CA10Z1__encryptionManagedDisksKeySource__c') != 'Microsoft.Keyvault' | โ๏ธ null |
| ๐ข | 003 | โ๏ธ 399 | โ๏ธ extract('CA10Z1__encryptionManagedDisksKeySource__c') == 'Microsoft.Keyvault' | โ๏ธ null |
| ๐ข | 004 | โ๏ธ 399 | โ๏ธ extract('CA10Z1__encryptionManagedDisksKeySource__c') == 'Microsoft.Keyvault' | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/databricks/customer-managed-keys/policy.yaml | 79F2711B8D59F3D5C7B156AA748588A0 |
| Open | /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml | 16D37636832CDEDA165D7D8E5285E1A0 |
| Open | /ce/ca/azure/databricks/customer-managed-keys/test-data.json | C380A82BEBF0876E6772B1A06E613241 |
| Open | /types/CA10Z1__CaAzureDatabricksWorkspace__c/object.extracts.yaml | 512495ACDA70E3546508F36E8A6F8AAE |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Contentโ
---
inputType: "CA10Z1__CaAzureDatabricksWorkspace__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzureDatabricksWorkspace__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Databricks workspace is not encrypted with a customer-managed key."
remediationMessage: "Encrypt the Databricks workspace with a customer-managed key."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Databricks workspace is encrypted with a Microsoft-managed key."
remediationMessage: "Encrypt the Databricks workspace with a customer-managed key."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
right:
TEXT: "Microsoft.Keyvault"
- status: "COMPLIANT"
currentStateMessage: "The Databricks workspace is encrypted with a customer-managed key."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
right:
TEXT: "Microsoft.Keyvault"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."