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
30 lines
972 B
TypeScript
30 lines
972 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 private link resource for the durable task scheduler
|
|
*
|
|
* @summary get a private link resource for the durable task scheduler
|
|
* x-ms-original-file: 2026-02-01/PrivateLinkResources_Get_MaximumSet_Gen.json
|
|
*/
|
|
async function privateLinkResourcesGetMaximumSet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "851A7597-D699-45CC-899B-7487A5B3B775";
|
|
const client = new DurableTaskClient(credential, subscriptionId);
|
|
const result = await client.schedulers.getPrivateLink(
|
|
"rgdurabletask",
|
|
"testscheduler",
|
|
"ulbdiqhrmwnkejje",
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await privateLinkResourcesGetMaximumSet();
|
|
}
|
|
|
|
main().catch(console.error);
|