az monitor log-analytics solution
Note
This reference is part of the log-analytics-solution extension for the Azure CLI (version 2.50.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
Name | Description | Type | Status |
---|---|---|---|
az monitor log-analytics solution create |
Create the Solution. |
Extension | GA |
az monitor log-analytics solution delete |
Delete the solution in the subscription. |
Extension | GA |
az monitor log-analytics solution list |
List the solution list. It will retrieve both first party and third party solutions. |
Extension | GA |
az monitor log-analytics solution show |
Get the user solution. |
Extension | GA |
az monitor log-analytics solution update |
Update a Solution. Only updating tags supported. |
Extension | GA |
az monitor log-analytics solution wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az monitor log-analytics solution create
Create the Solution.
az monitor log-analytics solution create --resource-group
--solution-type
--workspace
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--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
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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.
The name or resource ID of the log analytics workspace with which the solution will be linked.
Optional Parameters
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor log-analytics solution delete
Delete the solution in the subscription.
az monitor log-analytics solution delete --name
--resource-group
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--yes]
Examples
Delete a log-analytics solution
az monitor log-analytics solution delete --resource-group MyResourceGroup --name SolutionName
Required Parameters
Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor log-analytics solution list
List the solution list. It will retrieve both first party and third party solutions.
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
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor log-analytics solution show
Get the user solution.
az monitor log-analytics solution show --name
--resource-group
Examples
Show a log-analytics solution
az monitor log-analytics solution show --resource-group MyResourceGroup --name SolutionName
Required Parameters
Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor log-analytics solution update
Update a Solution. Only updating tags supported.
az monitor log-analytics solution update --name
--resource-group
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--tags]
Examples
Update a log-analytics solution
az monitor log-analytics solution update --resource-group MyResourceGroup --name SolutionName --tags key=value
Required Parameters
Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor log-analytics solution wait
Place the CLI in a waiting state until a condition is met.
az monitor log-analytics solution wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
Name of the log-analytics solution. It should be in the format of solutionType(workspaceName). SolutionType part is case sensitive.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI