az monitor log-analytics solution

Note

This reference is part of the log-analytics-solution extension for the Azure CLI (version 2.3.0 or higher). The extension will automatically install the first time you run an az monitor log-analytics solution command. Learn more about extensions.

Commands to manage monitor log-analytics solution.

Commands

az monitor log-analytics solution create

Create a log-analytics solution.

az monitor log-analytics solution delete

Delete a log-analytics solution.

az monitor log-analytics solution list

List all of the log-analytics solutions in the specified subscription or resource group.

az monitor log-analytics solution show

Get details about the specified log-analytics solution.

az monitor log-analytics solution update

Update an existing log-analytics solution.

az monitor log-analytics solution create

Create a log-analytics solution.

az monitor log-analytics solution create --resource-group
                                         --solution-type
                                         --workspace
                                         [--no-wait]
                                         [--tags]

Examples

Create a log-analytics solution of type Containers

az monitor log-analytics solution create --resource-group MyResourceGroup \
--solution-type Containers --tags key=value \
--workspace "/subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/ \
Microsoft.OperationalInsights/workspaces/{WorkspaceName}"

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--solution-type -t

Type of the log-analytics solution. The most used are: SecurityCenterFree, Security, Updates, ContainerInsights, ServiceMap, AzureActivity, ChangeTracking, VMInsights, SecurityInsights, NetworkMonitoring, SQLVulnerabilityAssessment, SQLAdvancedThreatProtection, AntiMalware, AzureAutomation, LogicAppsManagement, SQLDataClassification.

--workspace -w

The name or resource ID of the log analytics workspace with which the solution will be linked.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az monitor log-analytics solution delete

Delete a log-analytics solution.

az monitor log-analytics solution delete --name
                                         --resource-group
                                         [--no-wait]
                                         [--yes]

Examples

Delete a log-analytics solution

az monitor log-analytics solution delete --resource-group MyResourceGroup --name SolutionName

Required Parameters

--name -n

Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--yes -y

Do not prompt for confirmation.

default value: False

az monitor log-analytics solution list

List all of the log-analytics solutions in the specified subscription or resource group.

az monitor log-analytics solution list [--resource-group]

Examples

List all log-analytics solutions in the current subscription

az monitor log-analytics solution list

List all log-analytics solutions in a 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

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az monitor log-analytics solution show

Get details about the specified log-analytics solution.

az monitor log-analytics solution show --name
                                       --resource-group

Examples

Get a log-analytics solution

az monitor log-analytics solution show --resource-group MyResourceGroup --name SolutionName

Required Parameters

--name -n

Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az monitor log-analytics solution update

Update an existing log-analytics solution.

az monitor log-analytics solution update --name
                                         --resource-group
                                         [--no-wait]
                                         [--tags]

Examples

Update a log-analytics solution

az monitor log-analytics solution update --resource-group MyResourceGroup \
--name SolutionName --tags key=value

Required Parameters

--name -n

Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.