Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BESTPRACTICES] azd init is init'ing an ACA project when App Service is desired #890

@charris-msft

Description

@charris-msft

Describe the bug

App Service was requested for deploying a new app to Azure.
Copilot ran azd init to initialize the project, but azd init only supports container apps (ACA) currently.

Image

So copilot then rewrote the azure.yaml and bicep files to use App Service instead:

Image

It would have been faster and more straight forward if Copilot had just generated the files instead of using azd init.

Expected behavior

Copilot would just generate the necessary azd and bicep files rather than relying on azd init.

We should update the best practices to tell copilot to generate files instead of using azd init.

Actual behavior

Copilot may call azd init when it's not appropriate.

Reproduction Steps

  1. agent mode in vs code
  2. enable ghcp4a & azure mcp & built-in tools
  3. tell Copilot you want to deploy a simple flask app to app service on azure

Environment

Windows 11
Latest VS Code Insiders
Current extension versions

Metadata

Metadata

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions