Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Azure โ†’ ๐Ÿ“ Reservations โ†’ ๐Ÿ›ก๏ธ Reservation expired in the last 30 days๐ŸŸข

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

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2025-10-01T12:47:00.545121550Z Open

ResultIdCondition IndexCondition TextRuntime 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โ€‹

FileMD5
Open/ce/ca/azure/reservations/reservation-expired-in-last-30-days/policy.yaml9BA1E369CC88E52FFCC399055017E349
Open/ce/ca/azure/reservations/reservation-expired-in-last-30-days/prod.logic.yaml52AB9B618A538F54106140374F23ACF7
Open/ce/ca/azure/reservations/reservation-expired-in-last-30-days/test-data.json7C7C4EBD2C9C70E80125A5051EBB2C47
Open/types/CA10Z1__CaAzureReservation__c/object.extracts.yamlBAF6C1776D15C0CD930DFF3000823EE6

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โ€‹

Open File

---
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."