Skip to content

Unclear error message shows when deployment fails due to mismatched TargetPort in “Deploy to Container App with Copilot” #1018

@v-ruizh

Description

@v-ruizh

OS: Win 11
Build Version: 20260118.1
Regression: Not a Regression

Repro Steps:

  1. Right-click a container app and select "Deploy to Container App with Copilot...".
  2. In the Summary view, note that the default Target Port is set to 80 (while the container listens on 3000).
  3. Don't change any item and click "Confirm" to start deployment -> Fail to deploy with an error.
  4. Check whether the error message is clear or not.

Expect:
The deployment failure should surface a clear and actionable error message, such as “The TargetPort 80 does not match the listening port 3000” in Azure portal.
Image

Actual:
The deployment fails with a generic timeout message.
Image

More Info:
This issue also reproduces when executing "Deploy to Container App..." command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions