azure-sdk-for-js/sdk/synapse/arm-synapse/samples-dev/sqlPoolsDeleteSample.ts

36 строки
1.2 KiB
TypeScript

/*
* 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 { SynapseManagementClient } from "@azure/arm-synapse";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Delete a SQL pool
*
* @summary Delete a SQL pool
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json
*/
async function deleteASqlAnalyticsPool() {
const subscriptionId = "01234567-89ab-4def-0123-456789abcdef";
const resourceGroupName = "ExampleResourceGroup";
const workspaceName = "ExampleWorkspace";
const sqlPoolName = "ExampleSqlPool";
const credential = new DefaultAzureCredential();
const client = new SynapseManagementClient(credential, subscriptionId);
const result = await client.sqlPools.beginDeleteAndWait(
resourceGroupName,
workspaceName,
sqlPoolName
);
console.log(result);
}
deleteASqlAnalyticsPool().catch(console.error);