Skip to content

Fix azd ai agent init message to suggest azd up before azd deploy#6343

Merged
rajeshkamal5050 merged 5 commits into
mainfrom
copilot/fix-deployment-agent-prompt
Dec 10, 2025
Merged

Fix azd ai agent init message to suggest azd up before azd deploy#6343
rajeshkamal5050 merged 5 commits into
mainfrom
copilot/fix-deployment-agent-prompt

Conversation

Copilot AI commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

After azd ai agent init completes, the output suggests running azd deploy [name] directly, which fails if infrastructure hasn't been provisioned first.

image

Changes

  • Updated the completion message to first recommend azd up for full provisioning and deployment
  • Clarified that azd deploy [name] is only valid when infrastructure is already provisioned

Before

Added your agent as a service entry named 'CalculatorAgentLG' under the file azure.yaml.
You will be able to deploy this agent using command azd deploy CalculatorAgentLG.

After

Added your agent as a service entry named 'CalculatorAgentLG' under the file azure.yaml.
To provision and deploy the whole solution, use azd up.
If you already have your project provisioned with hosted agents requirements,
you can directly use command azd deploy CalculatorAgentLG.
Original prompt

This section details on the original issue you should resolve

<issue_title>[Issue] azd ai agent prompts to azd deploy agent, which will fail if no bicep provided</issue_title>
<issue_description>- [x] Make sure you've installed the latest version using instructions

Output from azd version
azd version 1.22.0 (commit c9ab0f2)
azd ai agent version 0.1.3-preview

Describe the bug
When completing azd ai agent init flow, the output shows:

Image

which could be misleading because azd deploy [AGENTNAME] will work only if azd provision would succeed, and if all permissions have been setup.

Expected behavior
We could either point to azd up or remove this mention (preferred).</issue_description>

<agent_instructions>This is in regards to the following code snippet:

fmt.Printf("Added your agent as a service entry named '%s' under the file azure.yaml. You will be able to deploy this agent using command %s.\n",
agentDef.Name,
color.HiBlueString("azd deploy %s", agentDef.Name))</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@jfomhover let's replace with "To provision a project and your the whole solution, use `azd up`. If you already have your project provisioned with hosted agents requirement, you can directly use command `azd deploy [name]`"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 10, 2025 00:07
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] Fix misleading prompt in azd ai agent initialization Fix azd ai agent init message to suggest azd up before azd deploy Dec 10, 2025
Copilot AI requested a review from JeffreyCA December 10, 2025 00:13
@JeffreyCA
JeffreyCA marked this pull request as ready for review December 10, 2025 01:22
@JeffreyCA
JeffreyCA requested a review from jfomhover December 10, 2025 01:22
@rajeshkamal5050
rajeshkamal5050 merged commit f3c78ed into main Dec 10, 2025
18 checks passed
@JeffreyCA
JeffreyCA deleted the copilot/fix-deployment-agent-prompt branch January 16, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] azd ai agent prompts to azd deploy agent, which will fail if no bicep provided

4 participants