๐ง Azure Savings Plan expired in the last 30 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-09-22T15:06:45.143782177Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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โ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/savings-plan/expired-in-last-30-days/policy.yaml | 886563BC2EAB4615510A82F9B8D43FC7 |
| Open | /ce/ca/azure/savings-plan/expired-in-last-30-days/prod.logic.yaml | 81C3E69688B1C87869A274A98757CBC0 |
| Open | /ce/ca/azure/savings-plan/expired-in-last-30-days/test-data.json | 73A8E467B65FB62EB6BBC1457A69463E |
| Open | /types/CA10Z1__CaAzureSavingsPlan__c/object.extracts.yaml | A48C2F3CC67C2B1D21FA44A52C30DEC9 |
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โ
---
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."