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
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.
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 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 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.
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 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
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 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 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>
.
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 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 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.
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.
Feedback
Submit and view feedback for