Keywords: Apache Airflow - Microsoft Azure - Technical issue - Secure Connections (SSL/HTTPS)
Description:
Hi Team,
I am trying to create "Airflow with Azure Database for PostgreSQL" but fails due to SSLEnforcement policy violation.
Below is the raw error message:
{
"code": "InvalidTemplateDeployment",
"details": [
{
"code": "RequestDisallowedByPolicy",
"target": "myairflowjuay7un24pdea-database",
"message": "Resource 'myairflowjuay7un24pdea-database' was disallowed by policy. Policy identifiers: '[{\"policyAssignment\":{\"name\":\"DENY-PG-sslEnforcement\",\"id\":\"/providers/Microsoft.Management/managementGroups/*******************/providers/Microsoft.Authorization/policyAssignments/DENY-PG-sslEnforcement\"},\"policyDefinition\":{\"name\":\"DENY-PG-sslEnforcement\",\"id\":\"/providers/Microsoft.Management/managementgroups/****************/providers/Microsoft.Authorization/policyDefinitions/DENY-PG-sslEnforcement\"}}]'.",
"additionalInfo": [
{
"type": "PolicyViolation",
"info": {
"policyDefinitionDisplayName": "DENY-PG-sslEnforcement",
"evaluationDetails": {
"evaluatedExpressions": [
{
"result": "True",
"expressionKind": "Field",
"expression": "type",
"path": "type",
"expressionValue": "Microsoft.DBforPostgreSQL/servers",
"targetValue": "Microsoft.DBforPostgreSQL/servers",
"operator": "Equals"
},
{
"result": "True",
"expressionKind": "Field",
"expression": "Microsoft.DBforPostgreSQL/servers/sslEnforcement",
"path": "properties.sslEnforcement",
"targetValue": "Enabled",
"operator": "NotEquals"
}
]
},
"policyDefinitionId": "/providers/Microsoft.Management/managementgroups/*********************/providers/Microsoft.Authorization/policyDefinitions/DENY-PG-sslEnforcement",
"policyDefinitionName": "DENY-PG-sslEnforcement",
"policyDefinitionEffect": "deny",
"policyAssignmentId": "/providers/Microsoft.Management/managementGroups/*********************/providers/Microsoft.Authorization/policyAssignments/DENY-PG-sslEnforcement",
"policyAssignmentName": "DENY-PG-sslEnforcement",
"policyAssignmentDisplayName": "DENY-PG-sslEnforcement",
"policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/***************************",
"policyAssignmentParameters": {}
}
}
]
}
],
"message": "The template deployment failed because of policy violation. Please see details for more information."
}
Is there any way to turn on SSLEnabled flag for Azure PostgreSQL ?