Skip to content

Use workspace-based App Insights resources#

Operational Excellence · Application Insights · Azure.AppInsights.Workspace

Configure Application Insights resources to store data in workspaces.


Application Insights (App Insights) can be deployed as either classic or workspace-based resources. When configured as workspace-based, telemetry is sent from App Insights to a common Log Analytics workspace.

Using a Log Analytics workspace for App Insights:

  • Makes it easier to query across applications.
  • Adds support for additional features of Log Analytics workspaces including:
    • Customer-Managed Keys (CMK).
    • Support for Azure Private Link.
    • Capacity Reservation tiers.
    • Faster data ingestion.

App Insights resources can be configured as workspace-based either during or after initial deployment.


Consider using workspace-based Application Insights resources.


Configure with Azure template#

To deploy Application Insights resources that pass this rule:

  • Set the properties.WorkspaceResourceId property to a valid Log Analytics workspace.

For example:

    "type": "microsoft.insights/components",
    "apiVersion": "2020-02-02-preview",
    "name": "[parameters('name')]",
    "location": "[parameters('location')]",
    "kind": "web",
    "properties": {
        "Application_Type": "web",
        "Flow_Type": "Redfield",
        "Request_Source": "IbizaAIExtension",
        "WorkspaceResourceId": "[parameters('workspaceResourceId')]",
        "publicNetworkAccessForIngestion": "Enabled",
        "publicNetworkAccessForQuery": "Enabled"

Last update: 2021-09-24