๐ง Azure Databricks Diagnostic Log Delivery is not configured - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ Azure Databricks Workspace
- ๐ Azure Diagnostic Setting - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2025-12-17T01:31:04.055917083Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10Z1__disappearanceTime__c) | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 199 | โ๏ธ CA10Z1__Azure_Diagnostic_Settings__r.has(COMPLIANT) | โ๏ธ null |
| ๐ข | 003 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
| ๐ข | 004 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/databricks/diagnostic-log-delivery/policy.yaml | D182791A3A15CC3F255A429DC174156D |
| Open | /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml | 4C46AF91A60E2FC6CBBFFD8308476416 |
| Open | /ce/ca/azure/databricks/diagnostic-log-delivery/test-data.json | 9430D38BB4C36F2C05EE48899F2F6878 |
| Open | /types/CA10__CaAzureDiagnosticSetting__c/object.extracts.yaml | 4AADFEBE59E43127A2529B2F0DB31297 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/databricks/diagnostic-log-delivery/prod.logic.yaml
Contentโ
---
inputType: "CA10Z1__CaAzureDatabricksWorkspace__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Diagnostic log delivery is configured for Azure Databricks."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Diagnostic_Settings__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Diagnostic log delivery is not configured for Azure Databricks."
remediationMessage: "Configure diagnostic log delivery."
relatedLists:
- relationshipName: "CA10Z1__Azure_Diagnostic_Settings__r"
importExtracts:
- file: "/types/CA10__CaAzureDiagnosticSetting__c/object.extracts.yaml"
conditions:
# Ensure that logging is enabled for the following categories: accounts, clusters, notebook, jobs, workspace
- status: "INCOMPLIANT"
currentStateMessage: "Logging is not enabled for the required categories."
check:
NOT:
arg:
AND:
args:
- JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logsJson__c"
expression: "[? category == `accounts`].enabled | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
- JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logsJson__c"
expression: "[? category == `clusters`].enabled | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
- JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logsJson__c"
expression: "[? category == `notebook`].enabled | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
- JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logsJson__c"
expression: "[? category == `jobs`].enabled | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
- JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logsJson__c"
expression: "[? category == `workspace`].enabled | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
# Verify that logs are being sent to one or more of the following destinations: Azure Log Analytics workspace, Azure Storage Account, Azure Event Hubs
- status: "INCOMPLIANT"
currentStateMessage: "Logs destination does not exist."
remediationMessage: "Set a destination for the logs"
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__workspaceId__c"
- IS_EMPTY:
arg:
EXTRACT: CA10__storageAccountId__c
- IS_EMPTY:
arg:
EXTRACT: CA10__eventHubAuthorizationRuleId__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "Diagnostic Settings are configured properly."