Simplify azd ai agent/finetuning init to use --minimal flag#6670
Merged
achauhan-scc merged 6 commits intomainfrom Feb 1, 2026
Merged
Simplify azd ai agent/finetuning init to use --minimal flag#6670achauhan-scc merged 6 commits intomainfrom
achauhan-scc merged 6 commits intomainfrom
Conversation
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Simplify azd ai agent/finetuning init command
Simplify azd ai agent/finetuning init to use --minimal flag
Jan 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR simplifies the initialization flow for AI extensions (azd ai agent init and azd ai finetuning init) by using the --minimal flag when calling azd init, avoiding confusing interactive prompts that ask users to choose between "Scan current directory", "Select a template", or "Use agent mode".
Changes:
- Modified both extensions to call
azd init --minimalinstead ofazd init - Removed the
-eenvironment flag from init calls (not supported by--minimal; environment creation is handled separately viaensureEnvironment) - Refactored
getExistingEnvironmentin finetune extension to suppress warning messages by silently handling lookup errors
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cli/azd/extensions/azure.ai.finetune/internal/cmd/init.go | Updated ensureProject to use --minimal flag; refactored getExistingEnvironment to return only environment (no error) and silently ignore lookup failures; removed warning log in ensureEnvironment |
| cli/azd/extensions/azure.ai.finetune/go.mod | Moved stretchr/testify from indirect to direct dependency (used in tests) |
| cli/azd/extensions/azure.ai.agents/internal/cmd/init.go | Updated ensureProject to use --minimal flag and removed -e environment flag |
| .gitignore | Added binary output files for azure.ai.finetune extension |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
trangevi
approved these changes
Jan 30, 2026
vhvb1989
approved these changes
Jan 31, 2026
achauhan-scc
approved these changes
Feb 1, 2026
This was referenced Feb 2, 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.
When no azd project exists,
azd ai agent initandazd ai finetuning initcallazd initinteractively, presenting users with three confusing options ("Scan current directory", "Select a template", "Use agent mode"), which users may not know what to pick.This PR simplifies this flow by defaulting to
azd init --minimal, effectively reducing the number of init/env-related prompts from 4 to 2:Changes
ensureProjectto callazd init --minimalinstead ofazd init-eenvironment flag from init call (not supported by--minimal; environment creation already handled separately inensureEnvironment)azure.ai.finetune- suppressWarning: failed to get existing environmentlog messageEnvironment handling continues to work via the existing
ensureEnvironmentfunction which runsazd env newafter project initialization.Original prompt
azd ai agent/finetuning initto callazd init --minimal#6669💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.