Skip to main content

tickets

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

Overview

Nametickets
TypeResource
Idazure.support.tickets

Fields

NameDatatypeDescription
idtextId of the resource.
nametextName of the resource.
descriptiontextfield from the properties object
advanced_diagnostic_consenttextfield from the properties object
contact_detailstextfield from the properties object
created_datetextfield from the properties object
enrollment_idtextfield from the properties object
file_workspace_nametextfield from the properties object
is_temporary_tickettextfield from the properties object
modified_datetextfield from the properties object
problem_classification_display_nametextfield from the properties object
problem_classification_idtextfield from the properties object
problem_scoping_questionstextfield from the properties object
problem_start_timetextfield from the properties object
quota_ticket_detailstextfield from the properties object
require24_x7_responsetextfield from the properties object
secondary_consenttextfield from the properties object
service_display_nametextfield from the properties object
service_idtextfield from the properties object
service_level_agreementtextfield from the properties object
severitytextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
supportTicketNametextfield from the properties object
support_engineertextfield from the properties object
support_plan_display_nametextfield from the properties object
support_plan_idtextfield from the properties object
support_plan_typetextfield from the properties object
support_ticket_idtextfield from the properties object
technical_ticket_detailstextfield from the properties object
titletextfield from the properties object
typetextType of the resource 'Microsoft.Support/supportTickets'.

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionId, supportTicketNameGet ticket details for an Azure subscription. 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.
listSELECTsubscriptionIdLists all the support tickets for an Azure subscription. You can also filter the support tickets by Status, CreatedDate, ServiceId, and ProblemClassificationId using the $filter parameter. Output will be a paged result with nextLink, using which you can retrieve the next set of support tickets.

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.
createINSERTsubscriptionId, supportTicketNameCreates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the prerequisites required to create a support ticket.

Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.

Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the Manage support ticket page in the Azure portal, select the support ticket, and use the file upload control to add a new file.

Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.

Creating a support ticket for on-behalf-of: Include x-ms-authorization-auxiliary header to provide an auxiliary token as per documentation. The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
updateUPDATEsubscriptionId, supportTicketNameThis API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.

Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
check_name_availabilityEXECsubscriptionId, data__name, data__typeCheck the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.

SELECT examples

Lists all the support tickets for an Azure subscription. You can also filter the support tickets by Status, CreatedDate, ServiceId, and ProblemClassificationId using the $filter parameter. Output will be a paged result with nextLink, using which you can retrieve the next set of support tickets.

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,
description,
advanced_diagnostic_consent,
contact_details,
created_date,
enrollment_id,
file_workspace_name,
is_temporary_ticket,
modified_date,
problem_classification_display_name,
problem_classification_id,
problem_scoping_questions,
problem_start_time,
quota_ticket_details,
require24_x7_response,
secondary_consent,
service_display_name,
service_id,
service_level_agreement,
severity,
status,
subscriptionId,
supportTicketName,
support_engineer,
support_plan_display_name,
support_plan_id,
support_plan_type,
support_ticket_id,
technical_ticket_details,
title,
type
FROM azure.support.vw_tickets
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a tickets resource.

/*+ update */
UPDATE azure.support.tickets
SET
severity = '{{ severity }}',
status = '{{ status }}',
contactDetails = '{{ contactDetails }}',
advancedDiagnosticConsent = '{{ advancedDiagnosticConsent }}',
secondaryConsent = '{{ secondaryConsent }}'
WHERE
subscriptionId = '{{ subscriptionId }}'
AND supportTicketName = '{{ supportTicketName }}';