Skip to main content

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

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

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10Z1__disappearanceTime__c)โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 399โœ”๏ธ extract('CA10Z1__expiryDate__c').beyondNextDays(60)โœ”๏ธ null
๐ŸŸข003โœ”๏ธ 400โœ”๏ธ otherwiseโœ”๏ธ null
๐ŸŸข004โœ”๏ธ 400โœ”๏ธ otherwiseโœ”๏ธ null
๐ŸŸข005โœ”๏ธ 299โœ”๏ธ extract('CA10Z1__expiryDate__c').isEmpty()โœ”๏ธ null
๐ŸŸข006โœ”๏ธ 199โœ”๏ธ extract('CA10Z1__provisioningState__c') != 'Succeeded'โœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/azure/reservations/reservation-expires-in-60-days/policy.yaml47C767295779BD6699FAC69FA6519AD6
Open/ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yamlDDA3914B6159E1345D2947E7EA4ADCF8
Open/ce/ca/azure/reservations/reservation-expires-in-60-days/test-data.jsonBC71BFF06549D1AC1EB1FEBA08323799
Open/types/CA10Z1__CaAzureReservation__c/object.extracts.yamlBAF6C1776D15C0CD930DFF3000823EE6

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/reservations/reservation-expires-in-60-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/reservations/reservation-expires-in-60-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 successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "INAPPLICABLE"
currentStateMessage: "The Reservation expiry date is empty."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__expiryDate__c"
- status: "COMPLIANT"
currentStateMessage: "The Reservation is not expiring."
check:
IS_BEYOND_NEXT_DAYS:
offsetDays: 60
arg:
EXTRACT: "CA10Z1__expiryDate__c"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The Reservation expires in 60 days or less."
remediationMessage: "Consider renewing the reservation to maintain discounts and avoid paying on-demand prices."