π§ Azure Storage Account Trusted Azure Services are not enabled as networking exceptions - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml
- Located in: π Azure Storage Account Trusted Azure Services are not enabled as networking exceptions π’
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:21.405782755Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/storage/trusted-azure-services-exceptions/policy.yaml | 7732FE41DE4B9C714B8698BE975814E6 |
Open | /ce/ca/azure/storage/trusted-azure-services-exceptions/prod.logic.yaml | 8F4162A1B726CC16428D28BC73CC5F49 |
Open | /ce/ca/azure/storage/trusted-azure-services-exceptions/test-data.json | 083023A58C52F26AB217CE077505ABE8 |
Open | /types/CA10__CaAzureStorageAccount__c/object.extracts.yaml | 2E0979CA85C35CDB555F32B262F6942F |
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β
---
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."