🧠 Azure Storage Account has no transactions or stored data - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-09-22T15:06:49.905837401Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | 001 | ✔️ 300 | ✔️ otherwise | ✔️ null |
| 🟢 | gone | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | missing | ✔️ 199 | ✔️ extract('CA10__monitorTransactionsSum30Day__c').isEmpty() || extract('CA10__monitorUsedCapacityBytesAvg30Day__c').isEmpty() | ✔️ null |
| 🟢 | empty | ✔️ 299 | ✔️ extract('CA10__monitorTransactionsSum30Day__c') == number(0.0) && extract('CA10__monitorUsedCapacityBytesAvg30Day__c') == number(0.0) | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/policy.yaml | 27FB11F181F6F0CA9A6FDFE0B069D2BF |
| Open | /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml | 6F3FE4D49A15094219D29E6AAEFF8ED7 |
| Open | /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/test-data.json | BC296E535A46D531360B740927C53F4B |
| Open | /types/CA10__CaAzureStorageAccount__c/object.extracts.yaml | DF0B0F4A488784069D6A056FBD3A3133 |
Available Commands
repo-manager policies generate FULL /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/storage/account-has-no-transactions-or-stored-data/prod.logic.yaml
Content
---
inputType: "CA10__CaAzureStorageAccount__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "30-day transaction or capacity evidence is unavailable."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__monitorTransactionsSum30Day__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__monitorUsedCapacityBytesAvg30Day__c"
- status: "INCOMPLIANT"
currentStateMessage: "The storage account has no transactions or stored data in the last 30 days."
remediationMessage: "Review dependencies and data-protection requirements before deleting the storage account."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__monitorTransactionsSum30Day__c"
right:
NUMBER: 0.0
- IS_EQUAL:
left:
EXTRACT: "CA10__monitorUsedCapacityBytesAvg30Day__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The storage account has transactions or stored data in the last 30 days."