mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Configurations: 'specification/durabletask/DurableTask.Management/tspconfig.yaml', API Version: 2026-02-01, SDK Release Type: stable, and CommitSHA: 'a86317f00c71ef51aab7f78e6f4a2be3cf58f2cd' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5982514 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. ## Release Plan Details - Release Plan: https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=19b2c0f1-ec1b-f111-8341-000d3a5a7db7 - Work Item Link: https://dev.azure.com/azure-sdk/fe81d705-3c06-41e5-bf7c-5ebea18efe89/_workitems/edit/33143 - Spec Pull Request: https://github.com/Azure/azure-rest-api-specs/pull/40272 - Spec API version: 2026-02-01
26 lines
769 B
TypeScript
26 lines
769 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { DurableTaskClient } from "@azure/arm-durabletask";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to get a Scheduler
|
|
*
|
|
* @summary get a Scheduler
|
|
* x-ms-original-file: 2026-02-01/Schedulers_Get.json
|
|
*/
|
|
async function schedulersGet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "EE9BD735-67CE-4A90-89C4-439D3F6A4C93";
|
|
const client = new DurableTaskClient(credential, subscriptionId);
|
|
const result = await client.schedulers.get("rgopenapi", "testscheduler");
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await schedulersGet();
|
|
}
|
|
|
|
main().catch(console.error);
|