Skip to main content

๐Ÿง  Azure Savings Plan expired in the last 30 days - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-09-22T15:06:45.143782177Z 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
๐ŸŸขrecentโœ”๏ธ 399โœ”๏ธ extract('CA10Z1__expiryDateTime__c').beforeToday() && extract('CA10Z1__expiryDateTime__c').withinLastDays(30)โœ”๏ธ null
๐ŸŸขoldโœ”๏ธ 400โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/azure/savings-plan/expired-in-last-30-days/policy.yaml886563BC2EAB4615510A82F9B8D43FC7
Open/ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml81C3E69688B1C87869A274A98757CBC0
Open/ce/ca/azure/savings-plan/expired-in-last-30-days/test-data.json73A8E467B65FB62EB6BBC1457A69463E
Open/types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yamlA48C2F3CC67C2B1D21FA44A52C30DEC9

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/savings-plan/expired-in-last-30-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 expired in the last 30 days."
remediationMessage: "Review whether replacement Savings Plan coverage is needed."
check:
AND:
args:
- IS_BEFORE_TODAY:
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
- IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10Z1__expiryDateTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Savings Plan did not expire in the last 30 days."