def applicationinsights_data_plane_client(cli_ctx, _, subscription=None):
    """Initialize Log Analytics data client for use with CLI."""
    from .vendored_sdks.applicationinsights import ApplicationInsightsDataClient
    from azure.cli.core._profile import Profile
    profile = Profile(cli_ctx=cli_ctx)
    cred, _, _ = profile.get_login_credentials(
        resource="https://api.applicationinsights.io",
        subscription_id=subscription
    )
    return ApplicationInsightsDataClient(cred)
def applicationinsights_data_plane_client ( cli_ctx , _ , subscription = None ) : from . vendored_sdks . applicationinsights import ApplicationInsightsDataClient from azure . cli . core . _profile import Profile profile = Profile ( cli_ctx = cli_ctx ) cred , _ , _ = profile . get_login_credentials ( resource = "https://api.applicationinsights.io" , subscription_id = subscription ) return ApplicationInsightsDataClient ( cred )
Initialize Log Analytics data client for use with CLI.