Within terraform Azure server I have whitelisted the ips but cannot access the server with anything but the admin login. Is there an additional configuration/role needed to permit active directory access that I am missing?
script:
# Create Server using keyvault secrets for user/pw
resource "azurerm_sql_server" "sqlserver" {
name = "sql-${var.suffix}"
resource_group_name = var.resource_group_name
location = var.location
version = "12.0"
administrator_login = data.azurerm_key_vault_secret.sqlserverusr.value
administrator_login_password = data.azurerm_key_vault_secret.sqlserverpw.value
}
# Create SQL Server firewall rule for Azure resouces access
resource "azurerm_sql_firewall_rule" "azureservicefirewall" {
name = "allow-azure-service"
resource_group_name = var.resource_group_name
server_name = azurerm_sql_server.sqlserver.name
start_ip_address = "0.0.0.0"
end_ip_address = "0.0.0.0"
}