az self-help troubleshooter

注意

此參考是 Azure CLI 的自助延伸模組的一部分(2.57.0 版或更高版本)。 擴充功能會在您第一次執行 az self-help troubleshooter 命令時自動安裝。 深入了解擴充功能。

命令群組 'az self-help' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

疑難解答員命令可協助您建立 Azure 資源的疑難解答員。

命令

名稱 Description 類型 狀態
az self-help troubleshooter continue

使用 stepId 和回應作為觸發程式,以繼續個別疑難解答員資源名稱的疑難解答步驟。

副檔名 預覽​​
az self-help troubleshooter create

在資源或訂用帳戶下建立特定的疑難解答員動作。

副檔名 預覽​​
az self-help troubleshooter end

結束疑難解答員動作。

副檔名 預覽​​
az self-help troubleshooter restart

使用適用的疑難解答員資源名稱作為輸入,重新啟動疑難解答員 API。

副檔名 預覽​​
az self-help troubleshooter show

取得疑難解答員實例結果,其中包含正在執行之疑難解答員資源名稱的步驟狀態/結果。

副檔名 預覽​​

az self-help troubleshooter continue

預覽

命令群組 'az self-help troubleshooter' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用 stepId 和回應作為觸發程式,以繼續個別疑難解答員資源名稱的疑難解答步驟。

az self-help troubleshooter continue --scope
                                     --troubleshooter-name
                                     [--responses]
                                     [--step-id]

範例

在資源層級繼續疑難解答員

az self-help troubleshooter continue --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --step-id step-id --responses [] --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必要參數

--scope

這是延伸模組資源提供者,目前僅支援資源層級擴充功能。

--troubleshooter-name

疑難解答員資源名稱。

選擇性參數

--responses

支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--step-id

結果的唯一標識碼。

全域參數
--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 來取得完整偵錯記錄。

az self-help troubleshooter create

預覽

命令群組 'az self-help troubleshooter' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

在資源或訂用帳戶下建立特定的疑難解答員動作。

az self-help troubleshooter create --scope
                                   --troubleshooter-name
                                   [--parameters]
                                   [--solution-id]

範例

在資源層級建立疑難解答員

az self-help troubleshooter create --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --solution-id e104dbdf-9e14-4c9f-bc78-21ac90382231 --parameters {ResourceUri:'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'} --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必要參數

--scope

這是延伸模組資源提供者,目前僅支援資源層級擴充功能。

--troubleshooter-name

疑難解答員資源名稱。

選擇性參數

--parameters

執行疑難解答員資源支援速記語法、json-file 和 yaml-file 的用戶端輸入參數。 請嘗試 “??” 以顯示更多。

--solution-id

識別單一疑難解答員的解決方案標識符。

全域參數
--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 來取得完整偵錯記錄。

az self-help troubleshooter end

預覽

命令群組 'az self-help troubleshooter' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

結束疑難解答員動作。

az self-help troubleshooter end --scope
                                --troubleshooter-name

範例

資源層級的結束疑難解答員

az self-help troubleshooter end --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必要參數

--scope

這是延伸模組資源提供者,目前僅支援資源層級擴充功能。

--troubleshooter-name

疑難解答員資源名稱。

全域參數
--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 來取得完整偵錯記錄。

az self-help troubleshooter restart

預覽

命令群組 'az self-help troubleshooter' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用適用的疑難解答員資源名稱作為輸入,重新啟動疑難解答員 API。

az self-help troubleshooter restart --scope
                                    --troubleshooter-name

範例

資源層級的重新啟動疑難解答員

az self-help troubleshooter restart --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必要參數

--scope

這是延伸模組資源提供者,目前僅支援資源層級擴充功能。

--troubleshooter-name

疑難解答員資源名稱。

全域參數
--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 來取得完整偵錯記錄。

az self-help troubleshooter show

預覽

命令群組 'az self-help troubleshooter' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得疑難解答員實例結果,其中包含正在執行之疑難解答員資源名稱的步驟狀態/結果。

az self-help troubleshooter show --scope
                                 --troubleshooter-name

範例

在資源層級顯示疑難解答員

az self-help troubleshooter show --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必要參數

--scope

這是延伸模組資源提供者,目前僅支援資源層級擴充功能。

--troubleshooter-name

疑難解答員資源名稱。

全域參數
--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 來取得完整偵錯記錄。