az communication chat message
Note
This reference is part of the communication extension for the Azure CLI (version 2.59.0 or higher). The extension will automatically install the first time you run an az communication chat message command. Learn more about extensions.
Command group 'communication chat' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Commands to manage messages in a chat thread of a Communication Service resource.
Commands
Name | Description | Type | Status |
---|---|---|---|
az communication chat message delete |
Deletes a message from a chat thread by id. |
Extension | Preview |
az communication chat message get |
Gets a message from a chat thread by id. |
Extension | Preview |
az communication chat message list |
Gets list of messages from a chat thread. |
Extension | Preview |
az communication chat message receipt |
Commands to manage message read-receipts in a chat thread of a Communication Service resource. |
Extension | Preview |
az communication chat message receipt list |
Gets read receipts of a chat thread. |
Extension | Preview |
az communication chat message receipt send |
Posts a read receipt event to a chat thread, on behalf of a user. |
Extension | Preview |
az communication chat message send |
Sends a message to a chat thread. |
Extension | Preview |
az communication chat message update |
Updates a message. |
Extension | Preview |
az communication chat message delete
Command group 'communication chat message' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Deletes a message from a chat thread by id.
az communication chat message delete --message-id
--thread
[--access-token]
[--endpoint]
[--yes]
Examples
Delete message
az communication chat message delete --thread "19:a-bcd=xyz" --message-id "12345678"
Required Parameters
Message id.
Thread id.
Optional Parameters
Communication access token. Environment variable: AZURE_COMMUNICATION_ACCESS_TOKEN.
Communication endpoint. Environment variable: AZURE_COMMUNICATION_ENDPOINT.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az communication chat message get
Command group 'communication chat message' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Gets a message from a chat thread by id.
az communication chat message get --message-id
--thread
[--access-token]
[--endpoint]
Examples
Get message
az communication chat message get --thread "19:a-bcd=xyz" --message-id "12345678"
Required Parameters
Message id.
Thread id.
Optional Parameters
Communication access token. Environment variable: AZURE_COMMUNICATION_ACCESS_TOKEN.
Communication endpoint. Environment variable: AZURE_COMMUNICATION_ENDPOINT.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az communication chat message list
Command group 'communication chat message' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Gets list of messages from a chat thread.
az communication chat message list --thread
[--access-token]
[--endpoint]
[--start-time]
Examples
List messages
az communication chat message list --thread "19:a-bcd=xyz" --start-time "2022-07-14T10:21"
Required Parameters
Thread id.
Optional Parameters
Communication access token. Environment variable: AZURE_COMMUNICATION_ACCESS_TOKEN.
Communication endpoint. Environment variable: AZURE_COMMUNICATION_ENDPOINT.
Start time in ISO8601 format, ex: 2022-07-14T10:21.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az communication chat message send
Command group 'communication chat message' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Sends a message to a chat thread.
az communication chat message send --content
--thread
[--access-token]
[--display-name]
[--endpoint]
[--message-type]
Examples
Send message
az communication chat message send --thread "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text"
Required Parameters
Chat message content.
Thread id.
Optional Parameters
Communication access token. Environment variable: AZURE_COMMUNICATION_ACCESS_TOKEN.
Senders display name.
Communication endpoint. Environment variable: AZURE_COMMUNICATION_ENDPOINT.
Content type, can be text or html.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az communication chat message update
Command group 'communication chat message' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Updates a message.
az communication chat message update --content
--message-id
--thread
[--access-token]
[--endpoint]
Examples
Update message
az communication chat message update --thread "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!"
Required Parameters
Chat message content.
Message id.
Thread id.
Optional Parameters
Communication access token. Environment variable: AZURE_COMMUNICATION_ACCESS_TOKEN.
Communication endpoint. Environment variable: AZURE_COMMUNICATION_ENDPOINT.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.