az healthbot

注意

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

此命令群組是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用 healthbot 管理 Bot。

命令

名稱 Description 類型 狀態
az healthbot create

建立新的 HealthBot。

擴充 實驗性
az healthbot delete

刪除 HealthBot。

擴充 實驗性
az healthbot list

傳回屬於資源群組之特定類型的所有資源,並傳回屬於訂用帳戶之特定類型的所有資源。

擴充 實驗性
az healthbot show

取得 HealthBot。

擴充 實驗性
az healthbot update

修補 HealthBot。

擴充 實驗性
az healthbot wait

將 CLI 置於等候狀態,直到符合 Healthbot 的條件為止。

擴充 實驗性

az healthbot create

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立新的 HealthBot。

az healthbot create --bot-name
                    --resource-group
                    --sku {C0, F0, S1}
                    [--location]
                    [--no-wait]
                    [--tags]

範例

BotCreate

az healthbot create --name "samplebotname" --location "East US" --sku "F0" --resource-group "healthbotClient"

必要參數

--bot-name --name -n

Bot 資源的名稱。

--resource-group -g

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

--sku

HealthBot SKU 的名稱。

接受的值: C0, F0, S1

選擇性參數

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--no-wait

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

預設值: False
--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

全域參數
--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 healthbot delete

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除 HealthBot。

az healthbot delete [--bot-name]
                    [--ids]
                    [--no-wait]
                    [--resource-group]
                    [--subscription]
                    [--yes]

範例

BotDelete

az healthbot delete --name "samplebotname" --resource-group "healthbotClient"

選擇性參數

--bot-name --name -n

Bot 資源的名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--no-wait

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

預設值: False
--resource-group -g

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

--subscription

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

--yes -y

不提示確認。

預設值: 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 來取得完整偵錯記錄。

az healthbot list

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

傳回屬於資源群組之特定類型的所有資源,並傳回屬於訂用帳戶之特定類型的所有資源。

az healthbot list [--resource-group]

範例

依資源群組列出 Bot

az healthbot list --resource-group "OneResourceGroupName"

依訂用帳戶列出 Bot

az healthbot list

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<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 healthbot show

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得 HealthBot。

az healthbot show [--bot-name]
                  [--ids]
                  [--resource-group]
                  [--subscription]

範例

ResourceInfoGet

az healthbot show --name "samplebotname" --resource-group "healthbotClient"

選擇性參數

--bot-name --name -n

Bot 資源的名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--resource-group -g

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

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_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 healthbot update

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

修補 HealthBot。

az healthbot update [--bot-name]
                    [--ids]
                    [--resource-group]
                    [--sku {C0, F0, S1}]
                    [--subscription]
                    [--tags]

範例

BotUpdate

az healthbot update --bot-name "samplebotname" --name "F0" --resource-group "healthbotClient"

選擇性參數

--bot-name --name -n

Bot 資源的名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--resource-group -g

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

--sku

HealthBot SKU 的名稱。

接受的值: C0, F0, S1
--subscription

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

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

全域參數
--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 healthbot wait

實驗

命令群組 'healthbot' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將 CLI 置於等候狀態,直到符合 Healthbot 的條件為止。

az healthbot wait [--bot-name]
                  [--created]
                  [--custom]
                  [--deleted]
                  [--exists]
                  [--ids]
                  [--interval]
                  [--resource-group]
                  [--subscription]
                  [--timeout]
                  [--updated]

範例

暫停執行下一行 CLI 腳本,直到健康情況機器人成功建立為止。

az healthbot wait --name "samplebotname" --resource-group "healthbotClient" --created

暫停執行下一行 CLI 腳本,直到健康情況機器人成功刪除為止。

az healthbot wait --name "samplebotname" --resource-group "healthbotClient" --deleted

選擇性參數

--bot-name --name -n

Bot 資源的名稱。

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--interval

輪詢間隔以秒為單位。

預設值: 30
--resource-group -g

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

--subscription

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: 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 來取得完整偵錯記錄。