Upgrade armcognitiveservices to v2 to fix azd down for Foundry resources#8493
Draft
Copilot wants to merge 2 commits into
Draft
Upgrade armcognitiveservices to v2 to fix azd down for Foundry resources#8493Copilot wants to merge 2 commits into
azd down for Foundry resources#8493Copilot wants to merge 2 commits into
Conversation
1 task
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix azd down failure for foundry
Upgrade armcognitiveservices to v2 to fix May 29, 2026
azd down for Foundry resources
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.
azd downfails when purging Foundry cognitive accounts because thearmcognitiveservices v1.8.0SDK modelsnetworkInjectionsas a single object, while the API now returns an array:This is the same SDK gap already addressed in the agents extension (#6957); this brings the fix to azd core.
Changes
armcognitiveservices v1.8.0→armcognitiveservices/v2 v2.0.0incli/azd/go.mod/go.sum. v2 models the field asNetworkInjections []*NetworkInjection, matching the API response..../armcognitiveservices→.../armcognitiveservices/v2) across the consuming packages:pkg/azapi/cognitive_service.gopkg/ai/model_service.gopkg/infra/provisioning/bicep/bicep_provider.go(theazd downpurge path)extensions/microsoft.azd.ai.builder/.../model_catalog.go— part of thecli/azdmodule, updated sogo mod tidycould drop the v1 dependency.The v2 package name is unchanged and all consumed types/clients (
AccountsClient,DeletedAccountsClient,Account,Model,Usage, …) are source-compatible; only the module path moved.