共用方式為


az communication chat participant

備註

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

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

用來管理通訊服務資源聊天對話中參與者的命令。

命令

名稱 Description 類型 狀態
az communication chat participant add

將參與者新增至聊天對話。

擴充套件 預覽
az communication chat participant list

取得聊天對話的參與者。

擴充套件 預覽
az communication chat participant remove

從聊天對話中移除參與者。

擴充套件 預覽

az communication chat participant add

預覽

命令群組「通訊聊天參與者」處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將參與者新增至聊天對話。

az communication chat participant add --thread
                                      --user
                                      [--access-token]
                                      [--display-name]
                                      [--endpoint]
                                      [--start-time]

範例

新增參與者

az communication chat participant add --thread "19:a-bcd=xyz" --user "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-07-14T10:21"

必要參數

--thread -t

線程標識碼。

--user

聊天參與者標識碼。

選擇性參數

--access-token

通訊存取令牌。 環境變數:AZURE_COMMUNICATION_ACCESS_TOKEN。

--display-name

聊天參與者顯示名稱。

--endpoint

通訊端點。 環境變數:AZURE_COMMUNICATION_ENDPOINT。

--start-time

以ISO8601格式共用歷程記錄的開始時間,例如:2022-07-14T10:21。

全域參數
--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 communication chat participant list

預覽

命令群組「通訊聊天參與者」處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得聊天對話的參與者。

az communication chat participant list --thread
                                       [--access-token]
                                       [--endpoint]
                                       [--skip]

範例

列出參與者

az communication chat participant list --thread "19:a-bcd=xyz" --skip "4"

必要參數

--thread -t

線程標識碼。

選擇性參數

--access-token

通訊存取令牌。 環境變數:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通訊端點。 環境變數:AZURE_COMMUNICATION_ENDPOINT。

--skip

要略過的參與者數目。

全域參數
--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 communication chat participant remove

預覽

命令群組「通訊聊天參與者」處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

從聊天對話中移除參與者。

az communication chat participant remove --thread
                                         --user
                                         [--access-token]
                                         [--endpoint]
                                         [--yes]

範例

拿掉參與者

az communication chat participant remove --thread "19:a-bcd=xyz" --user "8:acs:xxxxxx"

必要參數

--thread -t

線程標識碼。

--user

聊天參與者標識碼。

選擇性參數

--access-token

通訊存取令牌。 環境變數:AZURE_COMMUNICATION_ACCESS_TOKEN。

--endpoint

通訊端點。 環境變數:AZURE_COMMUNICATION_ENDPOINT。

--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。