Share via


az bot sms

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

管理 Bot 上的 SMS 通道。

命令

名稱 Description 類型 狀態
az bot sms create

在 Bot 上建立 SMS 通道。

核心 預覽版
az bot sms delete

刪除 Bot 上的 SMS 通道。

核心 預覽版
az bot sms show

取得 Bot 上的 SMS 通道詳細資料。

核心 預覽版

az bot sms create

預覽

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

在 Bot 上建立 SMS 通道。

az bot sms create --account-sid
                  --auth-token
                  --name
                  --phone
                  --resource-group
                  [--add-disabled {false, true}]
                  [--is-validated {false, true}]
                  [--location]

範例

建立 Bot 的 SMS 通道。

az bot sms create -n botName -g MyResourceGroup --account-sid sid \
--auth-token token --is-validated --phone 1234567890

必要參數

--account-sid

Twilio 帳戶的帳戶 SID。

--auth-token

Twilio 帳戶的權杖權杖。

--name -n

Bot 的資源名稱。 Bot 名稱長度必須介於 4 到 42 個字元之間。 Bot 名稱只能包含下列字元:-、a 到 z、A 到 Z、0 到 9 和 _。

--phone

Twilio 帳戶的電話號碼。

--resource-group -g

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

選擇性參數

--add-disabled

以停用狀態新增通道。

接受的值: false, true
--is-validated

Twilio 帳戶是否已經過驗證以搭配 Bot 使用。

接受的值: false, true
--location -l

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

預設值: global
全域參數
--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 bot sms delete

預覽

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

刪除 Bot 上的 SMS 通道。

az bot sms delete --name
                  --resource-group

必要參數

--name -n

Bot 的資源名稱。 Bot 名稱長度必須介於 4 到 42 個字元之間。 Bot 名稱只能包含下列字元:-、a 到 z、A 到 Z、0 到 9 和 _。

--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 bot sms show

預覽

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

取得 Bot 上的 SMS 通道詳細資料。

az bot sms show --name
                --resource-group
                [--with-secrets {false, true}]

必要參數

--name -n

Bot 的資源名稱。 Bot 名稱長度必須介於 4 到 42 個字元之間。 Bot 名稱只能包含下列字元:-、a 到 z、A 到 Z、0 到 9 和 _。

--resource-group -g

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

選擇性參數

--with-secrets

顯示回應通道的秘密。

接受的值: false, true
全域參數
--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 來取得完整偵錯記錄。