Skip to content

Azure: CLI left hanging after this error shows up #2094

@commit111

Description

@commit111

Describe the issue

Minor UI issue, but the CLI does not seem to exit automatically after I get this error.

The error itself is probably normal, where I was deploying to Azure a second time to the same region (since the first time it failed because the project name defang-provider-handoff was too long).

2026-05-06T15:25:33.341-07:00 defang-cd 2026-05-06T22:25:33.093651036Z [defang-etag=commit111]  +  azure-native:app:ManagedEnvironment shorter-name **creating failed** error: Status=409 Code="MaxNumberOfRegionalEnvironmentsInSubExceeded" Message="The subscription [I've omitted the ID but it goes here] cannot have more than 1 Container App Environments in West US 2. For more information, visit: https://go.microsoft.com/fwlink/?linkid=2208872"
2026-05-06T15:26:34.086-07:00 defang-cd 2026-05-06T22:26:33.84566  No logs since last 60 seconds

Repo steps

  1. defang compose up on the defang provider handoff sample, let it fail.

  2. then change name field in compose.yaml to something shorter, like shorter-name

  3. then defang compose up again on the same region to see the error.

Expected results

the CLI should exit on its own

Actual results

the CLI does not exit on its own

Metadata

Metadata

Assignees

Labels

azureAzure related issue

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions