編輯

共用方式為


Get-AzOperationalInsightsTable

Get or list tables for workspace.

Syntax

Get-AzOperationalInsightsTable
   [-ResourceGroupName] <String>
   [-WorkspaceName] <String>
   [[-TableName] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get or list tables for a workspace, list tables under workspace when "-TableName" was not provided.

Examples

Example 1: Get all tables for a workspace

Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"

This command gets all of the tables associated with a workspace.

Example 2: Get a specific table by name

Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -tableName "ContosoSavedTableName"

This command gets a specific table by its name.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The resource group name.

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

-TableName

The table name.

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

-WorkspaceName

The name of the workspace that contains the table.

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

Inputs

String

Outputs

PSTable