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.
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
- An active Azure subscription enabled for Microsoft Discovery Public Preview.
- Microsoft Discovery Platform Administrator (Preview) role or Owner role on your resource group.
- Completed v1 resource configuration collection. For detailed steps, see Collect Microsoft Discovery v1 resource configurations.
- Azure CLI installed with the latest version. See Install the Azure CLI.
Set up v2 infrastructure
Create the v2 infrastructure resources that host your recreated tools, agents, and workflows.
- Create a v2 Supercomputer and Nodepools. For detailed steps, see Manage Supercomputer and Nodepools.
- Create a v2 workspace. For detailed steps, see Manage workspaces.
- Create chat model deployments at the workspace level. For detailed steps, see Create chat model deployment.
- 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.
- 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.
Sign in to the Azure portal.
In the search bar, enter Microsoft Discovery Tools and select the service.
Select + Create to create a new tool resource.
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.
On the Definition tab, attach the
definitionContentJSON file you extracted from the v1 export. The v2 tool resource accepts the same JSON definition format as v1.Specify the tool version number.
On the Environment Variables tab, upload environment variables if your tool requires them. Match the values from your v1 tool configuration.
Select Review + Create, then select Create.
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
- Sign in to the Azure portal.
- In the search bar, enter Microsoft Discovery Bookshelves and select the service.
- Select + Create to create a new bookshelf resource.
- Create a new bookshelf with the same name and configuration as your v1 bookshelf.
- Bind the bookshelf to the v2 Storage Container you created during infrastructure setup.
- 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
- Sign in to Microsoft Discovery Studio.
- Open your v2 project.
- In the Resources pane, select the + button next to Knowledge Bases.
- Create a new knowledge base under the bookshelf you created in the previous step with the same name as your v1 knowledge base.
- Start the indexing process. Indexing time depends on your deployment size and data volume.
- 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.
In Discovery Studio, open your v2 project.
In the Resources pane, select the + button next to Agents.
Select Agent as the type.
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.
Attach the recreated v2 tools to the agent.
Attach the recreated v2 knowledge bases to the agent.
Select Create agent.
Test the agent in an investigation to verify that attached tools execute correctly.
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.
In Discovery Studio, open your v2 project.
In the Resources pane, select the + button next to Agents.
Select Workflow agent as the type.
Enter the workflow name and description.
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
OnConversationStarttriggers. - Map v1 agent references to v2
InvokeAzureAgentactions that reference prompt agents by name. - Convert v1 variable mappings to v2
Local.*variable assignments.
- Map v1 states to v2 actions (
Add human-in-the-loop steps using
Questionactions if your v1 workflow required user input.Test the workflow by starting a chat with
@WorkflowAgentNamein an investigation.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.
- Create an investigation in your v2 project. For detailed steps, see Quickstart: Get started with agents and investigations.
- Test each prompt agent by sending messages with
@AgentNamein the chat. - Verify that each tool executes correctly when invoked by agents.
- Run each workflow agent end-to-end to confirm the action flow produces expected results.
- Compare outputs between v1 and v2 agents to verify consistency.
- 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.