Exclude customer-facing Deprecated AI models from default extension framework model selection#8842
Draft
Copilot wants to merge 2 commits into
Draft
Exclude customer-facing Deprecated AI models from default extension framework model selection#8842Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…ault By default, AI model listing and deployment resolution now exclude model versions whose ARM lifecycleStatus is "Deprecating" (customer-facing Deprecated) or "Deprecated" (Retired), in addition to versions whose inference endpoint has retired. Callers can opt back into excluded lifecycle statuses via FilterOptions.Statuses for existing-customer management. Renames helpers to Excluded/Retired terminology to avoid confusion with ARM's lifecycle status names and adds regression coverage for gpt-4.1-mini-style data (Deprecating with a future inference date). Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Exclude deprecated AI models from default extension framework selection
Exclude customer-facing Deprecated AI models from default extension framework model selection
Jun 26, 2026
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.
The AI model service filtered out retired versions but still returned ARM
lifecycleStatus: "Deprecating"models by default. Per the ARM Models lifecycle mapping,Deprecatingis the customer-facing Deprecated stage (existing customers only, new deployments blocked), so it should not be offered as an available/recommended choice for new deployments.Changes (
cli/azd/pkg/ai)convertToAiModelsAtnow excludes versions whose lifecycle status is ARMDeprecating(Deprecated) orDeprecated(Retired) in the default view, in addition to the existing inference-expired and SKU-level filtering.FilterOptions.Statusesis the opt-in path: callers requesting["Deprecating"](e.g. existing-customer management) get exactly those statuses. This also fixes a latent bug whereDeprecatedversions were dropped before the status filter could match them.deprecation.inference <= now(410 Gone) are excluded unconditionally, regardless of requested statuses, matching the docs' guidance to treat past inference dates as retired regardless of lifecycle lag.modelLifecycleDeprecated→modelLifecycleExcluded,modelDeprecationReached→modelInferenceRetired,modelVersionDeprecated→modelVersionExcluded.FilterOptions.Statuses(Go +ai_model.proto) to document default exclusion and opt-in semantics.Check ordering in
convertToAiModelsAt:Tests
Deprecatingis excluded by default.TestConvertToAiModels_ExcludesDeprecatingByDefaultButAllowsOptInusing the issue'sgpt-4.1-minidata (Deprecating+ futureinference): excluded by default, returned whenStatuses: ["Deprecating"]is requested.