Skip to content

[Issue] context canceled for azd up (but azd deploy works) #6431

@giuliohome

Description

@giuliohome

Output from azd version
azd version 1.22.5

Describe the bug
azd up fails with 'context canceled' on second deployment step

To Reproduce

I'm working with https://github.com/Azure-Samples/azure-ai-travel-agents

giulio@myhome:~/csharp/azd-multiagent$azd up
...
...
...
ERROR: error executing step command 'deploy api-llamaindex-ts': failed to authenticate: server response error:
 Get "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Forganizations%2Foauth2%2Fv2.0%2Fauthorize": context canceled
giulio@myhome:~/csharp/azd-multiagent$

Expected behavior

It should not fail indeed azd deploy does work fine!

Environment
Information on your environment:
* ssh session
* fedora 42
* bash

Additional context

I've already tried clearing auth cache,

rm -rf ~/.azd/auth
rm -rf ~/.azure/accessTokens.json ~/.azure/azureProfile.json

azd auth logout
azd auth login --use-device-code

disabling IPv6, and curl to the login endpoint works

My finding that azd deploy works correctly (deploying all services in one go), while azd up fails during the deployment phase, narrows down the problem significantly: the issue is specifically within the azd up command's orchestration, particularly in the handoff or state management between its provision and subsequent deploy stages. It's not a general azd deploy issue, nor a single-service deployment issue, nor a networking issue for individual calls.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions