You can use the Log Analytics Workspace to gather useful logging data about your Azure based extensibility actions. Before using the Log Analytics Workspace, you must register the relevant resource provider.

Log Analytics enables you to edit and run log queries on data collected by Azure Monitor Logs, and then interactively analyze the results. You can use Log Analytics queries to retrieve records that match specific criteria to help identify trends and patterns and provide multiple data insights. Before using Log Analytics, you must register the Microsoft.OperationalInsights resource provider to your Azure subscription.

Prerequisites

Verify that your Microsoft Azure account has the Contributor or Owner role. These roles include the permission to use the /register/action operation required for registering a resource provider. You can view your active roles by navigating to your subscription and selecting My permissions.

Procedure

  1. Log in to the Microsoft Azure portal.
  2. In the search box, enter Subscriptions.
  3. Select the Subscriptions service.
  4. Select the subscription associated with your extensibility actions.
  5. From the left-side navigation pane, select Resource providers.
  6. In the Filter by name search box, enter Microsoft.OperationalInsights.
  7. To finish registering the ,resource provider, click Register.
    The status of the Microsoft.OperationalInsights resource provider changes from NotRegistered to Registered.