Skip to content

azd code deploy cannot be executed non-interactively #8323

@v1212

Description

@v1212

Issue
azd ai agent init --no-prompt always defaults to container deployment mode.
At the moment, there is:
no CLI flag such as --deploy-mode
no environment variable override
no supported way to select code deployment mode in a non-interactive flow

Why non-interactive support matters

This is required for CI/CD scenarios.

The Foundry samples cloud E2E pipeline (hosted-agents-cloud-e2e.yml) runs unattended on GitHub Actions runners with no TTY and validates approximately 47 samples on every PR. Any interactive prompt causes the job to hang and eventually time out.

Today, container deploy works in this pipeline via --no-prompt. We need the same non-interactive capability for code deploy so both deployment paths can be validated in parallel.

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.{agents,connections,inspector,projects,routines,skills,toolboxes} extensions

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions