Skip to main content

🧠 Microsoft Entra ID Security Defaults are not enabled - prod.logic.yaml🟢

Uses

Test Results 🟢

Generated at: 2025-12-17T01:31:06.807035546Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟢001✔️ 199✔️ extract('CA10__securityDefaultsEnforcementPolicy__c').isEmpty()✔️ null
🟢002✔️ 299✔️ extract('CA10__securityDefaultsEnforcementPolicy__c') == 'Disabled'✔️ null
🟢003✔️ 399✔️ extract('CA10__securityDefaultsEnforcementPolicy__c') == 'Enabled'✔️ null

Generation Bundle

FileMD5
Open/ce/ca/azure/microsoft-entra-id/security-defaults/policy.yaml03B879CAAA9056FECF5C567F65B63488
Open/ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml5548727ADC8B309B06A9956D83E21290
Open/ce/ca/azure/microsoft-entra-id/security-defaults/test-data.json6472B54D3DAA321D14DB02171EDDCD49
Open/types/CA10__CaAzureActiveDirectory__c/object.extracts.yamlE7567F00A5ABA5CE30D1D71042DB9FF5

Available Commands

repo-manager policies generate FULL /ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/microsoft-entra-id/security-defaults/prod.logic.yaml

Content

Open File

---
inputType: "CA10__CaAzureActiveDirectory__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureActiveDirectory__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Security defaults are not enabled for the Active Directory."
remediationMessage: "Enable Security defaults for Active Directory"
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__securityDefaultsEnforcementPolicy__c"
- status: "INCOMPLIANT"
currentStateMessage: "Security defaults are disabled for the Active Directory."
remediationMessage: "Enable Security defaults for Active Directory"
check:
IS_EQUAL:
left:
EXTRACT: "CA10__securityDefaultsEnforcementPolicy__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "Security defaults are enabled for the Active Directory."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__securityDefaultsEnforcementPolicy__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected Security Defaults state value."