azure-sdk-for-js/sdk/synapse/arm-synapse/samples-dev/kustoPoolDataConnectionsDel...

40 строки
1.4 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 Deletes the data connection with the given name.
*
* @summary Deletes the data connection with the given name.
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsDelete.json
*/
async function kustoPoolDataConnectionsDelete() {
const subscriptionId = "12345678-1234-1234-1234-123456789098";
const resourceGroupName = "kustorptest";
const workspaceName = "synapseWorkspaceName";
const kustoPoolName = "kustoclusterrptest4";
const databaseName = "KustoDatabase8";
const dataConnectionName = "kustoeventhubconnection1";
const credential = new DefaultAzureCredential();
const client = new SynapseManagementClient(credential, subscriptionId);
const result = await client.kustoPoolDataConnections.beginDeleteAndWait(
resourceGroupName,
workspaceName,
kustoPoolName,
databaseName,
dataConnectionName
);
console.log(result);
}
kustoPoolDataConnectionsDelete().catch(console.error);