π§ Azure Storage Account uses Locally Redundant Storage replication option - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml
- Located in: π Azure Storage Account uses Locally Redundant Storage replication option π’
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 | 24 | 1 | 14 |
Usesβ
Test Results π’β
Generated at: 2025-05-10T12:03:15.391184472Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 111 | βοΈ 199 | βοΈ extract('CA10__skuName__c').endsWith('LRS') | βοΈ null |
π’ | 222 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/storage/locally-redundant-storage/policy.yaml | EB5F93241FF96BDED4C70CD8D8B6EF09 |
Open | /ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml | A5DB5B03F0C90513AF08113DEE60BBE3 |
Open | /types/CA10__CaAzureStorageAccount__c/object.extracts.yaml | 2E0979CA85C35CDB555F32B262F6942F |
Open | /ce/ca/azure/storage/locally-redundant-storage/test-data.json | 10C8BD197387AC183C7A12A488884AE1 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/locally-redundant-storage/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/storage/locally-redundant-storage/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: "The Storage Account is configured to use Locally Redundant Storage."
remediationMessage: "Consider changing redundancy configuration to one of
\ the recommended options (ZRS, GRS, or GZRS)."
check:
ENDS_WITH:
arg:
EXTRACT: "CA10__skuName__c"
suffix:
TEXT: "LRS"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Storage Account is not configured to use LRS."