Search code examples
javaazureazure-functionsazure-application-insights

Access Data from Azure Application Inside


I have created an Azure Function that has the purpose of generating data under certain conditions. During the day, the function is triggered several times and if the condition is met, the data is saved in a database and a project team is informed. Since it can sometimes happen that no data is generated in a week, the project team should receive a weekly report about the number of Azure Function executions and whether they were successful or not. I have seen in the Azure Portal that the Application Inside stores exactly this data, but I am not yet clear how I can access this data.

What options do I have in Java to retrieve and process the telemetry data?


Solution

  • What options do I have in Java to retrieve and process the telemetry data?

    To retrieve the telemetry data and store it for longer time or to process the telemetry data in some specialized way, Continuous Export is ideal for this purpose.


    Alternative ways to retrieve or access/process the telemetry data:

    1. In the Log explorer, export button lets you transfer tables and charts to an Excel spreadsheet.
    2. Log Analytics Queries also exports the results of telemetry data.
    3. Power BI used to explore and export your data.
    4. To access your telemetry programmatically, you can use the Data access REST API.
    5. Through PowerShell, you can also access setup continuous export.

    Instead of Log Analytics API, you can access it programmatically for retrieve and storing the Telemetry data because the Query API has some query limits.

    To access programmatically, the Azure Monitor Query SDK contains idiomatic client libraries for JavaScript, .NET, Python, and Java.

    Refer to the Azure Monitor Query Client Library for Java Documentation by Microsoft provides sample code examples to view how to access/process the Telemetry logs programmatically.