finetune ext: honor --endpoint and --subscription flags over configured environment#7243
Closed
finetune ext: honor --endpoint and --subscription flags over configured environment#7243
Conversation
Co-authored-by: achauhan-scc <70937115+achauhan-scc@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/d39e7aad-25ba-44c2-a694-4ece1ba25656
Copilot
AI
changed the title
[WIP] Fix finetune extension not honoring endpoint and subscription flag
finetune ext: honor --endpoint and --subscription flags over configured environment
Mar 23, 2026
Contributor
|
Hi @@copilot. Thank you for your interest in helping to improve the Azure Developer CLI experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
Contributor
|
Hi @@copilot. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass. |
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
jobssubcommands silently ignored--project-endpointand--subscriptionflags whenever an azd environment was already configured, making it impossible to query fine-tuning jobs across different projects without re-runninginit.Changes
Priority fix (
internal/cmd/validation.go)validateOrInitEnvironmentnow applies: explicit flags → env vars → error (previously: env vars → warn-and-ignore-flags)sanitizeEnvironmentNamehelperFlag-aware client creation (
internal/cmd/operations.go)resolveFineTuningProvider(ctx, flags, azdClient)— uses flags when set, falls back to envcreateFineTuningServicewrapping the abovesubmit,show,list,pause,resume,cancel,deploy) now receive*jobsFlagsand use these helpers instead of callingservices.NewFineTuningServicedirectlydeployadditionally applies flag overrides for subscription ID, account name (parsed from endpoint), and tenant lookupNew factory/service constructors
factory.NewFineTuningProviderWithEndpoint(endpoint, tenantId)— builds an OpenAI client from a bare endpoint URL + tenant, no env lookupservices.NewFineTuningServiceWithProvider(provider, stateStore)— constructs a service from a pre-built providerVersion bump:
0.0.17-preview→0.0.18-previewBehavior
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.