A developer can explore many data streams with Azure Data Explorer. After a developer injest and explore the data, he/she want to query data from application layer. You can learn how to query data from Azure Data Explorer with .NET Core and Azure Functions.
- Have understood What is Azure Data Explorer. This sample focuses on 3. Query database in the document.
- Have finished all quick starts in the document. This sample uses test datbase and table which you create in the tutorial.
- Create Azure AD application and have
client id
,client secret
andtenant id
. - Installed Visual Studio Code
- Have finished Visual Studio Code x Azure Functions tutorial
- Rename
local.settings.sample.json
tolocal.settings.json
and replace value with your Azure AD applications and Azure Data Explorer settings. - Press [F5] key to start Azure Functions app.
- Send HTTP GET (http://localhost:7071/api/GetTestData?durationDay=1) request to the Azure Functions. You can set appropriate
durationDay
variable as positive value. It will change duration of data (ex. 2 means that an app get data from 2 days ago to now)