π§ Azure Storage Account Require Infrastructure Encryption is not enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml
- Located in: π Azure Storage Account Require Infrastructure Encryption is not enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Storage Account | CA10__CaAzureStorageAccount__c | 23 | 1 | 13 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:59.217313311Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/storage/require-infrastructure-encryption/policy.yaml | A3B5CDA47542F5DF03F6AD3B1524A54D |
Open | /ce/ca/azure/storage/require-infrastructure-encryption/prod.logic.yaml | 130B73B4F98F7F1151603C1103459B27 |
Open | /types/CA10__CaAzureStorageAccount__c/object.extracts.yaml | 92D968DD14AC8426E1942BC29A409B13 |
Open | /ce/ca/azure/storage/require-infrastructure-encryption/test-data.json | 52945B13CFC5EE156761B93E7586E968 |
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β
---
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."