code: 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)
docs: Initialize Log Analytics data client for use with CLI.