โญ Repository โ ๐ Compliance Engine โ ๐ CloudAware โ ๐ Azure โ ๐ Reservations โ ๐ก๏ธ Reservation expired in the last 30 days๐ข
๐ง Azure Reservation expired in the last 30 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-01T12:47:00.545121550Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | 001 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10Z1__disappearanceTime__c) | โ๏ธ null |
๐ข | 002 | โ๏ธ 399 | โ๏ธ extract('CA10Z1__expiryDate__c').withinLastDays(30) | โ๏ธ null |
๐ข | 003 | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
๐ข | 004 | โ๏ธ 299 | โ๏ธ extract('CA10Z1__expiryDate__c').isEmpty() | โ๏ธ null |
๐ข | 006 | โ๏ธ 199 | โ๏ธ extract('CA10Z1__provisioningState__c') != 'Expired' | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/reservations/reservation-expired-in-last-30-days/policy.yaml | 9BA1E369CC88E52FFCC399055017E349 |
Open | /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml | 52AB9B618A538F54106140374F23ACF7 |
Open | /ce/ca/azure/reservations/reservation-expired-in-last-30-days/test-data.json | 7C7C4EBD2C9C70E80125A5051EBB2C47 |
Open | /types/CA10Z1__CaAzureReservation__c/object.extracts.yaml | BAF6C1776D15C0CD930DFF3000823EE6 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml
Contentโ
---
inputType: "CA10Z1__CaAzureReservation__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10Z1__CaAzureReservation__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Reservation is not expired."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Expired"
- status: "INAPPLICABLE"
currentStateMessage: "The Reservation expiry date is empty."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__expiryDate__c"
- status: "INCOMPLIANT"
currentStateMessage: "The reservation has expired within the last 30 days."
remediationMessage: "Review the expired reservation to ensure it was intentionally not renewed."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10Z1__expiryDate__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The reservation expired more than 30 days ago."