Skip to main content

🧠 Azure SQL Server Microsoft Entra authentication is not configured - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure SQL ServerCA10__CaAzureSqlServer__c916

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:45:49.447231533Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/azure/sql-database/server-microsoft-entra-authentication/policy.yamlE9B4E6ECE56D4156B766061B9B675F79
Open/ce/ca/azure/sql-database/server-microsoft-entra-authentication/prod.logic.yamlFB073D49B6CB751FB05906B02983A2B2
Open/ce/ca/azure/sql-database/server-microsoft-entra-authentication/test-data.jsonA2129674BD49492290B366803C570E4F
Open/types/CA10__CaAzureSqlServer__c/object.extracts.yamlE77808BBEDF31D54E009EEA59AC5EF4B

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​

Open File

---
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."