How to setup diagnostic settings (continuous export) for PME based App Insights to Event Hub (in corp tenant)

Roshani Mangalore 0 Reputation points Microsoft Employee
2023-06-02T22:09:09.35+00:00

I have workspace-based Application Insights instance in pme tenant and I want to setup continuous export of logs to Kusto (in corp tenant). How to achieve this?

We had powershell continuous export for classic version on App Inights but new version doesn't support it

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
479 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
330 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 17,700 Reputation points
    2023-06-03T05:11:48.27+00:00

    To set up continuous export of logs from a workspace-based Application Insights instance to Kusto in a different tenant, you can use the Azure Portal and Azure Data Explorer (ADX). Here's a step-by-step guide:

    Create an ADX cluster in the target tenant: In the Azure Portal, navigate to the target Azure tenant and create an ADX cluster. Make sure you have the necessary permissions to create and manage resources in that tenant.

    Configure an ADX database: Within the ADX cluster, create a database that will receive the exported logs from Application Insights.

    Obtain the connection details: Retrieve the connection details for the ADX cluster and database, including the cluster URI, database name, and authentication details. You'll need these to configure the export in Application Insights.

    Set up Continuous Export in Application Insights: In the Azure Portal, navigate to the workspace-based Application Insights instance in the pme tenant that you want to export logs from.

    • Go to the "Continuous Export" section under the "Monitoring" category.
    • Click on "Add Export" and select "ADX Export" from the drop-down menu.
    • Provide the required details:
    • ADX Cluster URI: Enter the URI of the ADX cluster you created in the target tenant.
    • Database Name: Specify the name of the database in the ADX cluster where you want to export the logs.
    • Tenant ID: Enter the tenant ID of the target tenant where the ADX cluster is located.
    • Application ID: Provide the application ID of an Azure AD application with sufficient permissions to write data to the ADX cluster.
    • Application Key/Secret: Enter the corresponding key or secret for the Azure AD application.
    • Click on "Save" to save the configuration.

    Verify and monitor the export: Once the continuous export is set up, Application Insights will start sending logs to the configured ADX cluster in the target tenant. You can monitor the export and verify its success by checking the exported data in the ADX database.

    Note: Ensure that you have the necessary permissions and network connectivity between the pme and corp tenants, as well as between Application Insights and ADX. You may need to work with your Azure administrators to configure appropriate network access if needed.

    By following these steps, you can establish continuous export of logs from a workspace-based Application Insights instance to a Kusto cluster in a different tenant using Azure Portal and ADX.

    1 person found this answer helpful.