Skip to main content

🧠 Azure Storage Account uses Locally Redundant Storage replication option - prod.logic.yaml 🟒

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-05-10T12:03:15.391184472Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒111βœ”οΈ 199βœ”οΈ extract('CA10__skuName__c').endsWith('LRS')βœ”οΈ null
🟒222βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/storage/locally-redundant-storage/policy.yamlEB5F93241FF96BDED4C70CD8D8B6EF09
Open/ce/ca/azure/storage/locally-redundant-storage/prod.logic.yamlA5DB5B03F0C90513AF08113DEE60BBE3
Open/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml2E0979CA85C35CDB555F32B262F6942F
Open/ce/ca/azure/storage/locally-redundant-storage/test-data.json10C8BD197387AC183C7A12A488884AE1

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​

Open File

---
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."