Skip to main content

communications

Creates, updates, deletes, gets or lists a communications resource.

Overview

Namecommunications
TypeResource
Idazure.support.communications

Fields

NameDatatypeDescription
idtextId of the resource.
nametextName of the resource.
bodytextfield from the properties object
communicationNametextfield from the properties object
communication_directiontextfield from the properties object
communication_typetextfield from the properties object
created_datetextfield from the properties object
sendertextfield from the properties object
subjecttextfield from the properties object
subscriptionIdtextfield from the properties object
supportTicketNametextfield from the properties object
typetextType of the resource 'Microsoft.Support/communications'.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommunicationName, subscriptionId, supportTicketNameReturns communication details for a support ticket.
listSELECTsubscriptionId, supportTicketNameLists all communications (attachments not included) for a support ticket.
You can also filter support ticket communications by CreatedDate or CommunicationType using the $filter parameter. The only type of communication supported today is Web. Output will be a paged result with nextLink, using which you can retrieve the next set of Communication results.

Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
createINSERTcommunicationName, subscriptionId, supportTicketNameAdds a new customer communication to an Azure support ticket.
check_name_availabilityEXECsubscriptionId, supportTicketName, data__name, data__typeCheck the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket.

SELECT examples

Lists all communications (attachments not included) for a support ticket.
You can also filter support ticket communications by CreatedDate or CommunicationType using the $filter parameter. The only type of communication supported today is Web. Output will be a paged result with nextLink, using which you can retrieve the next set of Communication results.

Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.

SELECT
id,
name,
body,
communicationName,
communication_direction,
communication_type,
created_date,
sender,
subject,
subscriptionId,
supportTicketName,
type
FROM azure.support.vw_communications
WHERE subscriptionId = '{{ subscriptionId }}'
AND supportTicketName = '{{ supportTicketName }}';

INSERT example

Use the following StackQL query and manifest file to create a new communications resource.

/*+ create */
INSERT INTO azure.support.communications (
communicationName,
subscriptionId,
supportTicketName,
properties
)
SELECT
'{{ communicationName }}',
'{{ subscriptionId }}',
'{{ supportTicketName }}',
'{{ properties }}'
;