Calling Azure Databricks query from Azure Function

Gowrikanth 1 Reputation point
2020-09-16T13:24:48.947+00:00

Hi Everyone,

Is possible to call a SQL query in Azure Databricks(Cluster) inside a Azure Function ? Normally to conenct SQL server from Azure function, we use to create connection string in application seetings and use to retrive using environmnet variables. In the same way possible to call a table in azure databricks using Azure function.

Thanks,
Gowrikanth.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,322 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,947 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Krish G 2,326 Reputation points
    2020-09-16T18:43:58.537+00:00

    Azure Databricks provides a rich set of REST APIs which you can leverage for this purpose. As understood from your question, you want to run your Databricks job you wrote in a notebook in SQL.

    From the Azure Function perspective, you will need to maintain configurations required for the authentication and the your Databricks API endpoint (any secrets are recommended to be stored in Key Vault). The code involved would be dependent on the language you are using in your Function app.