az monitor log-analytics workspace table restore

記錄管理分析工作區還原記錄資料表的資料表。

命令

名稱 Description 類型 狀態
az monitor log-analytics workspace table restore create

建立 Log Analytics 工作區還原記錄資料表。 資料表名稱的結尾必須是 '_RST'。

核心 GA

az monitor log-analytics workspace table restore create

建立 Log Analytics 工作區還原記錄資料表。 資料表名稱的結尾必須是 '_RST'。

az monitor log-analytics workspace table restore create --end-restore-time
                                                        --name
                                                        --resource-group
                                                        --restore-source-table
                                                        --start-restore-time
                                                        --workspace-name
                                                        [--no-wait]

範例

建立 Log Analytics 工作區還原記錄資料表。

az monitor log-analytics workspace table restore create --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable_RST --start-restore-time "Sat, 28 Aug 2021 05:29:18 GMT" --end-restore-time "Sat, 28 Aug 2021 08:29:18 GMT" --restore-source-table MyTable

必要參數

--end-restore-time

日期時間格式。 格式:date(yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm)。

--name -n

資料表的名稱。 資料表名稱的結尾必須是_RST。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--restore-source-table

要從中還原資料的資料表。

--start-restore-time

日期時間格式。 格式:date(yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm)。

--workspace-name

Log Analytics 工作區的名稱。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。