Get-AzureRmOperationalInsightsStorageInsight

Gets information about a Storage Insight.

Important

You've reached a webpage for an outdated version of Azure PowerShell. All versions of the AzureRM PowerShell module are outdated, but not out of support. The Az PowerShell module is now the recommended PowerShell module for interacting with Azure. To get started with the Az PowerShell module, see Install Azure PowerShell. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.

Syntax

Get-AzureRmOperationalInsightsStorageInsight
   [-ResourceGroupName] <String>
   [-WorkspaceName] <String>
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmOperationalInsightsStorageInsight
   [-Workspace] <PSWorkspace>
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmOperationalInsightsStorageInsight cmdlet gets information about an existing Storage Insight. If a Storage Insight name is specified, this cmdlet gets information about that Storage Insight. If you do not specify a name, this cmdlet gets information about all storage insights in a workspace.

Examples

Example 1: Get a Storage Insight by name

PS C:\>Get-AzureRmOperationalInsightsStorageInsight -Name "MyStorageInsight" -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"

This command gets the storage insight named MyStorageInsight from the workspace named ContosoWorkspace.

Example 2: Get a Storage Insight by using a workspace object

PS C:\>$Workspace = Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
PS C:\>Get-AzureRmOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight"

The first command uses the Get-AzureRmOperationalInsightsWorkspace cmdlet to get an Operational Insights workspace, and then stores it in the $Workspace variable. The second command gets the storage insight named MyStorageInsight for the workspace in $Workspace.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the Storage Insight name.

Type:String
Position:3
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of an Azure resource group.

Type:String
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Workspace

Specifies the workspace that contains the Storage Insights.

Type:PSWorkspace
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-WorkspaceName

Specifies the name of the workspace that contains the Storage Insights.

Type:String
Position:2
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSWorkspace

Parameters: Workspace (ByValue)

String

Outputs

PSStorageInsight