Skip to main content

🧠 Azure Storage Account Require Infrastructure Encryption is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure Storage AccountCA10__CaAzureStorageAccount__c23113

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:45:59.217313311Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 101βœ”οΈ CA10__requireInfrastructureEncryptionState__c.isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ extract('CA10__requireInfrastructureEncryptionState__c') == 'Disabled'βœ”οΈ null
🟒test4βœ”οΈ 299βœ”οΈ extract('CA10__requireInfrastructureEncryptionState__c') == 'Enabled'βœ”οΈ null
🟒test5βœ”οΈ 101βœ”οΈ CA10__requireInfrastructureEncryptionState__c.isEmpty()βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/storage/require-infrastructure-encryption/policy.yamlA3B5CDA47542F5DF03F6AD3B1524A54D
Open/ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml130B73B4F98F7F1151603C1103459B27
Open/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml92D968DD14AC8426E1942BC29A409B13
Open/ce/ca/azure/storage/require-infrastructure-encryption/test-data.json52945B13CFC5EE156761B93E7586E968

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAzureStorageAccount__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Require Infrastructure Encryption setting is disabled."
remediationMessage: "Consider enabling Require Infrastructure Encryption setting."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__requireInfrastructureEncryptionState__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "Require Infrastructure Encryption setting is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__requireInfrastructureEncryptionState__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."