az monitor log-analytics workspace table

Manage tables for log analytics workspace.

Commands

az monitor log-analytics workspace table list

List all the tables for the given Log Analytics workspace.

az monitor log-analytics workspace table show

Get a Log Analytics workspace table.

az monitor log-analytics workspace table update

Update the properties of a Log Analytics workspace table, currently only support updating retention time.

az monitor log-analytics workspace table list

List all the tables for the given Log Analytics workspace.

az monitor log-analytics workspace table list --resource-group
                                              --workspace-name
                                              [--query-examples]
                                              [--subscription]

Examples

List all the tables for the given Log Analytics workspace

az monitor log-analytics workspace table list --resource-group MyResourceGroup --workspace-name MyWorkspace

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--workspace-name

Name of the Log Analytics Workspace.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az monitor log-analytics workspace table show

Get a Log Analytics workspace table.

az monitor log-analytics workspace table show --name
                                              --resource-group
                                              --workspace-name
                                              [--query-examples]
                                              [--subscription]

Examples

Get a Log Analytics workspace table

az monitor log-analytics workspace table show --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable

Required Parameters

--name -n

Name of the table.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--workspace-name

Name of the Log Analytics Workspace.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az monitor log-analytics workspace table update

Update the properties of a Log Analytics workspace table, currently only support updating retention time.

az monitor log-analytics workspace table update --name
                                                --resource-group
                                                --retention-time
                                                --workspace-name
                                                [--subscription]

Examples

Update the retention time of a Log Analytics workspace table

az monitor log-analytics workspace table update --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable --retention-time 30

Required Parameters

--name -n

Name of the table.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--retention-time

The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention.

--workspace-name

Name of the Log Analytics Workspace.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.