π§ Azure Synapse Spark pool autoscale is disabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π Azure Synapse Big Data Pool
- π Azure Synapse Big Data Pool - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-09-22T15:07:03.123150717Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | gone | βοΈ 99 | βοΈ isDisappeared(CA10Z1__disappearanceTime__c) | βοΈ null |
| π’ | missing-provisioning-state | βοΈ 199 | βοΈ extract('CA10Z1__provisioningState__c').isEmpty() | βοΈ null |
| π’ | not-ready | βοΈ 299 | βοΈ extract('CA10Z1__provisioningState__c') != 'Succeeded' | βοΈ null |
| π’ | invalid-bounds | βοΈ 399 | βοΈ extract('CA10Z1__autoScaleState__c').isEmpty() || not(extract('CA10Z1__autoScaleState__c') == 'Enabled' || extract('CA10Z1__autoScaleState__c') == 'Disabled') || (extract('CA10Z1__autoScaleState__c') == 'Enabled' && (extract('CA10Z1__autoScaleMinNodeCount__c').isEmpty() || extract('CA10Z1__autoScaleMaxNodeCount__c').isEmpty() || extract('CA10Z1__autoScaleMinNodeCount__c') > extract('CA10Z1__autoScaleMaxNodeCount__c'))) | βοΈ null |
| π’ | unknown-autoscale-state | βοΈ 399 | βοΈ extract('CA10Z1__autoScaleState__c').isEmpty() || not(extract('CA10Z1__autoScaleState__c') == 'Enabled' || extract('CA10Z1__autoScaleState__c') == 'Disabled') || (extract('CA10Z1__autoScaleState__c') == 'Enabled' && (extract('CA10Z1__autoScaleMinNodeCount__c').isEmpty() || extract('CA10Z1__autoScaleMaxNodeCount__c').isEmpty() || extract('CA10Z1__autoScaleMinNodeCount__c') > extract('CA10Z1__autoScaleMaxNodeCount__c'))) | βοΈ null |
| π’ | disabled | βοΈ 499 | βοΈ extract('CA10Z1__autoScaleState__c') == 'Disabled' | βοΈ null |
| π’ | enabled | βοΈ 500 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/synapse/spark-pool-autoscale-disabled/policy.yaml | 2306F9B67304B97CC03D6EDBEF08FED6 |
| Open | /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml | CEC005B6F3D746661F511F10B74C7E73 |
| Open | /ce/ca/azure/synapse/spark-pool-autoscale-disabled/test-data.json | F99580F6E73ACB3CD31BDBA5F1A72381 |
| Open | /types/CA10Z1__CaAzureSynapseBigDataPool__c/object.extracts.yaml | C123E7415A5B87925BC47FE534A9EB60 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/synapse/spark-pool-autoscale-disabled/prod.logic.yaml
Contentβ
---
inputType: "CA10Z1__CaAzureSynapseBigDataPool__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10Z1__CaAzureSynapseBigDataPool__c/object.extracts.yaml
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The Spark pool provisioning state is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__provisioningState__c"
- status: "INAPPLICABLE"
currentStateMessage: "Only successfully provisioned Spark pools are in scope."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "UNDETERMINED"
currentStateMessage: "The autoscale state or enabled bounds are unavailable or invalid."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__autoScaleState__c"
- NOT:
arg:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10Z1__autoScaleState__c"
right:
TEXT: "Enabled"
- IS_EQUAL:
left:
EXTRACT: "CA10Z1__autoScaleState__c"
right:
TEXT: "Disabled"
- AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10Z1__autoScaleState__c"
right:
TEXT: "Enabled"
- OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__autoScaleMinNodeCount__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__autoScaleMaxNodeCount__c"
- GREATER_THAN:
left:
EXTRACT: "CA10Z1__autoScaleMinNodeCount__c"
right:
EXTRACT: "CA10Z1__autoScaleMaxNodeCount__c"
- status: "INCOMPLIANT"
currentStateMessage: "Spark pool autoscale is disabled."
remediationMessage: "Review workload limits, then enable autoscale with valid bounds."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__autoScaleState__c"
right:
TEXT: "Disabled"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Spark pool autoscale is enabled with valid bounds."