Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzMonitorLogAnalyticsSolution

  • Preview

This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.

Retrieves the user solution.

Syntax

List1 (Default)

Get-AzMonitorLogAnalyticsSolution
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

Get

Get-AzMonitorLogAnalyticsSolution
 -Name <String>
 -ResourceGroupName <String>
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

List

Get-AzMonitorLogAnalyticsSolution
 -ResourceGroupName <String>
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

GetViaIdentity

Get-AzMonitorLogAnalyticsSolution
 -InputObject <IMonitoringSolutionsIdentity>
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

Description

Retrieves the user solution.

Examples

Example 1: Get a monitor log analytics solution by name

Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Type "Microsoft.OperationsManagement/solutions" -Location "West US 2" -WorkspaceResourceId workspaceResourceId
Name Type Location
---- ---- --------
Containers(azureps-monitor) Microsoft.OperationsManagement/solutions West US 2

This command gets a monitor log analytics solution by name.

Example 2: Get a monitor log analytics solution by resource id

@{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azureps-manual-test/providers/Microsoft.OperationsManagement/solutions/Containers(monitoringworkspace-t01)"} | Get-AzMonitorLogAnalyticsSolution
Name Type Location
---- ---- --------
Containers(monitoringworkspace-t01) Microsoft.OperationsManagement/solutions East US

This command gets a monitor log analytics solution by resource id.

Example 3: Get a monitor log analytics solution by object

$monitor = New-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Name 'Containers(azureps-monitor)'
Get-AzMonitorLogAnalyticsSolution -InputObject $monitor
Name Type Location
---- ---- --------
Containers(azureps-monitor) Microsoft.OperationsManagement/solutions West US 2

This command gets a monitor log analytics solution by object.

Example 4: Get all monitor log analytics solutions under a resource group

Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor
Name Type Location
---- ---- --------
Containers(azureps-monitor) Microsoft.OperationsManagement/solutions West US 2

This command gets all monitor log analytics solutions under a resource group.

Example 5: Get all monitor log analytics solutions under a subscription

Get-AzMonitorLogAnalyticsSolution
Name Type Location
---- ---- --------
Containers(monitoringworkspace-t01) Microsoft.OperationsManagement/solutions East US
Containers(azureps-monitor) Microsoft.OperationsManagement/solutions West US 2

This command gets all monitor log analytics solutions under a subscription.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

-InputObject

Identity Parameter

Parameter properties

Type:IMonitoringSolutionsIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

User Solution Name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:SolutionName

Parameter sets

-ResourceGroupName

The name of the resource group to get. The name is case insensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SubscriptionId

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IMonitoringSolutionsIdentity

Outputs

ISolution

ISolutionPropertiesList


Feedback

Was this page helpful?