Share via

Set up Fabric Capacity-specific workload logging in LogAnalytics with Capacity Diagnostic Settings

Lauren Vanhee 20 Reputation points
2025-06-05T08:49:41.24+00:00

In the diagnostic settings of my Azure Microsoft Fabric Capacity, I currently only see logging options for:

  • Administrative
  • Security
  • ServiceHealth
  • Alert
  • Recommendation
  • Policy
  • Autoscale
  • ResourceHealth

However, I need to add capacity-specific metrics that track the capacity workload, such as:

  • CapacityMetrics
  • WarehouseQueryLogs
  • ActivityLogs
  • PipelineRuns
  • ...

How do I configure my capacity such that I can add these diagnostic settings?


Moved from: Community Center | Not monitored

Azure Advisor
Azure Advisor

An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.


3 answers

Sort by: Most helpful
  1. Hao Vo Van 5 Reputation points
    2025-11-29T03:32:57.2766667+00:00

    The resource type Microsoft.Fabric/capacities not yet support for diagnostic settings so far. I have tried to run the Azure CLI command as below:

    # Define variables
    RESOURCE_GROUP_NAME="<YourResourceGroupName>"
    RESOURCE_NAME="<YourResourceName>" # e.g., your Fabric capacity name or Data Factory name
    RESOURCE_PROVIDER="<ResourceProviderNamespace>" # e.g., Microsoft.Fabric/capacities or Microsoft.DataFactory/factories
    SUBSCRIPTION_ID="<YourSubscriptionID>"
    WORKSPACE_NAME="<YourLogAnalyticsWorkspaceName>"
    DIAG_SETTING_NAME="CapacityMetricsToLA"
    # Construct full Azure resource IDs
    RESOURCE_ID="/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/$RESOURCE_PROVIDER/$RESOURCE_NAME"
    WORKSPACE_ID=$(az monitor log-analytics workspace show --resource-group <YourWorkspaceRG> --workspace-name $WORKSPACE_NAME --query id --output tsv)
    # Create the diagnostic setting to send AllMetrics to the Log Analytics workspace
    az monitor diagnostic-settings create \
        --name $DIAG_SETTING_NAME \
        --resource $RESOURCE_ID \
        --workspace $WORKSPACE_ID \
        --metrics "[{category:AllMetrics,enabled:true,retention-policy:{enabled:false,days:0}}]"
    
    

    then got an exception: (ResourceTypeNotSupported) The resource type 'microsoft.fabric/capacities' does not support diagnostic settings.

    I have to change the solution to extract data from semantic model of Microsoft Fabric Capacity Metrics App via PowerBI REST API to ingest data into Azure Log Analytics Workspace.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. NavinChristen 5 Reputation points
    2025-07-21T07:48:21.6366667+00:00

    Hi @Sampath ,

    Your below comment is misleading, as we cannot find such an option in Fabric Capacity.

    Could this be a preview feature and not GA?

    Navigate to Diagnostic Settings

    • Open Azure PortalMicrosoft Fabric Capacity.
    • Go to MonitoringDiagnostic Settings.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. Iain Colledge 0 Reputation points
    2026-02-17T16:03:26.05+00:00

    It seems that the solution provided is not generally available, the only current option appears to be via the workspace settings -> azure connections in the fabric portal.

    @Sampath, do you know when or if microsoft.fabric/capacities will support diagnostic settings which is generally available please?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.