New-AzMonitorLogAnalyticsSolution
Creates a log analytics solution.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzMonitorLogAnalyticsSolution
-ResourceGroupName <String>
-Location <String>
-Type <String>
-WorkspaceResourceId <String>
[-SubscriptionId <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Creates a log analytics solution.
Examples
Example 1: Create a monitor log analytics solution for the log analytics workspace
$workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n
New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId
Name Type Location
---- ---- --------
Containers(monitoringworkspace-2vob7n) Microsoft.OperationsManagement/solutions East US
This command creates a monitor log analytics solution for the log analytics workspace.
Commonly used types are:
| Type | Description |
|---|---|
| SecurityCenterFree | Azure Security Center - Free Edition |
| Security | Azure Security Center |
| Updates | Update Management |
| ContainerInsights | Azure Monitor for Containers |
| ServiceMap | Service Map |
| AzureActivity | Activity log analytics |
| ChangeTracking | Change tracking and inventory |
| VMInsights | Azure Monitor for VMs |
| SecurityInsights | Azure Sentinel |
| NetworkMonitoring | Network Performance Monitor |
| SQLVulnerabilityAssessment | SQL Vulnerability Assessment |
| SQLAdvancedThreatProtection | SQL Advanced Threat Protection |
| AntiMalware | Antimalware Assessment |
| AzureAutomation | Automation Hybrid Worker |
| LogicAppsManagement | Logic Apps Management |
| SQLDataClassification | SQL Data Discovery & Classification |
Parameters
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | PSObject |
| Aliases: | AzureRMContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resource location. Must be the same as the log analytic workspace.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of the resource group to get. The name is case insensitive.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
| Type: | String |
| Position: | Named |
| Default value: | (Get-AzContext).Subscription.Id |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resource tags
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Type of the solution to be created. For example "Container".
| Type: | String |
| Aliases: | SolutionType |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The Azure resource ID for the workspace where the solution will be deployed/enabled.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Outputs
Notes
ALIASES