mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Configurations: 'specification/sql/resource-manager/Microsoft.Sql/SQL/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: stable, and CommitSHA: '41784cfad64229e05cb37b1532a686a0cc3a60a9` in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6276195 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: [https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu](https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227).[westus-01.azurewebsites.net/?releasePlan=2227](https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227) Submitted by: [[email protected]](mailto:[email protected]) ### Release Plan Details Release Plan: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227 Spec pull request: [Azure/azure-rest-api-specs#41520](https://github.com/Azure/azure-rest-api-specs/pull/41520) Spec API version: --------- Co-authored-by: kazrael2119 <[email protected]>
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { SqlManagementClient } from "@azure/arm-sql";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to gets a database extension. This will return resource not found as it is not supported.
|
|
*
|
|
* @summary gets a database extension. This will return resource not found as it is not supported.
|
|
* x-ms-original-file: 2025-01-01/GetDatabaseExtensions.json
|
|
*/
|
|
async function getDatabaseExtensions(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "a3473687-7581-41e1-ac24-6bcca5843f07";
|
|
const client = new SqlManagementClient(credential, subscriptionId);
|
|
await client.databaseExtensionsOperations.get(
|
|
"rg_a1f9d6f8-30d5-4228-9504-8a364361bca3",
|
|
"srv_65858e0f-b1d1-4bdc-8351-a7da86ca4939",
|
|
"11aa6c5e-58ed-4693-b303-3b8e3131deaa",
|
|
"polybaseimport",
|
|
);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await getDatabaseExtensions();
|
|
}
|
|
|
|
main().catch(console.error);
|