Skip to main content

๐Ÿง  Azure Savings Plan utilization is below 80% - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-09-22T15:06:45.966775996Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขgoneโœ”๏ธ 99โœ”๏ธ isDisappeared(CA10Z1__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขmissing-stateโœ”๏ธ 199โœ”๏ธ extract('CA10Z1__provisioningState__c').isEmpty()โœ”๏ธ null
๐ŸŸขexpiredโœ”๏ธ 299โœ”๏ธ extract('CA10Z1__provisioningState__c') != 'Succeeded'โœ”๏ธ null
๐ŸŸขfresh-incompleteโœ”๏ธ 399โœ”๏ธ CA10Z1__CaAzureSavingsPlanUtilization__r.has(UNDETERMINED)โœ”๏ธ null
๐ŸŸขmissing-usage-dateโœ”๏ธ 399โœ”๏ธ CA10Z1__CaAzureSavingsPlanUtilization__r.has(UNDETERMINED)โœ”๏ธ null
๐ŸŸขstale-incompleteโœ”๏ธ 600โœ”๏ธ otherwiseโœ”๏ธ null
๐ŸŸขmixed-recent-periodsโœ”๏ธ 499โœ”๏ธ CA10Z1__CaAzureSavingsPlanUtilization__r.has(INCOMPLIANT)โœ”๏ธ null
๐ŸŸขbelowโœ”๏ธ 499โœ”๏ธ CA10Z1__CaAzureSavingsPlanUtilization__r.has(INCOMPLIANT)โœ”๏ธ null
๐ŸŸขboundaryโœ”๏ธ 599โœ”๏ธ CA10Z1__CaAzureSavingsPlanUtilization__r.has(COMPLIANT)โœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/azure/savings-plan/utilization-below-threshold/policy.yaml2E2A1217422C7279D770608005116948
Open/ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yamlF2249CFCAFDBBB6F7F81603E4D919FAE
Open/ce/ca/azure/savings-plan/utilization-below-threshold/test-data.jsonDB44D8F2AD88E2E2D551ECC75AF81078
Open/types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yamlA48C2F3CC67C2B1D21FA44A52C30DEC9
Open/types/CA10Z1__CaAzureSavingsPlanUtilization__c/object.extracts.yaml26CE1DEC06D06DADE370978CC555F6EC

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/savings-plan/utilization-below-threshold/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10Z1__CaAzureSavingsPlan__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The Savings Plan provisioning state is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__provisioningState__c"
- status: "INAPPLICABLE"
currentStateMessage: "The Savings Plan is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "UNDETERMINED"
currentStateMessage: "A utilization record within the last 40 days has incomplete data."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10Z1__CaAzureSavingsPlanUtilization__r"
- status: "INCOMPLIANT"
currentStateMessage: "Savings Plan utilization was below 80% within the last 40 days."
remediationMessage: "Review recent utilization and adjust future Savings Plan commitment coverage if the shortfall is persistent."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__CaAzureSavingsPlanUtilization__r"
- status: "COMPLIANT"
currentStateMessage: "Savings Plan utilization met the 80% threshold throughout the available records from the last 40 days."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10Z1__CaAzureSavingsPlanUtilization__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "No complete Savings Plan utilization record is available within the last 40 days."
relatedLists:
- relationshipName: "CA10Z1__CaAzureSavingsPlanUtilization__r"
importExtracts:
- file: "/types/CA10Z1__CaAzureSavingsPlanUtilization__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The utilization record's Usage Date is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__usageDate__c"
- status: "INAPPLICABLE"
currentStateMessage: "The utilization record is outside the 40-day reporting window."
check:
NOT:
arg:
IS_WITHIN_LAST_DAYS:
offsetDays: 40
arg:
EXTRACT: "CA10Z1__usageDate__c"
- status: "UNDETERMINED"
currentStateMessage: "The utilization record's average utilization is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__avgUtilizationPercentage__c"
- status: "INCOMPLIANT"
currentStateMessage: "Average utilization is below 80%."
remediationMessage: "Review recent eligible usage and future commitment requirements."
check:
LESS_THAN:
left:
EXTRACT: "CA10Z1__avgUtilizationPercentage__c"
right:
NUMBER: 80.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "Average utilization meets the 80% threshold."