ZiWei Chen 2024-04-24 18:27:43 +08:00 коммит произвёл GitHub
Родитель abefec37a1
Коммит ea76153f60
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
167 изменённых файлов: 922 добавлений и 2553 удалений

Просмотреть файл

@ -1,16 +1,6 @@
# Release History
## 2.2.0-beta.3 (Unreleased)
### Features Added
### Breaking Changes
### Bugs Fixed
### Other Changes
## 2.2.0-beta.2 (2024-03-21)
## 3.0.0 (2024-04-16)
**Features**
@ -21,12 +11,7 @@
- Added operation group FilesNoSubscription
- Added operation group FileWorkspaces
- Added operation group FileWorkspacesNoSubscription
- Added operation group LookUpResourceId
- Added operation group ProblemClassificationsNoSubscription
- Added operation group ServiceClassifications
- Added operation group ServiceClassificationsNoSubscription
- Added operation group SupportTicketsNoSubscription
- Added operation ProblemClassifications.classifyProblems
- Added Interface ChatTranscriptDetails
- Added Interface ChatTranscriptsGetOptionalParams
- Added Interface ChatTranscriptsListNextOptionalParams
@ -35,7 +20,6 @@
- Added Interface ChatTranscriptsNoSubscriptionGetOptionalParams
- Added Interface ChatTranscriptsNoSubscriptionListNextOptionalParams
- Added Interface ChatTranscriptsNoSubscriptionListOptionalParams
- Added Interface ClassificationService
- Added Interface CommunicationsNoSubscriptionCheckNameAvailabilityOptionalParams
- Added Interface CommunicationsNoSubscriptionCreateHeaders
- Added Interface CommunicationsNoSubscriptionCreateOptionalParams
@ -62,24 +46,11 @@
- Added Interface FileWorkspacesGetOptionalParams
- Added Interface FileWorkspacesNoSubscriptionCreateOptionalParams
- Added Interface FileWorkspacesNoSubscriptionGetOptionalParams
- Added Interface LookUpResourceIdPostOptionalParams
- Added Interface LookUpResourceIdRequest
- Added Interface LookUpResourceIdResponse
- Added Interface MessageProperties
- Added Interface ProblemClassificationsClassificationInput
- Added Interface ProblemClassificationsClassificationOutput
- Added Interface ProblemClassificationsClassificationResult
- Added Interface ProblemClassificationsClassifyProblemsOptionalParams
- Added Interface ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams
- Added Interface ProxyResource
- Added Interface Resource
- Added Interface SecondaryConsent
- Added Interface SecondaryConsentEnabled
- Added Interface ServiceClassificationAnswer
- Added Interface ServiceClassificationOutput
- Added Interface ServiceClassificationRequest
- Added Interface ServiceClassificationsClassifyServicesOptionalParams
- Added Interface ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams
- Added Interface SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams
- Added Interface SupportTicketsNoSubscriptionCreateHeaders
- Added Interface SupportTicketsNoSubscriptionCreateOptionalParams
@ -115,11 +86,6 @@
- Added Type Alias FileWorkspacesNoSubscriptionCreateResponse
- Added Type Alias FileWorkspacesNoSubscriptionGetResponse
- Added Type Alias IsTemporaryTicket
- Added Type Alias LookUpResourceIdPostResponse
- Added Type Alias ProblemClassificationsClassifyProblemsResponse
- Added Type Alias ProblemClassificationsNoSubscriptionClassifyProblemsResponse
- Added Type Alias ServiceClassificationsClassifyServicesResponse
- Added Type Alias ServiceClassificationsNoSubscriptionClassifyServicesResponse
- Added Type Alias SupportTicketsNoSubscriptionCheckNameAvailabilityResponse
- Added Type Alias SupportTicketsNoSubscriptionCreateResponse
- Added Type Alias SupportTicketsNoSubscriptionGetResponse
@ -128,11 +94,7 @@
- Added Type Alias SupportTicketsNoSubscriptionUpdateResponse
- Added Type Alias TranscriptContentType
- Added Type Alias UserConsent
- Interface ProblemClassification has a new optional parameter metadata
- Interface ProblemClassification has a new optional parameter parentProblemClassification
- Interface ProblemClassification has a new optional parameter secondaryConsentEnabled
- Interface Service has a new optional parameter metadata
- Interface SupportTicketDetails has a new optional parameter advancedDiagnosticConsent
- Interface SupportTicketDetails has a new optional parameter fileWorkspaceName
- Interface SupportTicketDetails has a new optional parameter isTemporaryTicket
- Interface SupportTicketDetails has a new optional parameter problemScopingQuestions
@ -146,118 +108,19 @@
- Added Enum KnownIsTemporaryTicket
- Added Enum KnownTranscriptContentType
- Added Enum KnownUserConsent
**Breaking Changes**
- Class MicrosoftSupport has a new signature
## 2.2.0-beta.1 (2023-10-16)
**Features**
- Added operation group ChatTranscripts
- Added operation group ChatTranscriptsNoSubscription
- Added operation group CommunicationsNoSubscription
- Added operation group Files
- Added operation group FilesNoSubscription
- Added operation group FileWorkspaces
- Added operation group FileWorkspacesNoSubscription
- Added operation group SupportTicketChatTranscriptsNoSubscription
- Added operation group SupportTicketCommunicationsNoSubscription
- Added operation group SupportTicketsNoSubscription
- Added Interface ChatTranscriptDetails
- Added Interface ChatTranscriptsGetOptionalParams
- Added Interface ChatTranscriptsListNextOptionalParams
- Added Interface ChatTranscriptsListOptionalParams
- Added Interface ChatTranscriptsListResult
- Added Interface ChatTranscriptsNoSubscriptionGetOptionalParams
- Added Interface CommunicationsNoSubscriptionCheckNameAvailabilityOptionalParams
- Added Interface CommunicationsNoSubscriptionCreateHeaders
- Added Interface CommunicationsNoSubscriptionCreateOptionalParams
- Added Interface CommunicationsNoSubscriptionGetOptionalParams
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface FileDetails
- Added Interface FilesCreateOptionalParams
- Added Interface FilesGetOptionalParams
- Added Interface FilesListNextOptionalParams
- Added Interface FilesListOptionalParams
- Added Interface FilesListResult
- Added Interface FilesNoSubscriptionCreateOptionalParams
- Added Interface FilesNoSubscriptionGetOptionalParams
- Added Interface FilesNoSubscriptionListNextOptionalParams
- Added Interface FilesNoSubscriptionListOptionalParams
- Added Interface FilesNoSubscriptionUploadOptionalParams
- Added Interface FilesUploadOptionalParams
- Added Interface FileWorkspaceDetails
- Added Interface FileWorkspacesCreateOptionalParams
- Added Interface FileWorkspacesGetOptionalParams
- Added Interface FileWorkspacesNoSubscriptionCreateOptionalParams
- Added Interface FileWorkspacesNoSubscriptionGetOptionalParams
- Added Interface MessageProperties
- Added Interface ProxyResource
- Added Interface Resource
- Added Interface SecondaryConsent
- Added Interface SecondaryConsentEnabled
- Added Interface SupportTicketChatTranscriptsNoSubscriptionListNextOptionalParams
- Added Interface SupportTicketChatTranscriptsNoSubscriptionListOptionalParams
- Added Interface SupportTicketCommunicationsNoSubscriptionListNextOptionalParams
- Added Interface SupportTicketCommunicationsNoSubscriptionListOptionalParams
- Added Interface SupportTicketsNoSubscriptionCheckNameAvailabilityOptionalParams
- Added Interface SupportTicketsNoSubscriptionCreateHeaders
- Added Interface SupportTicketsNoSubscriptionCreateOptionalParams
- Added Interface SupportTicketsNoSubscriptionGetOptionalParams
- Added Interface SupportTicketsNoSubscriptionListNextOptionalParams
- Added Interface SupportTicketsNoSubscriptionListOptionalParams
- Added Interface SupportTicketsNoSubscriptionUpdateOptionalParams
- Added Interface SystemData
- Added Interface UploadFile
- Added Type Alias ChatTranscriptsGetResponse
- Added Type Alias ChatTranscriptsListNextResponse
- Added Type Alias ChatTranscriptsListResponse
- Added Type Alias ChatTranscriptsNoSubscriptionGetResponse
- Added Type Alias CommunicationsNoSubscriptionCheckNameAvailabilityResponse
- Added Type Alias CommunicationsNoSubscriptionCreateResponse
- Added Type Alias CommunicationsNoSubscriptionGetResponse
- Added Type Alias Consent
- Added Type Alias CreatedByType
- Added Type Alias FilesCreateResponse
- Added Type Alias FilesGetResponse
- Added Type Alias FilesListNextResponse
- Added Type Alias FilesListResponse
- Added Type Alias FilesNoSubscriptionCreateResponse
- Added Type Alias FilesNoSubscriptionGetResponse
- Added Type Alias FilesNoSubscriptionListNextResponse
- Added Type Alias FilesNoSubscriptionListResponse
- Added Type Alias FileWorkspacesCreateResponse
- Added Type Alias FileWorkspacesGetResponse
- Added Type Alias FileWorkspacesNoSubscriptionCreateResponse
- Added Type Alias FileWorkspacesNoSubscriptionGetResponse
- Added Type Alias SupportTicketChatTranscriptsNoSubscriptionListNextResponse
- Added Type Alias SupportTicketChatTranscriptsNoSubscriptionListResponse
- Added Type Alias SupportTicketCommunicationsNoSubscriptionListNextResponse
- Added Type Alias SupportTicketCommunicationsNoSubscriptionListResponse
- Added Type Alias SupportTicketsNoSubscriptionCheckNameAvailabilityResponse
- Added Type Alias SupportTicketsNoSubscriptionCreateResponse
- Added Type Alias SupportTicketsNoSubscriptionGetResponse
- Added Type Alias SupportTicketsNoSubscriptionListNextResponse
- Added Type Alias SupportTicketsNoSubscriptionListResponse
- Added Type Alias SupportTicketsNoSubscriptionUpdateResponse
- Added Type Alias TranscriptContentType
- Added Type Alias UserConsent
- Interface ProblemClassification has a new optional parameter secondaryConsentEnabled
- Interface SupportTicketDetails has a new optional parameter advancedDiagnosticConsent
- Interface SupportTicketDetails has a new optional parameter fileWorkspaceName
- Interface SupportTicketDetails has a new optional parameter problemScopingQuestions
- Interface SupportTicketDetails has a new optional parameter secondaryConsent
- Interface SupportTicketDetails has a new optional parameter supportPlanDisplayName
- Interface SupportTicketDetails has a new optional parameter supportPlanId
- Interface UpdateSupportTicket has a new optional parameter advancedDiagnosticConsent
- Interface UpdateSupportTicket has a new optional parameter secondaryConsent
- Added Enum KnownConsent
- Added Enum KnownCreatedByType
- Added Enum KnownTranscriptContentType
- Added Enum KnownUserConsent
- Class MicrosoftSupport has a new signature
- Interface SupportTicketDetails has a new required parameter advancedDiagnosticConsent
- Parameter body of interface CommunicationDetails is now required
- Parameter subject of interface CommunicationDetails is now required
- Parameter contactDetails of interface SupportTicketDetails is now required
- Parameter description of interface SupportTicketDetails is now required
- Parameter problemClassificationId of interface SupportTicketDetails is now required
- Parameter serviceId of interface SupportTicketDetails is now required
- Parameter severity of interface SupportTicketDetails is now required
- Parameter title of interface SupportTicketDetails is now required
## 2.1.0 (2023-02-02)

Просмотреть файл

@ -6,7 +6,7 @@ Microsoft Azure Support Resource Provider.
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-support) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-support?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-support) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
## Getting started

Просмотреть файл

@ -1,8 +1,8 @@
{
"commit": "77b17b30a190de4fed30391f2aba0f013a40a4e9",
"commit": "15c4ed25135164c257da37731b3fa926a4f44d4a",
"readme": "specification/support/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\support\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\support\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.5",
"use": "@autorest/typescript@6.0.20"
}

Просмотреть файл

@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for MicrosoftSupport.",
"version": "2.2.0-beta.3",
"version": "3.0.0",
"engines": {
"node": ">=18.0.0"
},

Просмотреть файл

@ -89,23 +89,16 @@ export interface CheckNameAvailabilityOutput {
readonly reason?: string;
}
// @public
export interface ClassificationService {
readonly displayName?: string;
resourceTypes?: string[];
readonly serviceId?: string;
}
// @public
export interface CommunicationDetails {
body?: string;
body: string;
readonly communicationDirection?: CommunicationDirection;
readonly communicationType?: CommunicationType;
readonly createdDate?: Date;
readonly id?: string;
readonly name?: string;
sender?: string;
subject?: string;
subject: string;
readonly type?: string;
}
@ -470,32 +463,9 @@ export enum KnownUserConsent {
Yes = "Yes"
}
// @public
export interface LookUpResourceId {
post(lookUpResourceIdRequest: LookUpResourceIdRequest, options?: LookUpResourceIdPostOptionalParams): Promise<LookUpResourceIdPostResponse>;
}
// @public
export interface LookUpResourceIdPostOptionalParams extends coreClient.OperationOptions {
}
// @public
export type LookUpResourceIdPostResponse = LookUpResourceIdResponse;
// @public
export interface LookUpResourceIdRequest {
identifier?: string;
type?: "Microsoft.Support/supportTickets";
}
// @public
export interface LookUpResourceIdResponse {
resourceId?: string;
}
// @public
export interface MessageProperties {
body: string;
body?: string;
readonly communicationDirection?: CommunicationDirection;
readonly contentType?: TranscriptContentType;
readonly createdDate?: Date;
@ -527,18 +497,10 @@ export class MicrosoftSupport extends coreClient.ServiceClient {
// (undocumented)
fileWorkspacesNoSubscription: FileWorkspacesNoSubscription;
// (undocumented)
lookUpResourceId: LookUpResourceId;
// (undocumented)
operations: Operations;
// (undocumented)
problemClassifications: ProblemClassifications;
// (undocumented)
problemClassificationsNoSubscription: ProblemClassificationsNoSubscription;
// (undocumented)
serviceClassifications: ServiceClassifications;
// (undocumented)
serviceClassificationsNoSubscription: ServiceClassificationsNoSubscription;
// (undocumented)
services: Services;
// (undocumented)
subscriptionId?: string;
@ -593,52 +555,17 @@ export type PreferredContactMethod = string;
export interface ProblemClassification {
displayName?: string;
readonly id?: string;
readonly metadata?: {
[propertyName: string]: string;
};
readonly name?: string;
parentProblemClassification?: ProblemClassification;
secondaryConsentEnabled?: SecondaryConsentEnabled[];
readonly type?: string;
}
// @public
export interface ProblemClassifications {
classifyProblems(problemServiceName: string, problemClassificationsClassificationInput: ProblemClassificationsClassificationInput, options?: ProblemClassificationsClassifyProblemsOptionalParams): Promise<ProblemClassificationsClassifyProblemsResponse>;
get(serviceName: string, problemClassificationName: string, options?: ProblemClassificationsGetOptionalParams): Promise<ProblemClassificationsGetResponse>;
list(serviceName: string, options?: ProblemClassificationsListOptionalParams): PagedAsyncIterableIterator<ProblemClassification>;
}
// @public
export interface ProblemClassificationsClassificationInput {
issueSummary: string;
resourceId?: string;
}
// @public
export interface ProblemClassificationsClassificationOutput {
problemClassificationResults?: ProblemClassificationsClassificationResult[];
}
// @public
export interface ProblemClassificationsClassificationResult {
readonly description?: string;
readonly displayName?: string;
readonly problemClassificationId?: string;
readonly problemId?: string;
resourceTypes?: string[];
readonly serviceId?: string;
readonly serviceIdRelatedServiceId?: string;
readonly title?: string;
}
// @public
export interface ProblemClassificationsClassifyProblemsOptionalParams extends coreClient.OperationOptions {
}
// @public
export type ProblemClassificationsClassifyProblemsResponse = ProblemClassificationsClassificationOutput;
// @public
export interface ProblemClassificationsGetOptionalParams extends coreClient.OperationOptions {
}
@ -658,18 +585,6 @@ export interface ProblemClassificationsListResult {
value?: ProblemClassification[];
}
// @public
export interface ProblemClassificationsNoSubscription {
classifyProblems(problemServiceName: string, problemClassificationsClassificationInput: ProblemClassificationsClassificationInput, options?: ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams): Promise<ProblemClassificationsNoSubscriptionClassifyProblemsResponse>;
}
// @public
export interface ProblemClassificationsNoSubscriptionClassifyProblemsOptionalParams extends coreClient.OperationOptions {
}
// @public
export type ProblemClassificationsNoSubscriptionClassifyProblemsResponse = ProblemClassificationsClassificationOutput;
// @public
export interface ProxyResource extends Resource {
}
@ -711,55 +626,11 @@ export interface SecondaryConsentEnabled {
export interface Service {
displayName?: string;
readonly id?: string;
readonly metadata?: {
[propertyName: string]: string;
};
readonly name?: string;
resourceTypes?: string[];
readonly type?: string;
}
// @public
export interface ServiceClassificationAnswer extends ClassificationService {
childService?: ClassificationService;
}
// @public
export interface ServiceClassificationOutput {
serviceClassificationResults?: ServiceClassificationAnswer[];
}
// @public
export interface ServiceClassificationRequest {
additionalContext?: string;
issueSummary?: string;
resourceId?: string;
}
// @public
export interface ServiceClassifications {
classifyServices(serviceClassificationRequest: ServiceClassificationRequest, options?: ServiceClassificationsClassifyServicesOptionalParams): Promise<ServiceClassificationsClassifyServicesResponse>;
}
// @public
export interface ServiceClassificationsClassifyServicesOptionalParams extends coreClient.OperationOptions {
}
// @public
export type ServiceClassificationsClassifyServicesResponse = ServiceClassificationOutput;
// @public
export interface ServiceClassificationsNoSubscription {
classifyServices(serviceClassificationRequest: ServiceClassificationRequest, options?: ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams): Promise<ServiceClassificationsNoSubscriptionClassifyServicesResponse>;
}
// @public
export interface ServiceClassificationsNoSubscriptionClassifyServicesOptionalParams extends coreClient.OperationOptions {
}
// @public
export type ServiceClassificationsNoSubscriptionClassifyServicesResponse = ServiceClassificationOutput;
// @public
export interface ServiceLevelAgreement {
readonly expirationTime?: Date;
@ -805,10 +676,10 @@ export interface SupportEngineer {
// @public
export interface SupportTicketDetails {
advancedDiagnosticConsent?: Consent;
contactDetails?: ContactProfile;
advancedDiagnosticConsent: Consent;
contactDetails: ContactProfile;
readonly createdDate?: Date;
description?: string;
description: string;
enrollmentId?: string;
fileWorkspaceName?: string;
readonly id?: string;
@ -816,16 +687,16 @@ export interface SupportTicketDetails {
readonly modifiedDate?: Date;
readonly name?: string;
readonly problemClassificationDisplayName?: string;
problemClassificationId?: string;
problemClassificationId: string;
problemScopingQuestions?: string;
problemStartTime?: Date;
quotaTicketDetails?: QuotaTicketDetails;
require24X7Response?: boolean;
secondaryConsent?: SecondaryConsent[];
readonly serviceDisplayName?: string;
serviceId?: string;
serviceId: string;
serviceLevelAgreement?: ServiceLevelAgreement;
severity?: SeverityLevel;
severity: SeverityLevel;
readonly status?: string;
supportEngineer?: SupportEngineer;
readonly supportPlanDisplayName?: string;
@ -833,7 +704,7 @@ export interface SupportTicketDetails {
readonly supportPlanType?: string;
supportTicketId?: string;
technicalTicketDetails?: TechnicalTicketDetails;
title?: string;
title: string;
readonly type?: string;
}

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Returns chatTranscript details for a support ticket under a subscription.
*
* @summary Returns chatTranscript details for a support ticket under a subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json
*/
async function getChatTranscriptDetailsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const chatTranscriptName = "69586795-45e9-45b5-bd9e-c9bb237d3e44";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Lists all chat transcripts for a support ticket under subscription
*
* @summary Lists all chat transcripts for a support ticket under subscription
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSubscriptionSupportTicket.json
*/
async function listChatTranscriptsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns chatTranscript details for a no subscription support ticket.
*
* @summary Returns chatTranscript details for a no subscription support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSupportTicket.json
*/
async function getChatTranscriptDetailsForASubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all chat transcripts for a support ticket
*
* @summary Lists all chat transcripts for a support ticket
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSupportTicket.json
*/
async function listChatTranscriptsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -21,10 +21,12 @@ dotenv.config();
* This sample demonstrates how to 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.
*
* @summary 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForSupportTicketCommunication.json
*/
async function checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const checkNameAvailabilityInput: CheckNameAvailabilityInput = {
name: "sampleName",
@ -40,7 +42,7 @@ async function checksWhetherNameIsAvailableForSubscriptionScopedCommunicationRes
}
async function main() {
checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource();
checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket();
}
main().catch(console.error);

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Adds a new customer communication to an Azure support ticket.
*
* @summary Adds a new customer communication to an Azure support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSupportTicketCommunication.json
*/
async function addCommunicationToSubscriptionTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const communicationName = "testcommunication";
const createCommunicationParameters: CommunicationDetails = {

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Returns communication details for a support ticket.
*
* @summary Returns communication details for a support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
*/
async function getCommunicationDetailsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const communicationName = "testmessage";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -21,10 +21,12 @@ dotenv.config();
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json
*/
async function listCommunicationsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
@ -39,10 +41,12 @@ async function listCommunicationsForASubscriptionSupportTicket() {
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json
*/
async function listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const filter =
"communicationType eq 'web' and createdDate ge 2020-03-10T22:08:51Z";
@ -63,10 +67,12 @@ async function listWebCommunicationCreatedOnOrAfterASpecificDateForASubscription
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
*/
async function listWebCommunicationsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const filter = "communicationType eq 'web'";
const options: CommunicationsListOptionalParams = { filter };

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to 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.
*
* @summary 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json
*/
async function checksWhetherNameIsAvailableForCommunicationResource() {
const subscriptionId =

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Adds a new customer communication to an Azure support ticket.
*
* @summary Adds a new customer communication to an Azure support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateNoSubscriptionSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateNoSubscriptionSupportTicketCommunication.json
*/
async function addCommunicationToNoSubscriptionTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns communication details for a support ticket.
*
* @summary Returns communication details for a support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSupportTicket.json
*/
async function getCommunicationDetailsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSupportTicket.json
*/
async function listCommunicationsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";
@ -40,7 +40,7 @@ async function listCommunicationsForANoSubscriptionSupportTicket() {
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
*/
async function listWebCommunicationCreatedOnOrAfterASpecificDateForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";
@ -63,7 +63,7 @@ async function listWebCommunicationCreatedOnOrAfterASpecificDateForANoSubscripti
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicket.json
*/
async function listWebCommunicationsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Creates a new file workspace for the specified subscription.
*
* @summary Creates a new file workspace for the specified subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspaceForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspaceForSubscription.json
*/
async function createASubscriptionScopedFileWorkspace() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createAFileWorkspaceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
@ -30,7 +32,7 @@ async function createASubscriptionScopedFileWorkspace() {
}
async function main() {
createASubscriptionScopedFileWorkspace();
createAFileWorkspaceForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Gets details for a specific file workspace in an Azure subscription.
*
* @summary Gets details for a specific file workspace in an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetailsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetailsForSubscription.json
*/
async function getDetailsOfASubscriptionFileWorkspace() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new file workspace.
*
* @summary Creates a new file workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json
*/
async function createAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets details for a specific file workspace.
*
* @summary Gets details for a specific file workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json
*/
async function getDetailsOfAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Creates a new file under a workspace for the specified subscription.
*
* @summary Creates a new file under a workspace for the specified subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription.json
*/
async function createASubscriptionScopedFile() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createAFileUnderASubscriptionWorkspace() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const fileName = "test.txt";
const createFileParameters: FileDetails = {
@ -40,7 +42,7 @@ async function createASubscriptionScopedFile() {
}
async function main() {
createASubscriptionScopedFile();
createAFileUnderASubscriptionWorkspace();
}
main().catch(console.error);

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Returns details of a specific file in a work space.
*
* @summary Returns details of a specific file in a work space.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetailsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription.json
*/
async function getDetailsOfASubscriptionFile() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const fileName = "test.txt";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Lists all the Files information under a workspace for an Azure subscription.
*
* @summary Lists all the Files information under a workspace for an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesForSubscriptionUnderFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesForSubscriptionUnderFileWorkspace.json
*/
async function listFilesUnderAWorkspaceForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new file under a workspace.
*
* @summary Creates a new file under a workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFile.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json
*/
async function createAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns details of a specific file in a work space.
*
* @summary Returns details of a specific file in a work space.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json
*/
async function getDetailsOfASubscriptionFile() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the Files information under a workspace for an Azure subscription.
*
* @summary Lists all the Files information under a workspace for an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesUnderFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace.json
*/
async function listFilesUnderAWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to This API allows you to upload content to a file
*
* @summary This API allows you to upload content to a file
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFile.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json
*/
async function uploadFile() {
const fileWorkspaceName = "testworkspaceName";

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to This API allows you to upload content to a file
*
* @summary This API allows you to upload content to a file
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFileForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription.json
*/
async function uploadFileForSubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspaceName";
const fileName = "test.txt";
const uploadFile: UploadFile = {

Просмотреть файл

@ -1,38 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { LookUpResourceIdRequest, MicrosoftSupport } from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to This operation fetches ARM resource id of support resource type.
*
* @summary This operation fetches ARM resource id of support resource type.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json
*/
async function lookUpResourceIdOfSupportResourceType() {
const lookUpResourceIdRequest: LookUpResourceIdRequest = {
type: "Microsoft.Support/supportTickets",
identifier: "1234668596",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result = await client.lookUpResourceId.post(lookUpResourceIdRequest);
console.log(result);
}
async function main() {
lookUpResourceIdOfSupportResourceType();
}
main().catch(console.error);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to This lists all the available Microsoft Support REST API operations.
*
* @summary This lists all the available Microsoft Support REST API operations.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListOperations.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json
*/
async function getAllOperations() {
const subscriptionId =

Просмотреть файл

@ -1,50 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ProblemClassificationsClassificationInput,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput: ProblemClassificationsClassificationInput =
{
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.problemClassifications.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Get problem classification details for a specific Azure service.
*
* @summary Get problem classification details for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetProblemClassification.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json
*/
async function getsDetailsOfProblemClassificationForAzureService() {
const serviceName = "service_guid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
*
* @summary Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListProblemClassifications.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications.json
*/
async function getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated() {
const serviceName = "service_guid";

Просмотреть файл

@ -1,44 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ProblemClassificationsClassificationInput,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureService() {
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput: ProblemClassificationsClassificationInput =
{ issueSummary: "Can not connect to Windows VM" };
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result =
await client.problemClassificationsNoSubscription.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureService();
}
main().catch(console.error);

Просмотреть файл

@ -1,47 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ServiceClassificationRequest,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json
*/
async function classifyListOfAzureServicesForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const serviceClassificationRequest: ServiceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/76cb77fa-8b17-4eab-9493-b65dace99813/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.serviceClassifications.classifyServices(
serviceClassificationRequest,
);
console.log(result);
}
async function main() {
classifyListOfAzureServicesForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -1,45 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ServiceClassificationRequest,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json
*/
async function classifyListOfAzureServices() {
const serviceClassificationRequest: ServiceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result =
await client.serviceClassificationsNoSubscription.classifyServices(
serviceClassificationRequest,
);
console.log(result);
}
async function main() {
classifyListOfAzureServices();
}
main().catch(console.error);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a specific Azure service for support ticket creation.
*
* @summary Gets a specific Azure service for support ticket creation.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetService.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json
*/
async function getsDetailsOfTheAzureService() {
const serviceName = "service_guid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
*
* @summary Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListServices.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json
*/
async function getsListOfServicesForWhichASupportTicketCanBeCreated() {
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -21,10 +21,12 @@ dotenv.config();
* This sample demonstrates how to Check 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.
*
* @summary Check 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityWithSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityWithSubscription.json
*/
async function checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function checksWhetherNameIsAvailableForASubscriptionSupportTicketResource() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const checkNameAvailabilityInput: CheckNameAvailabilityInput = {
name: "sampleName",
type: "Microsoft.Support/supportTickets",
@ -38,7 +40,7 @@ async function checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketRes
}
async function main() {
checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource();
checksWhetherNameIsAvailableForASubscriptionSupportTicketResource();
}
main().catch(console.error);

Просмотреть файл

@ -18,13 +18,16 @@ dotenv.config();
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForBillingRelatedIssues() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForBillingRelatedIssues() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -56,13 +59,16 @@ async function createASubscriptionScopedTicketForBillingRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForSubscriptionManagementRelatedIssuesForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -95,10 +101,12 @@ async function createASubscriptionScopedTicketForSubscriptionManagementRelatedIs
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -127,7 +135,7 @@ async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecifi
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=",
technicalTicketDetails: {
resourceId:
"/subscriptions/subid/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver",
"/subscriptions/132d901f-189d-4381-9214-fe68e27e05a1/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver",
},
title: "my title",
};
@ -144,10 +152,12 @@ async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecifi
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
*/
async function createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -192,10 +202,12 @@ async function createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesFo
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlManagedInstanceQuotaTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlManagedInstanceQuotaTicket.json
*/
async function createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -244,10 +256,12 @@ async function createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSubscription.json
*/
async function createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -289,10 +303,12 @@ async function createATicketToRequestQuotaIncreaseForBatchAccountsForASubscripti
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateCoresQuotaTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateCoresQuotaTicketForSubscription.json
*/
async function createATicketToRequestQuotaIncreaseForComputeVMCores() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -333,10 +349,12 @@ async function createATicketToRequestQuotaIncreaseForComputeVMCores() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
*/
async function createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -381,10 +399,12 @@ async function createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytic
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
*/
async function createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -429,10 +449,12 @@ async function createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
*/
async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -474,10 +496,12 @@ async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineL
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
*/
async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -522,10 +546,12 @@ async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAc
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
*/
async function createATicketToRequestQuotaIncreaseForPoolsForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -570,10 +596,12 @@ async function createATicketToRequestQuotaIncreaseForPoolsForABatchAccount() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
*/
async function createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -613,10 +641,12 @@ async function createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnaly
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForServers.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForServers.json
*/
async function createATicketToRequestQuotaIncreaseForServersForSqlDatabase() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -656,14 +686,17 @@ async function createATicketToRequestQuotaIncreaseForServersForSqlDatabase() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateGenericQuotaTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json
*/
async function createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description:
"Increase the maximum throughput per container limit to 10000 for account foo bar",
advancedDiagnosticConsent: "Yes",
contactDetails: {
country: "usa",
firstName: "abc",
@ -692,10 +725,12 @@ async function createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdd
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
*/
async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -741,10 +776,12 @@ async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMac
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
*/
async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
@ -787,9 +824,9 @@ async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABa
}
async function main() {
createASubscriptionScopedTicketForBillingRelatedIssues();
createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues();
createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource();
createATicketForBillingRelatedIssues();
createATicketForSubscriptionManagementRelatedIssuesForASubscription();
createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription();
createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount();
createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance();
createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription();

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Get 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.
*
* @summary Get 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSubscriptionSupportTicketDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSubscriptionSupportTicketDetails.json
*/
async function getDetailsOfASubscriptionTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -21,10 +21,12 @@ dotenv.config();
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
const options: SupportTicketsListOptionalParams = { filter };
const credential = new DefaultAzureCredential();
@ -40,10 +42,12 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForAS
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
const options: SupportTicketsListOptionalParams = { filter };
const credential = new DefaultAzureCredential();
@ -59,10 +63,12 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateF
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsBySubscription.json
*/
async function listSupportTicketsForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const resArray = new Array();
@ -76,10 +82,12 @@ async function listSupportTicketsForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenStateBySubscription.json
*/
async function listSupportTicketsInOpenStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "status eq 'Open'";
const options: SupportTicketsListOptionalParams = { filter };
const credential = new DefaultAzureCredential();
@ -95,10 +103,12 @@ async function listSupportTicketsInOpenStateForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingStateBySubscription.json
*/
async function listSupportTicketsInUpdatingStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "status eq 'Updating'";
const options: SupportTicketsListOptionalParams = { filter };
const credential = new DefaultAzureCredential();
@ -114,10 +124,12 @@ async function listSupportTicketsInUpdatingStateForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
*/
async function listSupportTicketsWithACertainProblemClassificationIdForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter =
"ProblemClassificationId eq 'compute_vm_problemClassification_guid'";
const options: SupportTicketsListOptionalParams = { filter };
@ -134,10 +146,12 @@ async function listSupportTicketsWithACertainProblemClassificationIdForASubscrip
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
*/
async function listSupportTicketsWithACertainServiceIdForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "ServiceId eq 'vm_windows_service_guid'";
const options: SupportTicketsListOptionalParams = { filter };
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Check 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.
*
* @summary Check 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailability.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json
*/
async function checksWhetherNameIsAvailableForSupportTicketResource() {
const subscriptionId =

Просмотреть файл

@ -18,12 +18,13 @@ dotenv.config();
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket.json
*/
async function createATicketForBillingRelatedIssues() {
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -55,12 +56,13 @@ async function createATicketForBillingRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket.json
*/
async function createATicketForSubscriptionManagementRelatedIssues() {
const supportTicketName = "testticket";
const createSupportTicketParameters: SupportTicketDetails = {
description: "my description",
advancedDiagnosticConsent: "Yes",
contactDetails: {
country: "usa",
firstName: "abc",
@ -93,7 +95,7 @@ async function createATicketForSubscriptionManagementRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket.json
*/
async function createATicketForTechnicalIssueRelatedToASpecificResource() {
const supportTicketName = "testticket";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets details for a specific support ticket. 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.
*
* @summary Gets details for a specific support ticket. 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSupportTicketDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json
*/
async function getDetailsOfATicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTickets.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json
*/
async function listSupportTickets() {
const credential = new DefaultAzureCredential();
@ -37,7 +37,7 @@ async function listSupportTickets() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState() {
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
@ -55,7 +55,7 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingState() {
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
@ -73,7 +73,7 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingState(
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState.json
*/
async function listSupportTicketsInOpenState() {
const filter = "status eq 'Open'";
@ -91,7 +91,7 @@ async function listSupportTicketsInOpenState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingState.json
*/
async function listSupportTicketsInUpdatingState() {
const filter = "status eq 'Updating'";
@ -109,7 +109,7 @@ async function listSupportTicketsInUpdatingState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEquals.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEquals.json
*/
async function listSupportTicketsWithACertainProblemClassificationId() {
const filter =
@ -128,7 +128,7 @@ async function listSupportTicketsWithACertainProblemClassificationId() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEquals.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEquals.json
*/
async function listSupportTicketsWithACertainServiceId() {
const filter = "ServiceId eq 'vm_windows_service_guid'";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
*/
async function updateAdvancedDiagnosticConsentOfASupportTicket() {
const supportTicketName = "testticket";
@ -38,7 +38,7 @@ async function updateAdvancedDiagnosticConsentOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateContactDetailsOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicket.json
*/
async function updateContactDetailsOfASupportTicket() {
const supportTicketName = "testticket";
@ -68,7 +68,7 @@ async function updateContactDetailsOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket.json
*/
async function updateSeverityOfASupportTicket() {
const supportTicketName = "testticket";
@ -86,7 +86,7 @@ async function updateSeverityOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket.json
*/
async function updateStatusOfASupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json
*/
async function updateAdvancedDiagnosticConsentOfASupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const updateSupportTicket: UpdateSupportTicket = {
advancedDiagnosticConsent: "Yes",
@ -39,10 +41,12 @@ async function updateAdvancedDiagnosticConsentOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateContactDetailsOfSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicketForSubscription.json
*/
async function updateContactDetailsOfASubscriptionScopedSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function updateContactDetailsOfASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const updateSupportTicket: UpdateSupportTicket = {
contactDetails: {
@ -70,10 +74,12 @@ async function updateContactDetailsOfASubscriptionScopedSupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicketForSubscription.json
*/
async function updateSeverityOfASubscriptionScopedSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function updateSeverityOfASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const updateSupportTicket: UpdateSupportTicket = { severity: "critical" };
const credential = new DefaultAzureCredential();
@ -89,10 +95,12 @@ async function updateSeverityOfASubscriptionScopedSupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicketForSubscription.json
*/
async function updateStatusOfASubscriptionScopedSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function updateStatusOfASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const updateSupportTicket: UpdateSupportTicket = { status: "closed" };
const credential = new DefaultAzureCredential();
@ -105,10 +113,10 @@ async function updateStatusOfASubscriptionScopedSupportTicket() {
}
async function main() {
updateAdvancedDiagnosticConsentOfASupportTicket();
updateContactDetailsOfASubscriptionScopedSupportTicket();
updateSeverityOfASubscriptionScopedSupportTicket();
updateStatusOfASubscriptionScopedSupportTicket();
updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket();
updateContactDetailsOfASubscriptionSupportTicket();
updateSeverityOfASubscriptionSupportTicket();
updateStatusOfASubscriptionSupportTicket();
}
main().catch(console.error);

Просмотреть файл

@ -1,36 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { MicrosoftSupport } = require("@azure/arm-support");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to This operation fetches ARM resource id of support resource type.
*
* @summary This operation fetches ARM resource id of support resource type.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json
*/
async function lookUpResourceIdOfSupportResourceType() {
const lookUpResourceIdRequest = {
type: "Microsoft.Support/supportTickets",
identifier: "1234668596",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result = await client.lookUpResourceId.post(lookUpResourceIdRequest);
console.log(result);
}
async function main() {
lookUpResourceIdOfSupportResourceType();
}
main().catch(console.error);

Просмотреть файл

@ -1,43 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { MicrosoftSupport } = require("@azure/arm-support");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.problemClassifications.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -1,39 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { MicrosoftSupport } = require("@azure/arm-support");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureService() {
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput = {
issueSummary: "Can not connect to Windows VM",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result = await client.problemClassificationsNoSubscription.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureService();
}
main().catch(console.error);

Просмотреть файл

@ -1,39 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { MicrosoftSupport } = require("@azure/arm-support");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json
*/
async function classifyListOfAzureServicesForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const serviceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/76cb77fa-8b17-4eab-9493-b65dace99813/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.serviceClassifications.classifyServices(serviceClassificationRequest);
console.log(result);
}
async function main() {
classifyListOfAzureServicesForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -1,39 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { MicrosoftSupport } = require("@azure/arm-support");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json
*/
async function classifyListOfAzureServices() {
const serviceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result = await client.serviceClassificationsNoSubscription.classifyServices(
serviceClassificationRequest,
);
console.log(result);
}
async function main() {
classifyListOfAzureServices();
}
main().catch(console.error);

Просмотреть файл

@ -1,38 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { LookUpResourceIdRequest, MicrosoftSupport } from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to This operation fetches ARM resource id of support resource type.
*
* @summary This operation fetches ARM resource id of support resource type.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json
*/
async function lookUpResourceIdOfSupportResourceType() {
const lookUpResourceIdRequest: LookUpResourceIdRequest = {
type: "Microsoft.Support/supportTickets",
identifier: "1234668596",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result = await client.lookUpResourceId.post(lookUpResourceIdRequest);
console.log(result);
}
async function main() {
lookUpResourceIdOfSupportResourceType();
}
main().catch(console.error);

Просмотреть файл

@ -1,50 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ProblemClassificationsClassificationInput,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput: ProblemClassificationsClassificationInput =
{
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.problemClassifications.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -1,44 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ProblemClassificationsClassificationInput,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the right problem classifications (categories) available for a specific Azure service.
*
* @summary Classify the right problem classifications (categories) available for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json
*/
async function classifyListOfProblemClassificationsForASpecifiedAzureService() {
const problemServiceName = "serviceId1";
const problemClassificationsClassificationInput: ProblemClassificationsClassificationInput =
{ issueSummary: "Can not connect to Windows VM" };
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result =
await client.problemClassificationsNoSubscription.classifyProblems(
problemServiceName,
problemClassificationsClassificationInput,
);
console.log(result);
}
async function main() {
classifyListOfProblemClassificationsForASpecifiedAzureService();
}
main().catch(console.error);

Просмотреть файл

@ -1,47 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ServiceClassificationRequest,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json
*/
async function classifyListOfAzureServicesForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const serviceClassificationRequest: ServiceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/76cb77fa-8b17-4eab-9493-b65dace99813/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const result = await client.serviceClassifications.classifyServices(
serviceClassificationRequest,
);
console.log(result);
}
async function main() {
classifyListOfAzureServicesForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -1,45 +0,0 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ServiceClassificationRequest,
MicrosoftSupport,
} from "@azure/arm-support";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Classify the list of right Azure services.
*
* @summary Classify the list of right Azure services.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json
*/
async function classifyListOfAzureServices() {
const serviceClassificationRequest: ServiceClassificationRequest = {
issueSummary: "Can not connect to Windows VM",
resourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname",
};
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential);
const result =
await client.serviceClassificationsNoSubscription.classifyServices(
serviceClassificationRequest,
);
console.log(result);
}
async function main() {
classifyListOfAzureServices();
}
main().catch(console.error);

Просмотреть файл

@ -1,53 +1,48 @@
# client library samples for JavaScript (Beta)
# client library samples for JavaScript
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
| **File Name** | **Description** |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [chatTranscriptsGetSample.js][chattranscriptsgetsample] | Returns chatTranscript details for a support ticket under a subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json |
| [chatTranscriptsListSample.js][chattranscriptslistsample] | Lists all chat transcripts for a support ticket under subscription x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSubscriptionSupportTicket.json |
| [chatTranscriptsNoSubscriptionGetSample.js][chattranscriptsnosubscriptiongetsample] | Returns chatTranscript details for a no subscription support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSupportTicket.json |
| [chatTranscriptsNoSubscriptionListSample.js][chattranscriptsnosubscriptionlistsample] | Lists all chat transcripts for a support ticket x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSupportTicket.json |
| [communicationsCheckNameAvailabilitySample.js][communicationschecknameavailabilitysample] | 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForSupportTicketCommunication.json |
| [communicationsCreateSample.js][communicationscreatesample] | Adds a new customer communication to an Azure support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSupportTicketCommunication.json |
| [communicationsGetSample.js][communicationsgetsample] | Returns communication details for a support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json |
| [communicationsListSample.js][communicationslistsample] | Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSubscriptionSupportTicket.json |
| [communicationsNoSubscriptionCheckNameAvailabilitySample.js][communicationsnosubscriptionchecknameavailabilitysample] | 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json |
| [communicationsNoSubscriptionCreateSample.js][communicationsnosubscriptioncreatesample] | Adds a new customer communication to an Azure support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateNoSubscriptionSupportTicketCommunication.json |
| [communicationsNoSubscriptionGetSample.js][communicationsnosubscriptiongetsample] | Returns communication details for a support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSupportTicket.json |
| [communicationsNoSubscriptionListSample.js][communicationsnosubscriptionlistsample] | Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSupportTicket.json |
| [fileWorkspacesCreateSample.js][fileworkspacescreatesample] | Creates a new file workspace for the specified subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspaceForSubscription.json |
| [fileWorkspacesGetSample.js][fileworkspacesgetsample] | Gets details for a specific file workspace in an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetailsForSubscription.json |
| [fileWorkspacesNoSubscriptionCreateSample.js][fileworkspacesnosubscriptioncreatesample] | Creates a new file workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspace.json |
| [fileWorkspacesNoSubscriptionGetSample.js][fileworkspacesnosubscriptiongetsample] | Gets details for a specific file workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetails.json |
| [filesCreateSample.js][filescreatesample] | Creates a new file under a workspace for the specified subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileForSubscription.json |
| [filesGetSample.js][filesgetsample] | Returns details of a specific file in a work space. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetailsForSubscription.json |
| [filesListSample.js][fileslistsample] | Lists all the Files information under a workspace for an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesForSubscriptionUnderFileWorkspace.json |
| [filesNoSubscriptionCreateSample.js][filesnosubscriptioncreatesample] | Creates a new file under a workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFile.json |
| [filesNoSubscriptionGetSample.js][filesnosubscriptiongetsample] | Returns details of a specific file in a work space. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetails.json |
| [filesNoSubscriptionListSample.js][filesnosubscriptionlistsample] | Lists all the Files information under a workspace for an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesUnderFileWorkspace.json |
| [filesNoSubscriptionUploadSample.js][filesnosubscriptionuploadsample] | This API allows you to upload content to a file x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFile.json |
| [filesUploadSample.js][filesuploadsample] | This API allows you to upload content to a file x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFileForSubscription.json |
| [lookUpResourceIdPostSample.js][lookupresourceidpostsample] | This operation fetches ARM resource id of support resource type. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json |
| [operationsListSample.js][operationslistsample] | This lists all the available Microsoft Support REST API operations. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListOperations.json |
| [problemClassificationsClassifyProblemsSample.js][problemclassificationsclassifyproblemssample] | Classify the right problem classifications (categories) available for a specific Azure service. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json |
| [problemClassificationsGetSample.js][problemclassificationsgetsample] | Get problem classification details for a specific Azure service. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetProblemClassification.json |
| [problemClassificationsListSample.js][problemclassificationslistsample] | Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListProblemClassifications.json |
| [problemClassificationsNoSubscriptionClassifyProblemsSample.js][problemclassificationsnosubscriptionclassifyproblemssample] | Classify the right problem classifications (categories) available for a specific Azure service. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json |
| [serviceClassificationsClassifyServicesSample.js][serviceclassificationsclassifyservicessample] | Classify the list of right Azure services. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json |
| [serviceClassificationsNoSubscriptionClassifyServicesSample.js][serviceclassificationsnosubscriptionclassifyservicessample] | Classify the list of right Azure services. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json |
| [servicesGetSample.js][servicesgetsample] | Gets a specific Azure service for support ticket creation. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetService.json |
| [servicesListSample.js][serviceslistsample] | Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListServices.json |
| [supportTicketsCheckNameAvailabilitySample.js][supportticketschecknameavailabilitysample] | Check 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityWithSubscription.json |
| [supportTicketsCreateSample.js][supportticketscreatesample] | Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicketForSubscription.json |
| [supportTicketsGetSample.js][supportticketsgetsample] | Get 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSubscriptionSupportTicketDetails.json |
| [supportTicketsListSample.js][supportticketslistsample] | 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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json |
| [supportTicketsNoSubscriptionCheckNameAvailabilitySample.js][supportticketsnosubscriptionchecknameavailabilitysample] | Check 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailability.json |
| [supportTicketsNoSubscriptionCreateSample.js][supportticketsnosubscriptioncreatesample] | Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/> x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicket.json |
| [supportTicketsNoSubscriptionGetSample.js][supportticketsnosubscriptiongetsample] | Gets details for a specific support ticket. 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSupportTicketDetails.json |
| [supportTicketsNoSubscriptionListSample.js][supportticketsnosubscriptionlistsample] | Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTickets.json |
| [supportTicketsNoSubscriptionUpdateSample.js][supportticketsnosubscriptionupdatesample] | This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json |
| [supportTicketsUpdateSample.js][supportticketsupdatesample] | This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json |
| **File Name** | **Description** |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [chatTranscriptsGetSample.js][chattranscriptsgetsample] | Returns chatTranscript details for a support ticket under a subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json |
| [chatTranscriptsListSample.js][chattranscriptslistsample] | Lists all chat transcripts for a support ticket under subscription x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSubscriptionSupportTicket.json |
| [chatTranscriptsNoSubscriptionGetSample.js][chattranscriptsnosubscriptiongetsample] | Returns chatTranscript details for a no subscription support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSupportTicket.json |
| [chatTranscriptsNoSubscriptionListSample.js][chattranscriptsnosubscriptionlistsample] | Lists all chat transcripts for a support ticket x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSupportTicket.json |
| [communicationsCheckNameAvailabilitySample.js][communicationschecknameavailabilitysample] | 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForSupportTicketCommunication.json |
| [communicationsCreateSample.js][communicationscreatesample] | Adds a new customer communication to an Azure support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSupportTicketCommunication.json |
| [communicationsGetSample.js][communicationsgetsample] | Returns communication details for a support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json |
| [communicationsListSample.js][communicationslistsample] | Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json |
| [communicationsNoSubscriptionCheckNameAvailabilitySample.js][communicationsnosubscriptionchecknameavailabilitysample] | 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json |
| [communicationsNoSubscriptionCreateSample.js][communicationsnosubscriptioncreatesample] | Adds a new customer communication to an Azure support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateNoSubscriptionSupportTicketCommunication.json |
| [communicationsNoSubscriptionGetSample.js][communicationsnosubscriptiongetsample] | Returns communication details for a support ticket. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSupportTicket.json |
| [communicationsNoSubscriptionListSample.js][communicationsnosubscriptionlistsample] | Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSupportTicket.json |
| [fileWorkspacesCreateSample.js][fileworkspacescreatesample] | Creates a new file workspace for the specified subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspaceForSubscription.json |
| [fileWorkspacesGetSample.js][fileworkspacesgetsample] | Gets details for a specific file workspace in an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetailsForSubscription.json |
| [fileWorkspacesNoSubscriptionCreateSample.js][fileworkspacesnosubscriptioncreatesample] | Creates a new file workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json |
| [fileWorkspacesNoSubscriptionGetSample.js][fileworkspacesnosubscriptiongetsample] | Gets details for a specific file workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json |
| [filesCreateSample.js][filescreatesample] | Creates a new file under a workspace for the specified subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription.json |
| [filesGetSample.js][filesgetsample] | Returns details of a specific file in a work space. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription.json |
| [filesListSample.js][fileslistsample] | Lists all the Files information under a workspace for an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesForSubscriptionUnderFileWorkspace.json |
| [filesNoSubscriptionCreateSample.js][filesnosubscriptioncreatesample] | Creates a new file under a workspace. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json |
| [filesNoSubscriptionGetSample.js][filesnosubscriptiongetsample] | Returns details of a specific file in a work space. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json |
| [filesNoSubscriptionListSample.js][filesnosubscriptionlistsample] | Lists all the Files information under a workspace for an Azure subscription. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace.json |
| [filesNoSubscriptionUploadSample.js][filesnosubscriptionuploadsample] | This API allows you to upload content to a file x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json |
| [filesUploadSample.js][filesuploadsample] | This API allows you to upload content to a file x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription.json |
| [operationsListSample.js][operationslistsample] | This lists all the available Microsoft Support REST API operations. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json |
| [problemClassificationsGetSample.js][problemclassificationsgetsample] | Get problem classification details for a specific Azure service. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json |
| [problemClassificationsListSample.js][problemclassificationslistsample] | Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications.json |
| [servicesGetSample.js][servicesgetsample] | Gets a specific Azure service for support ticket creation. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json |
| [servicesListSample.js][serviceslistsample] | Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json |
| [supportTicketsCheckNameAvailabilitySample.js][supportticketschecknameavailabilitysample] | Check 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityWithSubscription.json |
| [supportTicketsCreateSample.js][supportticketscreatesample] | Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicketForSubscription.json |
| [supportTicketsGetSample.js][supportticketsgetsample] | Get 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSubscriptionSupportTicketDetails.json |
| [supportTicketsListSample.js][supportticketslistsample] | 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. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json |
| [supportTicketsNoSubscriptionCheckNameAvailabilitySample.js][supportticketsnosubscriptionchecknameavailabilitysample] | Check 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json |
| [supportTicketsNoSubscriptionCreateSample.js][supportticketsnosubscriptioncreatesample] | Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/> x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket.json |
| [supportTicketsNoSubscriptionGetSample.js][supportticketsnosubscriptiongetsample] | Gets details for a specific support ticket. 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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json |
| [supportTicketsNoSubscriptionListSample.js][supportticketsnosubscriptionlistsample] | Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json |
| [supportTicketsNoSubscriptionUpdateSample.js][supportticketsnosubscriptionupdatesample] | This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json |
| [supportTicketsUpdateSample.js][supportticketsupdatesample] | This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>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. x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json |
## Prerequisites
@ -87,50 +82,45 @@ npx cross-env SUPPORT_SUBSCRIPTION_ID="<support subscription id>" node chatTrans
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
[chattranscriptsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/chatTranscriptsGetSample.js
[chattranscriptslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/chatTranscriptsListSample.js
[chattranscriptsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/chatTranscriptsNoSubscriptionGetSample.js
[chattranscriptsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/chatTranscriptsNoSubscriptionListSample.js
[communicationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsCheckNameAvailabilitySample.js
[communicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsCreateSample.js
[communicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsGetSample.js
[communicationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsListSample.js
[communicationsnosubscriptionchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsNoSubscriptionCheckNameAvailabilitySample.js
[communicationsnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsNoSubscriptionCreateSample.js
[communicationsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsNoSubscriptionGetSample.js
[communicationsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/communicationsNoSubscriptionListSample.js
[fileworkspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/fileWorkspacesCreateSample.js
[fileworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/fileWorkspacesGetSample.js
[fileworkspacesnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/fileWorkspacesNoSubscriptionCreateSample.js
[fileworkspacesnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/fileWorkspacesNoSubscriptionGetSample.js
[filescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesCreateSample.js
[filesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesGetSample.js
[fileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesListSample.js
[filesnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesNoSubscriptionCreateSample.js
[filesnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesNoSubscriptionGetSample.js
[filesnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesNoSubscriptionListSample.js
[filesnosubscriptionuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesNoSubscriptionUploadSample.js
[filesuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/filesUploadSample.js
[lookupresourceidpostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/lookUpResourceIdPostSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/operationsListSample.js
[problemclassificationsclassifyproblemssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/problemClassificationsClassifyProblemsSample.js
[problemclassificationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/problemClassificationsGetSample.js
[problemclassificationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/problemClassificationsListSample.js
[problemclassificationsnosubscriptionclassifyproblemssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/problemClassificationsNoSubscriptionClassifyProblemsSample.js
[serviceclassificationsclassifyservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/serviceClassificationsClassifyServicesSample.js
[serviceclassificationsnosubscriptionclassifyservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/serviceClassificationsNoSubscriptionClassifyServicesSample.js
[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/servicesGetSample.js
[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/servicesListSample.js
[supportticketschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsCheckNameAvailabilitySample.js
[supportticketscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsCreateSample.js
[supportticketsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsGetSample.js
[supportticketslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsListSample.js
[supportticketsnosubscriptionchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js
[supportticketsnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsNoSubscriptionCreateSample.js
[supportticketsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsNoSubscriptionGetSample.js
[supportticketsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsNoSubscriptionListSample.js
[supportticketsnosubscriptionupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsNoSubscriptionUpdateSample.js
[supportticketsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v2-beta/javascript/supportTicketsUpdateSample.js
[chattranscriptsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/chatTranscriptsGetSample.js
[chattranscriptslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/chatTranscriptsListSample.js
[chattranscriptsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/chatTranscriptsNoSubscriptionGetSample.js
[chattranscriptsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/chatTranscriptsNoSubscriptionListSample.js
[communicationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsCheckNameAvailabilitySample.js
[communicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsCreateSample.js
[communicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsGetSample.js
[communicationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsListSample.js
[communicationsnosubscriptionchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsNoSubscriptionCheckNameAvailabilitySample.js
[communicationsnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsNoSubscriptionCreateSample.js
[communicationsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsNoSubscriptionGetSample.js
[communicationsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/communicationsNoSubscriptionListSample.js
[fileworkspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/fileWorkspacesCreateSample.js
[fileworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/fileWorkspacesGetSample.js
[fileworkspacesnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/fileWorkspacesNoSubscriptionCreateSample.js
[fileworkspacesnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/fileWorkspacesNoSubscriptionGetSample.js
[filescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesCreateSample.js
[filesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesGetSample.js
[fileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesListSample.js
[filesnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesNoSubscriptionCreateSample.js
[filesnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesNoSubscriptionGetSample.js
[filesnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesNoSubscriptionListSample.js
[filesnosubscriptionuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesNoSubscriptionUploadSample.js
[filesuploadsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/filesUploadSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/operationsListSample.js
[problemclassificationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/problemClassificationsGetSample.js
[problemclassificationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/problemClassificationsListSample.js
[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/servicesGetSample.js
[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/servicesListSample.js
[supportticketschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsCheckNameAvailabilitySample.js
[supportticketscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsCreateSample.js
[supportticketsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsGetSample.js
[supportticketslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsListSample.js
[supportticketsnosubscriptionchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js
[supportticketsnosubscriptioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsNoSubscriptionCreateSample.js
[supportticketsnosubscriptiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsNoSubscriptionGetSample.js
[supportticketsnosubscriptionlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsNoSubscriptionListSample.js
[supportticketsnosubscriptionupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsNoSubscriptionUpdateSample.js
[supportticketsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/support/arm-support/samples/v3/javascript/supportTicketsUpdateSample.js
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-support?view=azure-node-preview
[freesub]: https://azure.microsoft.com/free/
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support/README.md

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Returns chatTranscript details for a support ticket under a subscription.
*
* @summary Returns chatTranscript details for a support ticket under a subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json
*/
async function getChatTranscriptDetailsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const chatTranscriptName = "69586795-45e9-45b5-bd9e-c9bb237d3e44";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Lists all chat transcripts for a support ticket under subscription
*
* @summary Lists all chat transcripts for a support ticket under subscription
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSubscriptionSupportTicket.json
*/
async function listChatTranscriptsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Returns chatTranscript details for a no subscription support ticket.
*
* @summary Returns chatTranscript details for a no subscription support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSupportTicket.json
*/
async function getChatTranscriptDetailsForASubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all chat transcripts for a support ticket
*
* @summary Lists all chat transcripts for a support ticket
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListChatTranscriptsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSupportTicket.json
*/
async function listChatTranscriptsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to 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.
*
* @summary 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForSupportTicketCommunication.json
*/
async function checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const checkNameAvailabilityInput = {
name: "sampleName",
@ -35,7 +36,7 @@ async function checksWhetherNameIsAvailableForSubscriptionScopedCommunicationRes
}
async function main() {
checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource();
checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket();
}
main().catch(console.error);

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Adds a new customer communication to an Azure support ticket.
*
* @summary Adds a new customer communication to an Azure support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSupportTicketCommunication.json
*/
async function addCommunicationToSubscriptionTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const communicationName = "testcommunication";
const createCommunicationParameters = {

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Returns communication details for a support ticket.
*
* @summary Returns communication details for a support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
*/
async function getCommunicationDetailsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const communicationName = "testmessage";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json
*/
async function listCommunicationsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
@ -34,10 +35,11 @@ async function listCommunicationsForASubscriptionSupportTicket() {
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json
*/
async function listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const filter = "communicationType eq 'web' and createdDate ge 2020-03-10T22:08:51Z";
const options = { filter };
@ -54,10 +56,11 @@ async function listWebCommunicationCreatedOnOrAfterASpecificDateForASubscription
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
*/
async function listWebCommunicationsForASubscriptionSupportTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const filter = "communicationType eq 'web'";
const options = { filter };

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to 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.
*
* @summary 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json
*/
async function checksWhetherNameIsAvailableForCommunicationResource() {
const subscriptionId =

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Adds a new customer communication to an Azure support ticket.
*
* @summary Adds a new customer communication to an Azure support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateNoSubscriptionSupportTicketCommunication.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateNoSubscriptionSupportTicketCommunication.json
*/
async function addCommunicationToNoSubscriptionTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Returns communication details for a support ticket.
*
* @summary Returns communication details for a support ticket.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSupportTicket.json
*/
async function getCommunicationDetailsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListCommunicationsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSupportTicket.json
*/
async function listCommunicationsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";
@ -33,7 +33,7 @@ async function listCommunicationsForANoSubscriptionSupportTicket() {
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
*/
async function listWebCommunicationCreatedOnOrAfterASpecificDateForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";
@ -52,7 +52,7 @@ async function listWebCommunicationCreatedOnOrAfterASpecificDateForANoSubscripti
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
*
* @summary Lists all communications (attachments not included) for a support ticket. <br/></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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicket.json
*/
async function listWebCommunicationsForANoSubscriptionSupportTicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new file workspace for the specified subscription.
*
* @summary Creates a new file workspace for the specified subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspaceForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspaceForSubscription.json
*/
async function createASubscriptionScopedFileWorkspace() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createAFileWorkspaceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
@ -28,7 +29,7 @@ async function createASubscriptionScopedFileWorkspace() {
}
async function main() {
createASubscriptionScopedFileWorkspace();
createAFileWorkspaceForASubscription();
}
main().catch(console.error);

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Gets details for a specific file workspace in an Azure subscription.
*
* @summary Gets details for a specific file workspace in an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetailsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetailsForSubscription.json
*/
async function getDetailsOfASubscriptionFileWorkspace() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new file workspace.
*
* @summary Creates a new file workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json
*/
async function createAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets details for a specific file workspace.
*
* @summary Gets details for a specific file workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileWorkspaceDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json
*/
async function getDetailsOfAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new file under a workspace for the specified subscription.
*
* @summary Creates a new file under a workspace for the specified subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFileForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription.json
*/
async function createASubscriptionScopedFile() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createAFileUnderASubscriptionWorkspace() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const fileName = "test.txt";
const createFileParameters = {
@ -34,7 +35,7 @@ async function createASubscriptionScopedFile() {
}
async function main() {
createASubscriptionScopedFile();
createAFileUnderASubscriptionWorkspace();
}
main().catch(console.error);

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Returns details of a specific file in a work space.
*
* @summary Returns details of a specific file in a work space.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetailsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription.json
*/
async function getDetailsOfASubscriptionFile() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const fileName = "test.txt";
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Lists all the Files information under a workspace for an Azure subscription.
*
* @summary Lists all the Files information under a workspace for an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesForSubscriptionUnderFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesForSubscriptionUnderFileWorkspace.json
*/
async function listFilesUnderAWorkspaceForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspace";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new file under a workspace.
*
* @summary Creates a new file under a workspace.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateFile.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json
*/
async function createAFileWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Returns details of a specific file in a work space.
*
* @summary Returns details of a specific file in a work space.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetFileDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json
*/
async function getDetailsOfASubscriptionFile() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all the Files information under a workspace for an Azure subscription.
*
* @summary Lists all the Files information under a workspace for an Azure subscription.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListFilesUnderFileWorkspace.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace.json
*/
async function listFilesUnderAWorkspace() {
const fileWorkspaceName = "testworkspace";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This API allows you to upload content to a file
*
* @summary This API allows you to upload content to a file
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFile.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json
*/
async function uploadFile() {
const fileWorkspaceName = "testworkspaceName";

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to This API allows you to upload content to a file
*
* @summary This API allows you to upload content to a file
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UploadFileForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription.json
*/
async function uploadFileForSubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const fileWorkspaceName = "testworkspaceName";
const fileName = "test.txt";
const uploadFile = {

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This lists all the available Microsoft Support REST API operations.
*
* @summary This lists all the available Microsoft Support REST API operations.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListOperations.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json
*/
async function getAllOperations() {
const subscriptionId =

Просмотреть файл

@ -1,8 +1,8 @@
{
"name": "@azure-samples/arm-support-js-beta",
"name": "@azure-samples/arm-support-js",
"private": true,
"version": "1.0.0",
"description": " client library samples for JavaScript (Beta)",
"description": " client library samples for JavaScript",
"engines": {
"node": ">=18.0.0"
},
@ -25,7 +25,7 @@
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support",
"dependencies": {
"@azure/arm-support": "next",
"@azure/arm-support": "latest",
"dotenv": "latest",
"@azure/identity": "^4.0.1"
}

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Get problem classification details for a specific Azure service.
*
* @summary Get problem classification details for a specific Azure service.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetProblemClassification.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json
*/
async function getsDetailsOfProblemClassificationForAzureService() {
const serviceName = "service_guid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
*
* @summary Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListProblemClassifications.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications.json
*/
async function getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated() {
const serviceName = "service_guid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets a specific Azure service for support ticket creation.
*
* @summary Gets a specific Azure service for support ticket creation.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetService.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json
*/
async function getsDetailsOfTheAzureService() {
const serviceName = "service_guid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
*
* @summary Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListServices.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json
*/
async function getsListOfServicesForWhichASupportTicketCanBeCreated() {
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Check 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.
*
* @summary Check 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailabilityWithSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityWithSubscription.json
*/
async function checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function checksWhetherNameIsAvailableForASubscriptionSupportTicketResource() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const checkNameAvailabilityInput = {
name: "sampleName",
type: "Microsoft.Support/supportTickets",
@ -31,7 +32,7 @@ async function checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketRes
}
async function main() {
checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource();
checksWhetherNameIsAvailableForASubscriptionSupportTicketResource();
}
main().catch(console.error);

Просмотреть файл

@ -16,13 +16,15 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForBillingRelatedIssues() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForBillingRelatedIssues() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -54,13 +56,15 @@ async function createASubscriptionScopedTicketForBillingRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForSubscriptionManagementRelatedIssuesForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -92,10 +96,11 @@ async function createASubscriptionScopedTicketForSubscriptionManagementRelatedIs
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicketForSubscription.json
*/
async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
async function createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription() {
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -121,7 +126,7 @@ async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecifi
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=",
technicalTicketDetails: {
resourceId:
"/subscriptions/subid/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver",
"/subscriptions/132d901f-189d-4381-9214-fe68e27e05a1/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver",
},
title: "my title",
};
@ -138,10 +143,11 @@ async function createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecifi
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
*/
async function createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -186,10 +192,11 @@ async function createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesFo
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlManagedInstanceQuotaTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlManagedInstanceQuotaTicket.json
*/
async function createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -238,10 +245,11 @@ async function createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSubscription.json
*/
async function createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -281,10 +289,11 @@ async function createATicketToRequestQuotaIncreaseForBatchAccountsForASubscripti
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateCoresQuotaTicketForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateCoresQuotaTicketForSubscription.json
*/
async function createATicketToRequestQuotaIncreaseForComputeVMCores() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -323,10 +332,11 @@ async function createATicketToRequestQuotaIncreaseForComputeVMCores() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
*/
async function createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -371,10 +381,11 @@ async function createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytic
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
*/
async function createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -419,10 +430,11 @@ async function createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
*/
async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -462,10 +474,11 @@ async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineL
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
*/
async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -510,10 +523,11 @@ async function createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAc
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
*/
async function createATicketToRequestQuotaIncreaseForPoolsForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -558,10 +572,11 @@ async function createATicketToRequestQuotaIncreaseForPoolsForABatchAccount() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
*/
async function createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -601,10 +616,11 @@ async function createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnaly
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForServers.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForServers.json
*/
async function createATicketToRequestQuotaIncreaseForServersForSqlDatabase() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -644,13 +660,15 @@ async function createATicketToRequestQuotaIncreaseForServersForSqlDatabase() {
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateGenericQuotaTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json
*/
async function createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "Increase the maximum throughput per container limit to 10000 for account foo bar",
advancedDiagnosticConsent: "Yes",
contactDetails: {
country: "usa",
firstName: "abc",
@ -679,10 +697,11 @@ async function createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdd
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
*/
async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -727,10 +746,11 @@ async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMac
* This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
*
* @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
*/
async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
@ -773,9 +793,9 @@ async function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABa
}
async function main() {
createASubscriptionScopedTicketForBillingRelatedIssues();
createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues();
createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource();
createATicketForBillingRelatedIssues();
createATicketForSubscriptionManagementRelatedIssuesForASubscription();
createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription();
createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount();
createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance();
createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription();

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to Get 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.
*
* @summary Get 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSubscriptionSupportTicketDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSubscriptionSupportTicketDetails.json
*/
async function getDetailsOfASubscriptionTicket() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const supportTicketName = "testticket";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);

Просмотреть файл

@ -16,10 +16,11 @@ require("dotenv").config();
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
const options = { filter };
const credential = new DefaultAzureCredential();
@ -35,10 +36,11 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForAS
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
const options = { filter };
const credential = new DefaultAzureCredential();
@ -54,10 +56,11 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateF
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsBySubscription.json
*/
async function listSupportTicketsForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const credential = new DefaultAzureCredential();
const client = new MicrosoftSupport(credential, subscriptionId);
const resArray = new Array();
@ -71,10 +74,11 @@ async function listSupportTicketsForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenStateBySubscription.json
*/
async function listSupportTicketsInOpenStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "status eq 'Open'";
const options = { filter };
const credential = new DefaultAzureCredential();
@ -90,10 +94,11 @@ async function listSupportTicketsInOpenStateForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingStateBySubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingStateBySubscription.json
*/
async function listSupportTicketsInUpdatingStateForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "status eq 'Updating'";
const options = { filter };
const credential = new DefaultAzureCredential();
@ -109,10 +114,11 @@ async function listSupportTicketsInUpdatingStateForASubscription() {
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
*/
async function listSupportTicketsWithACertainProblemClassificationIdForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "ProblemClassificationId eq 'compute_vm_problemClassification_guid'";
const options = { filter };
const credential = new DefaultAzureCredential();
@ -128,10 +134,11 @@ async function listSupportTicketsWithACertainProblemClassificationIdForASubscrip
* This sample demonstrates how to 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. <br/><br/>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.
*
* @summary 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. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
*/
async function listSupportTicketsWithACertainServiceIdForASubscription() {
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["SUPPORT_SUBSCRIPTION_ID"] || "132d901f-189d-4381-9214-fe68e27e05a1";
const filter = "ServiceId eq 'vm_windows_service_guid'";
const options = { filter };
const credential = new DefaultAzureCredential();

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Check 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.
*
* @summary Check 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CheckNameAvailability.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json
*/
async function checksWhetherNameIsAvailableForSupportTicketResource() {
const subscriptionId =

Просмотреть файл

@ -16,12 +16,13 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBillingSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket.json
*/
async function createATicketForBillingRelatedIssues() {
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
advancedDiagnosticConsent: "No",
contactDetails: {
country: "usa",
firstName: "abc",
@ -53,12 +54,13 @@ async function createATicketForBillingRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket.json
*/
async function createATicketForSubscriptionManagementRelatedIssues() {
const supportTicketName = "testticket";
const createSupportTicketParameters = {
description: "my description",
advancedDiagnosticConsent: "Yes",
contactDetails: {
country: "usa",
firstName: "abc",
@ -90,7 +92,7 @@ async function createATicketForSubscriptionManagementRelatedIssues() {
* This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
*
* @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>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.<br/><br/>
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket.json
*/
async function createATicketForTechnicalIssueRelatedToASpecificResource() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets details for a specific support ticket. 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.
*
* @summary Gets details for a specific support ticket. 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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/GetSupportTicketDetails.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json
*/
async function getDetailsOfATicket() {
const supportTicketName = "testticket";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTickets.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json
*/
async function listSupportTickets() {
const credential = new DefaultAzureCredential();
@ -32,7 +32,7 @@ async function listSupportTickets() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState() {
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
@ -50,7 +50,7 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
*/
async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingState() {
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
@ -68,7 +68,7 @@ async function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingState(
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState.json
*/
async function listSupportTicketsInOpenState() {
const filter = "status eq 'Open'";
@ -86,7 +86,7 @@ async function listSupportTicketsInOpenState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingState.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingState.json
*/
async function listSupportTicketsInUpdatingState() {
const filter = "status eq 'Updating'";
@ -104,7 +104,7 @@ async function listSupportTicketsInUpdatingState() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEquals.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEquals.json
*/
async function listSupportTicketsWithACertainProblemClassificationId() {
const filter = "ProblemClassificationId eq 'compute_vm_problemClassification_guid'";
@ -122,7 +122,7 @@ async function listSupportTicketsWithACertainProblemClassificationId() {
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
*
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEquals.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEquals.json
*/
async function listSupportTicketsWithACertainServiceId() {
const filter = "ServiceId eq 'vm_windows_service_guid'";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
*/
async function updateAdvancedDiagnosticConsentOfASupportTicket() {
const supportTicketName = "testticket";
@ -36,7 +36,7 @@ async function updateAdvancedDiagnosticConsentOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateContactDetailsOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicket.json
*/
async function updateContactDetailsOfASupportTicket() {
const supportTicketName = "testticket";
@ -66,7 +66,7 @@ async function updateContactDetailsOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket.json
*/
async function updateSeverityOfASupportTicket() {
const supportTicketName = "testticket";
@ -84,7 +84,7 @@ async function updateSeverityOfASupportTicket() {
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
*
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>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.
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicket.json
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket.json
*/
async function updateStatusOfASupportTicket() {
const supportTicketName = "testticket";

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше