Skip to main content

communications

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

Overview

Namecommunications
TypeResource
Idazure.support.communications

Fields

The following fields are returned by SELECT queries:

Successfully retrieved communication details.

NameDatatypeDescription
idstringId of the resource.
namestringName of the resource.
propertiesobjectProperties of the resource.
typestringType of the resource 'Microsoft.Support/communications'.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsupportTicketName, communicationName, subscriptionIdReturns communication details for a support ticket.
listselectsupportTicketName, subscriptionId$top, $filterLists all communications (attachments not included) for a support ticket.
</br> 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.
createinsertsupportTicketName, communicationName, subscriptionIdAdds a new customer communication to an Azure support ticket.
check_name_availabilityexecsupportTicketName, subscriptionId, name, 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
communicationNamestringCommunication name.
subscriptionIdstringAzure subscription Id.
supportTicketNamestringSupport ticket name.
$filterstringThe filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator.
$topinteger (int32)The number of values to return in the collection. Default is 10 and max is 10.

SELECT examples

Returns communication details for a support ticket.

SELECT
id,
name,
properties,
type
FROM azure.support.communications
WHERE supportTicketName = '{{ supportTicketName }}' -- required
AND communicationName = '{{ communicationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds a new customer communication to an Azure support ticket.

INSERT INTO azure.support.communications (
data__properties,
supportTicketName,
communicationName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ supportTicketName }}',
'{{ communicationName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
type
;

Lifecycle Methods

Check 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.

EXEC azure.support.communications.check_name_availability 
@supportTicketName='{{ supportTicketName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;