Files
azure-sdk-for-js/sdk/databricks/arm-databricks/samples-dev/outboundNetworkDependenciesEndpointsListSample.ts
ec25167778 [AutoPR @azure-arm-databricks]-generated-from-SDK Generation - JS-6406225 (#38855)
Configurations:
'specification/databricks/resource-manager/Microsoft.Databricks/Databricks/tspconfig.yaml',
API Version: 2026-01-01, SDK Release Type: beta, and CommitSHA:
'7eedf0843327d688a23ed89a7c2921cbfc129dfe' in SpecRepo:
'https://github.com/Azure/azure-rest-api-specs' Pipeline run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6406225
Refer to
https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites
to prepare for SDK release.

---------

Co-authored-by: Jiao Di (MSFT) <[email protected]>
2026-06-09 20:54:25 +08:00

29 lines
1.4 KiB
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You must configure outbound access with these endpoints. For more information, see https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
*
* @summary gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You must configure outbound access with these endpoints. For more information, see https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
* x-ms-original-file: 2026-01-01/OutboundNetworkDependenciesEndpointsList.json
*/
async function listOutboundNetworkDependenciesEndpointsByWorkspace(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "11111111-1111-1111-1111-111111111111";
const client = new AzureDatabricksManagementClient(credential, subscriptionId);
const result = await client.outboundNetworkDependenciesEndpoints.list(
"myResourceGroup",
"myWorkspace",
);
console.log(result);
}
async function main(): Promise<void> {
await listOutboundNetworkDependenciesEndpointsByWorkspace();
}
main().catch(console.error);