Skip to main content

🧠 Azure PostgreSQL Flexible Server connection_throttle.enable Parameter is not set to ON - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:33:33.187164048Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10Z1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 399βœ”οΈ extract('caJsonFrom__configurations__c').jsonQueryText('[? name == \'connection_throttle.enable\'].value | [0]') == 'on'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('caJsonFrom__configurations__c').jsonQueryText('[? name == \'connection_throttle.enable\'].value | [0]') == 'off'βœ”οΈ null
🟒test4βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 201βœ”οΈ CA10Z1__configurations__c.delegatedTo(CA10Z1__configurations__c).isEmpty()βœ”οΈ null
🟒test6βœ”οΈ 199βœ”οΈ extract('CA10Z1__deploymentMode__c') != 'Flexible'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/policy.yamlBF453A51237813AA9ED8A4E16D850B5B
Open/ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml84195CFEC660CE55F21C207E088A10B2
Open/ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/test-data.json088C0A721691CB0D421AF8FDF25DBE64
Open/types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml57EE11B2A1C370B47B2D4FE4AF22C8D0

Available Commands​

repo-manager policies generate FULL /ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter/prod.logic.yaml

Content​

Open File

---
inputType: "CA10Z1__CaAzurePostgreSqlServer__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is not the flexible server deployment mode."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__deploymentMode__c"
right:
TEXT: "Flexible"
- status: "INCOMPLIANT"
currentStateMessage: "PostgreSQL Flexible Server connection_throttle.enable is not enabled."
remediationMessage: "Enable connection_throttle.enable."
check:
IS_EQUAL:
left:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__configurations__c"
expression: "[? name == 'connection_throttle.enable'].value | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return text type."
right:
TEXT: "off"
- status: "COMPLIANT"
currentStateMessage: "PostgreSQL Flexible Server connection_throttle.enable configuration is enabled."
check:
IS_EQUAL:
left:
JSON_QUERY_TEXT:
arg:
EXTRACT: "caJsonFrom__configurations__c"
expression: "[? name == 'connection_throttle.enable'].value | [0]"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return text type."
right:
TEXT: "on"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."