Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Discovery provides JavaScript SDKs for data-plane and control-plane operations. Both packages are publicly available from npm and can be integrated into JavaScript and TypeScript applications.
| SDK | Package | Use |
|---|---|---|
| Data plane | @azure/ai-discovery |
Interact with Microsoft Discovery resources and perform runtime operations, such as working with workspaces, investigations, tasks, tools, bookshelves, and knowledge bases. |
| Control plane | @azure/arm-discovery |
Provision, configure, and manage Microsoft Discovery resources through Azure Resource Manager (ARM). |
Prerequisites
Before you use the SDKs, you need:
- A JavaScript or TypeScript project that uses npm.
- An Azure subscription.
- A Microsoft Entra identity with permissions for the operations that you want to perform.
- For data-plane operations, an existing Microsoft Discovery workspace or bookshelf.
- For control-plane operations, the Azure subscription ID that contains or will contain your Microsoft Discovery resources.
Install the SDKs
Install the data-plane SDK:
npm install @azure/ai-discovery
Install the control-plane SDK:
npm install @azure/arm-discovery
To authenticate with Microsoft Entra ID, install the Azure Identity client library:
npm install @azure/identity