az monitor log-analytics solution

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
                                         [--name]
                                         [--no-wait]
                                         [--plan-product]
                                         [--plan-publisher]
                                         [--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

--name -n

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

--no-wait

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

--plan-product

Product name of the plan for solution. It should be in the format of OMSGallery/. This is case sensitive.

--plan-publisher

Publisher name of the plan for solution. For gallery solution, it is Microsoft.

--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.

--yes -y

Do not prompt for confirmation.

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.

--tags

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