Edit

Recreate Microsoft Discovery resources in v2

After you collect your v1 resource configurations, use this article to set up v2 infrastructure and recreate your tools, bookshelves, agents, and workflows in Microsoft Discovery v2.

Review the v1 to v2 transition guide before you begin. It explains which resources require recreation and which are deprecated.

Prerequisites

Set up v2 infrastructure

Create the v2 infrastructure resources that host your recreated tools, agents, and workflows.

  1. Create a v2 Supercomputer and Nodepools. For detailed steps, see Manage Supercomputer and Nodepools.
  2. Create a v2 workspace. For detailed steps, see Manage workspaces.
  3. Create chat model deployments at the workspace level. For detailed steps, see Create chat model deployment.
  4. Create v2 Storage Container and Storage Asset resources using the storage account and blob information you collected from your v1 Data Containers and Data Assets.
  5. Create a v2 project under the new workspace and bind it with the Storage Container resources. For detailed steps, see Create a project.

Note

v2 uses workspace-level model deployments shared across all project agents. Deploy your preferred model, such as GPT-5.2, before you create agents.

Recreate tools in v2

v1 tools can't be retained in v2. You must recreate each tool as a new v2 ARM resource. The JSON-based tool definition format from v1 is still accepted for v2 tool resources, so you can reuse your exported definitions.

  1. Sign in to the Azure portal.

  2. In the search bar, enter Microsoft Discovery Tools and select the service.

  3. Select + Create to create a new tool resource.

  4. On the Basics tab, specify:

    • Name — Enter the tool name. You can use the same name as your v1 tool.
    • Region — Select the Azure region for the tool resource.
  5. On the Definition tab, attach the definitionContent JSON file you extracted from the v1 export. The v2 tool resource accepts the same JSON definition format as v1.

  6. Specify the tool version number.

  7. On the Environment Variables tab, upload environment variables if your tool requires them. Match the values from your v1 tool configuration.

  8. Select Review + Create, then select Create.

  9. Repeat for all tools in your v1 configuration.

Note

Tools can't be tested independently after creation. You can verify tool functionality after you attach them to an agent in a later step.

Recreate bookshelves and knowledge bases in v2

Bookshelf is an independent ARM resource, not scoped to a workspace. You must create new bookshelves through the Azure portal and then create knowledge bases through Discovery Studio. In v2, bookshelf indexing is bound to Storage Containers and Storage Assets, which replace the v1 Data Containers and Data Assets.

Create the bookshelf resource

  1. Sign in to the Azure portal.
  2. In the search bar, enter Microsoft Discovery Bookshelves and select the service.
  3. Select + Create to create a new bookshelf resource.
  4. Create a new bookshelf with the same name and configuration as your v1 bookshelf.
  5. Bind the bookshelf to the v2 Storage Container you created during infrastructure setup.
  6. Repeat for each bookshelf in your v1 configuration. If a v1 bookshelf had multiple knowledge bases, create a separate v2 bookshelf for each one.

Create knowledge bases

  1. Sign in to Microsoft Discovery Studio.
  2. Open your v2 project.
  3. In the Resources pane, select the + button next to Knowledge Bases.
  4. Create a new knowledge base under the bookshelf you created in the previous step with the same name as your v1 knowledge base.
  5. Start the indexing process. Indexing time depends on your deployment size and data volume.
  6. Wait for indexing to complete before you attach the knowledge base to agents.

Note

Incremental indexing isn't supported. The full dataset is reindexed when you create a knowledge base.

Recreate prompt agents in v2

v2 agents are data-plane resources managed through Discovery Studio. Use your exported v1 agent definitions to recreate each prompt agent.

  1. In Discovery Studio, open your v2 project.

  2. In the Resources pane, select the + button next to Agents.

  3. Select Agent as the type.

  4. Configure the agent using your v1 exported settings:

    • Name: Use the same agent name for consistency.
    • Description: Enter the agent description from your v1 export.
    • Chat model: Select your v2 model deployment (for example, my-gpt-52-deployment).
    • Instructions: Paste the system prompt from your v1 agent definition.
  5. Attach the recreated v2 tools to the agent.

  6. Attach the recreated v2 knowledge bases to the agent.

  7. Select Create agent.

  8. Test the agent in an investigation to verify that attached tools execute correctly.

  9. Repeat for each prompt agent in your v1 configuration.

Recreate workflow agents in v2

v1 workflows use a state machine model with events and transitions. v2 replaces this model with action flows that use explicit control structures. You must convert each v1 workflow to a v2 workflow agent.

  1. In Discovery Studio, open your v2 project.

  2. In the Resources pane, select the + button next to Agents.

  3. Select Workflow agent as the type.

  4. Enter the workflow name and description.

  5. Convert your v1 state machine to the v2 action flow model:

    • Map v1 states to v2 actions (InvokeAzureAgent, SetVariable, SendActivity).
    • Replace v1 event-based transitions with v2 control flow actions (ConditionGroup, GotoAction).
    • Convert v1 fixed entry points to v2 OnConversationStart triggers.
    • Map v1 agent references to v2 InvokeAzureAgent actions that reference prompt agents by name.
    • Convert v1 variable mappings to v2 Local.* variable assignments.
  6. Add human-in-the-loop steps using Question actions if your v1 workflow required user input.

  7. Test the workflow by starting a chat with @WorkflowAgentName in an investigation.

  8. Repeat for each workflow in your v1 configuration.

For more informationabout v2 workflow components and action types, see Agent types in Microsoft Discovery.

Validate the transition

After you recreate all resources, verify that your v2 environment matches your v1 functionality.

  1. Create an investigation in your v2 project. For detailed steps, see Quickstart: Get started with agents and investigations.
  2. Test each prompt agent by sending messages with @AgentName in the chat.
  3. Verify that each tool executes correctly when invoked by agents.
  4. Run each workflow agent end-to-end to confirm the action flow produces expected results.
  5. Compare outputs between v1 and v2 agents to verify consistency.
  6. Check that knowledge bases return relevant results for your domain queries.

After validation is complete, you can begin using your v2 resources for production workloads. Your v1 resources remain functional until the v1 APIs are retired.