π§ Azure SQL Server Microsoft Entra authentication is not configured - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
- Located in: π Azure SQL Server Microsoft Entra authentication is not configured π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure SQL Server | CA10__CaAzureSqlServer__c | 9 | 1 | 6 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:49.447231533Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 101 | βοΈ CA10__activeDirectoryAdminType__c.delegatedTo(CA10__activeDirectoryAdminType__c).isEmpty() | βοΈ null |
π’ | test3 | βοΈ 199 | βοΈ extract('CA10__activeDirectoryAdminType__c') == 'ActiveDirectory' | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/sql-database/server-microsoft-entra-authentication/policy.yaml | E9B4E6ECE56D4156B766061B9B675F79 |
Open | /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml | FB073D49B6CB751FB05906B02983A2B2 |
Open | /ce/ca/azure/sql-database/server-microsoft-entra-authentication/test-data.json | A2129674BD49492290B366803C570E4F |
Open | /types/CA10__CaAzureSqlServer__c/object.extracts.yaml | E77808BBEDF31D54E009EEA59AC5EF4B |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureSqlServer__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureSqlServer__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Microsoft Entra administrator is configured for this SQL server."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__activeDirectoryAdminType__c"
right:
TEXT: "ActiveDirectory"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Microsoft Entra administrator is not configured for this SQL server."
remediationMessage: "Consider assigning an Administrator in Entra ID for authentication with SQL Server."