topic hubIntegration & APIsofficial - Microsoftreviewed - checked by Opus

Integrating with Azure services

Integration of Business Central with Azure services: Application Insights telemetry, Azure Key Vault secrets for extensions, and Azure Functions calls. It answers questions about setting up these links and monitoring them through telemetry.

Path: Integration > Integrating with Azure services · tier official · system integration · narrative reviewed (checked by Opus)

Overview

This section covers how Business Central connects to Azure services. The landing page lists the services involved: Application Insights, Blob Storage, File Services, Functions, Key Vault, Virtual Networks and Azure OpenAI Service.

The other pages go deeper on three areas. Azure Key Vaults with Business Central explains how extensions store and retrieve secrets for authenticated web service calls, for both online and on-premises deployments. Monitoring and Analyzing Telemetry explains how to emit telemetry to Application Insights at environment and app/extension level, control cost, and analyze data with Power BI or KQL.

Two telemetry pages cover specific signals: Key Vault secret trace telemetry and Azure Function integration telemetry. Start with the overview page, then read the Key Vault or telemetry page that matches your task. Use the signal-specific pages when troubleshooting.

Key points

  • Azure services named in the overview: Application Insights, Blob Storage, File Services, Functions, Key Vault, Virtual Networks and Azure OpenAI Service.
  • Azure Key Vault gives extensions central, secure storage for secrets used in authenticated calls to external services.
  • App key vault setup is described for both online and on-premises deployments.
  • Key Vault secret trace telemetry covers secret initialization (TryInitializeFromCurrentApp) and retrieval (GetSecret), including failure reasons.
  • Azure Function integration telemetry shows success and failure of calls made through the Azure Function module, including request tracking and authorization monitoring.
  • Telemetry can be enabled at environment level and at app/extension level, and it is sent to Azure Application Insights.
  • Telemetry data can be analyzed with Power BI or KQL queries, and cost can be controlled.
  • The telemetry page references 2020 release wave 2.

Learn pages

  • Analyzing App Key Vault Secret Trace Telemetry: Analyze app key vault telemetry in Business Central to troubleshoot extension initialization failures and secret retrieval errors in Azure Key Vault.
    • App key vault telemetry is sent to extension’s Application Insights resource, not environment’s
    • RT0014 successful initialization, RT0015 initialization failure, RT0016 retrieval success, RT0017 retrieval failure
    • Initialization stage verifies app.json configuration and Azure Key Vault Client Identity settings
    • Retrieval stage occurs after successful initialization to get secrets from specified key vault
    • Failure reasons include missing extension specification, incorrect client ID, missing permissions, or invalid secret names
    • Telemetry captures key vault URI, secret name, extension details, and stack trace for troubleshooting
  • Azure Function Integration Telemetry: Analyze Azure Function integration telemetry in Business Central to monitor successful requests, failed requests, and OAuth authorization failures.
    • Azure Function integration telemetry tracks calls from Business Central to Azure Functions.
    • Request succeeded event has eventId AL0000I74 with HTTP status code.
    • Request failed event has eventId AL0000I7P and includes status code and function host URL.
    • Authorization failed event has eventId AL0000I75 with error text explaining failure reason.
    • Common dimensions include function host URL, tenant ID, environment name, and company name.
    • Sample KQL queries help analyze and alert on Azure Function integration failures.
  • Azure Key Vaults with Business Central: Learn how Business Central extensions use Azure Key Vault to securely retrieve secrets in online and on-premises environments.
  • Integrating with Azure services: Learn how to integrate Business Central with Azure services.
  • Monitoring and Analyzing Telemetry: Monitor Business Central environments and extensions with Application Insights telemetry to diagnose errors, analyze performance, and track usage.
    • Environment-level telemetry and app-level telemetry can be enabled separately to Application Insights resources.
    • Status: Per-extension telemetry enabled from Business Central 2020 release wave 2 by setting connection string in app.json.
    • Both online and on-premises instances can emit telemetry to Application Insights.
    • Telemetry data is stored in Application Insights Logs in traces and pageViews tables, queried with KQL.
    • Two free, open-source Power BI apps available from marketplace: one for environment telemetry, one for app telemetry.
    • Permissions: Power BI Pro licenses required to install telemetry Power BI apps.
    • In the observatory: Codeunit 8703 “Feature Telemetry”

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 5 Learn pages