Skip to main content

🧠 Azure Storage Account Trusted Azure Services are not enabled as networking exceptions - prod.logic.yaml 🟒

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(extract('CA10__networkAclsBypass__c').contains('azureservices'))βœ”οΈ null
🟒test3βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null
🟒test4βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 101βœ”οΈ CA10__networkAclsBypass__c.isEmpty()βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/storage/trusted-azure-services-exceptions/policy.yaml7732FE41DE4B9C714B8698BE975814E6
Open/ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml8F4162A1B726CC16428D28BC73CC5F49
Open/ce/ca/azure/storage/trusted-azure-services-exceptions/test-data.json083023A58C52F26AB217CE077505ABE8
Open/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml2E0979CA85C35CDB555F32B262F6942F

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/storage/trusted-azure-services-exceptions/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: "Allow trusted Azure services exception is not enabled."
remediationMessage: "Consider enabling Trusted Azure Services."
check:
NOT:
arg:
CONTAINS:
arg:
EXTRACT: "CA10__networkAclsBypass__c"
substring:
TEXT: "azureservices"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Trusted Azure Services exception is enabled."