fix(migration): remap index_connection_id to project_connection_id for Azure AI Search (#807) - #917
Open
Nithin (nithin42) wants to merge 1 commit into
Conversation
Author
|
Hi Brandon Miller (@brandom-msft), tagging you for review on this migration fix for #807. Unit tests are included in |
Nithin (nithin42)
force-pushed
the
fix/azure-ai-search-index-connection-remapping
branch
from
August 15, 2026 02:14
f95af84 to
8f01299
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #807
In Azure AI Studio (v1), the
azure_ai_searchtool stores its connection metadata under the key nameindex_connection_id. When migrating agents to Microsoft Foundry (v2), the v2 API requiresproject_connection_id.Previously,
remap_connection_ids_in_toolonly checkedif key == 'connection_id':, leavingindex_connection_iduntouched and unresolved in the migrated payload, causing the v2 API to reject creation with a 400 Bad Request error.Changes
remap_connection_ids_in_tool()inmigration/v1_to_v2_migration.pyto match bothconnection_idandindex_connection_id.migration/test_migration_remapping.pycovering single tool remapping, search index remapping, and end-to-endv1_assistant_to_v2_agentconversion.Validation
migration/test_migration_remapping.py(3 passed).