π§ Azure Databricks Workspace is not deployed in a customer-managed virtual network (VNet) - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml
- Located in: π Azure Databricks Workspace is not deployed in a customer-managed virtual network (VNet) π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Databricks Workspace | CA10Z1__CaAzureDatabricksWorkspace__c | 4 | 1 | 2 |
Usesβ
Test Results π’β
Generated at: 2025-07-21T17:37:23.298559827Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10Z1__disappearanceTime__c) | βοΈ null |
π’ | 002 | βοΈ 199 | βοΈ extract('caJsonText__parametersJsonCustomVirtualNetworkValue__c').isEmpty() | βοΈ null |
π’ | 003 | βοΈ 199 | βοΈ extract('caJsonText__parametersJsonCustomVirtualNetworkValue__c').isEmpty() | βοΈ null |
π’ | 004 | βοΈ 199 | βοΈ extract('caJsonText__parametersJsonCustomVirtualNetworkValue__c').isEmpty() | βοΈ null |
π’ | 005 | βοΈ 299 | βοΈ extract('caJsonText__parametersJsonCustomVirtualNetworkValue__c').isNotEmpty() | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/databricks/customer-managed-virtual-network/policy.yaml | 99F0728712C9E23B96E3DF0394288B8B |
Open | /ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml | 05D8CFF1B6F4E5B6B424091D77FD9E42 |
Open | /ce/ca/azure/databricks/customer-managed-virtual-network/test-data.json | 2C838A9C6E91A402ADCED8CF48344C05 |
Open | /types/CA10Z1__CaAzureDatabricksWorkspace__c/object.extracts.yaml | 386013C014351948A2036C32C9D43AB2 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/databricks/customer-managed-virtual-network/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/databricks/customer-managed-virtual-network/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 deployed in a customer-managed virtual network."
remediationMessage: "Consider deleting the existing Databricks workspace and\
\ deploying a new Azure Databricks Workspace in a custom virtual network."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__parametersJsonCustomVirtualNetworkValue__c"
- status: "COMPLIANT"
currentStateMessage: "The Databricks Workspace is deployed in a customer-managed virtual network."
check:
NOT_EMPTY:
arg:
EXTRACT: "caJsonText__parametersJsonCustomVirtualNetworkValue__c"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."