Monitoring solutions in Azure Monitor provide analysis of the operation of a particular Azure application or service. This article provides a brief overview of monitoring solutions in Azure and details on using and installing them. You can add monitoring solutions to Azure Monitor for any applications and services that you use. They're typically available at no cost but collect data that could invoke usage charges.
Use monitoring solutions
The solutions Overview page in Azure Monitor displays a tile for each solution installed in a Log Analytics workspace. To open this page, go to Azure Monitor in the Azure portal. Under the Insights menu, select More to open the Insights Hub, and then click on Log Analytics workspaces.
Use the dropdown boxes at the top of the screen to change the workspace or the time range used for the tiles. Click on the tile for a solution to open its view that includes more detailed analysis its collected data.
Monitoring solutions can contain multiple types of Azure resources, and you can view any resources included with a solution just like any other resource. For example, any log queries included in the solution are listed under Solution Queries in Query explorer. You can use those queries when performing ad hoc analysis with log queries.
Use the following procedure to list the monitoring solutions installed in your subscription.
Go to the Azure portal. Search for and select Solutions.
Solutions installed in all your workspaces are listed. The name of the solution is followed by the name of the workspace it's installed in.
Use the dropdown boxes at the top of the screen to filter by subscription or resource group.
Click on the name of a solution to open its summary page. This page displays any views included in the solution and provides different options for the solution itself and its workspace. View the summary page for a solution by using one of the procedures above to list solutions and then click on the name of the solution.
# List all log-analytics solutions in the current subscription.
az monitor log-analytics solution list
# List all log-analytics solutions for a specific subscription
az monitor log-analytics solution list --subscription MySubscription
# List all log-analytics solutions in a resource group
az monitor log-analytics solution list --resource-group MyResourceGroup
# List all log-analytics solutions in the current subscription.
Get-AzMonitorLogAnalyticsSolution
# List all log-analytics solutions for a specific subscription
Get-AzMonitorLogAnalyticsSolution -SubscriptionId 00000000-0000-0000-0000-000000000000
# List all log-analytics solutions in a resource group
Get-AzMonitorLogAnalyticsSolution -ResourceGroupName MyResourceGroup
Monitoring solutions from Microsoft and partners are available from the Azure Marketplace. You can search available solutions and install them using the following procedure. When you install a solution, you must select a Log Analytics workspace where the solution will be installed and where its data will be collected.
Browse or search for a solution. You can also browse solutions from this search link.
Locate the monitoring solution you want and read through its description.
Click Create to start the installation process.
When the installation process starts, you're prompted to specify the Log Analytics workspace and provide any required configuration for the solution.
Install a solution from the community
Members of the community can submit management solutions to Azure Quickstart Templates. You can install these solutions directly or download them templates for later installation.
Select the solution from the results to view its details.
Click the Deploy to Azure button.
You're prompted to provide information such as the resource group and location in addition to values for any parameters in the solution.
Click Purchase to install the solution.
Prepare your environment
Install the Azure CLI
You need to install the Azure CLI before running CLI reference commands. If you prefer, you can also use Azure Cloud Shell to complete the steps in this article. Azure Cloud Shell is an interactive shell environment that you use through your browser. Start Cloud Shell by using one of these methods:
Select the Cloud Shell button on the menu bar at the upper right corner in the Azure portal
Sign in.
If you're using a local install of the CLI, sign in using the az login command. Follow the steps displayed in your terminal to complete the authentication process.
az login
Install the log-analytics-solution extension
The log-analytics-solution command is an experimental extension of the core Azure CLI. Learn more about extension references in Use extension with Azure CLI.
az extension add --name log-analytics-solution
The following warning is expected.
The installed extension `log-analytics-solution` is experimental and not covered by customer support. Please use with discretion.
You need to Install Azure PowerShell before running Azure
PowerShell reference commands. If you prefer, you can also use Azure Cloud Shell to complete the
steps in this article. Azure Cloud Shell is an interactive shell environment that you use through
your browser. Start Cloud Shell by using one of these methods:
Select the Cloud Shell button on the menu bar at the upper right corner in the Azure portal
Important
While the Az.MonitoringSolutions PowerShell module is in preview, you must install it
separately using the Install-Module cmdlet. After this PowerShell module becomes generally
available, it will be part of future Az PowerShell module releases and available by default
from within Azure Cloud Shell.
Install-Module -Name Az.MonitoringSolutions
Sign in.
If you're using a local install of PowerShell, sign in using the
Connect-AzAccount cmdlet. Follow the steps
displayed in PowerShell to complete the authentication process.
Connect-AzAccount
Install a solution with Azure PowerShell
When you install a solution, you must select a
Log Analytics workspace where the solution will be installed and
where its data will be collected. With Azure PowerShell, you manage workspaces by using the cmdlets
in the Az.MonitoringSolutions PowerShell module. Follow
the process described in
Log Analytics workspace and Automation account to
link a workspace and account.
All monitoring solutions require a Log Analytics workspace to store data collected by the solution and to host its log searches and views. Some solutions also require an Automation account to contain runbooks and related resources. The workspace and account must meet the following requirements.
Each installation of a solution can only use one Log Analytics workspace and one Automation account. You can install the solution separately into multiple workspaces.
If a solution requires an Automation account, then the Log Analytics workspace and Automation account must be linked to one another. A Log Analytics workspace may only be linked to one Automation account, and an Automation account may only be linked to one Log Analytics workspace.
When you install a solution through Azure Marketplace, you're prompted for a workspace and Automation account. The link between them is created if they aren't already linked.
Verify the link between a Log Analytics workspace and Automation account
You can verify the link between a Log Analytics workspace and an Automation account using the following procedure.
Select the Automation account in the Azure portal.
Scroll to the Related Resources section of the menu and select Linked workspace.
If the Workspace is linked to an Automation account, then this page lists the workspace it is linked to. If you select the name of the workspace listed, you are redirected to the overview page for that workspace.
To remove an installed solution using the portal, locate it in the list of installed solutions. Click on the name of the solution to open its summary page and then click on Delete.