π§ Azure Subscription Activity Log Alert for Create or Update Security Solution does not exist - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
- Located in: π Azure Subscription Activity Log Alert for Create or Update Security Solution does not exist π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Subscription | CA10__CaAzureAccount__c | 13 | 1 | 31 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:46:05.682718075Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ CA10__Azure_Activity_Log_Alerts__r.has(COMPLIANT) | βοΈ null |
π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test4 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test5 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test6 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test7 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test8 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test9 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test10 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test11 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test12 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/policy.yaml | 2DBADBD02C2E4852C89442F1BD2340EE |
Open | /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml | 8CBCFC3A68471C83C68DC0530E64A7DA |
Open | /types/CA10__CaAzureActivityLogAlert__c/object.extracts.yaml | 79B153D6511F943B6AB929697CE0452E |
Open | /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/test-data.json | EDF1114DD867EC8C091330E33321749A |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/subscription/activity-log-alert-for-create-or-update-security-solution/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This subscription has an Activity Log Alert for Create or Update Security Solution."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__Azure_Activity_Log_Alerts__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "This subscription doesn't have an Activity Log Alert for Create or Update Security Solution."
remediationMessage: "Consider creating an Activity Log Alert for Create or Update Security Solution."
relatedLists:
- relationshipName: "CA10__Azure_Activity_Log_Alerts__r"
importExtracts:
- file: "/types/CA10__CaAzureActivityLogAlert__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is a disabled Activity Log Alert."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__enabledStatus__c"
right:
TEXT: "Enabled"
- status: "COMPLIANT"
currentStateMessage: "This is an Activity Log Alert for Create or Update Security Solution."
check:
IS_EQUAL:
left:
JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__conditionJson__c"
expression: "contains(allOf[*].equals, 'Microsoft.Security/securitySolutions/write')"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return boolean type."
right:
BOOLEAN: true
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This is an unrelated Activity Log Alert."