Skip to main content

๐Ÿง  Azure Savings Plan expires in the next 60 days - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 299โœ”๏ธ extract('CA10Z1__provisioningState__c') != 'Succeeded'โœ”๏ธ null
๐ŸŸขdisappearedโœ”๏ธ 99โœ”๏ธ isDisappeared(CA10Z1__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขmissingโœ”๏ธ 199โœ”๏ธ extract('CA10Z1__provisioningState__c').isEmpty() || extract('CA10Z1__expiryDateTime__c').isEmpty()โœ”๏ธ null
๐ŸŸขexpiringโœ”๏ธ 399โœ”๏ธ extract('CA10Z1__expiryDateTime__c').withinNextDays(60)โœ”๏ธ null
๐ŸŸขtodayโœ”๏ธ 399โœ”๏ธ extract('CA10Z1__expiryDateTime__c').withinNextDays(60)โœ”๏ธ null
๐ŸŸขlaterโœ”๏ธ 400โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/azure/savings-plan/expires-in-60-days/policy.yamlC3DA96CC5223CBB0658638FC35068E06
Open/ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml51A5F1EEF369F99A169097DEF77A1091
Open/ce/ca/azure/savings-plan/expires-in-60-days/test-data.json441223413D6C953A58F1398018E76F2D
Open/types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yamlA48C2F3CC67C2B1D21FA44A52C30DEC9

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/savings-plan/expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/savings-plan/expires-in-60-days/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: "Provisioning state or expiry date is unavailable."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__provisioningState__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
- status: "INAPPLICABLE"
currentStateMessage: "The Savings Plan is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "INCOMPLIANT"
currentStateMessage: "The Savings Plan expires in 60 days or less."
remediationMessage: "Review whether replacement Savings Plan coverage is needed."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Savings Plan is not expiring within the next 60 days."