Skip to content

a365 setup all intermittently fails with ConnectionResetError (10054) during tenant setup #321

@EvanderDS

Description

@EvanderDS

Description

When running the Agent365 CLI command a365 setup all, the setup intermittently fails with a network connection reset error. The failure occurs at non‑deterministic points during execution and is not tied to a specific step.
This issue was observed while setting up a tenant for Agent 365 using the CLI. Similar failures have also been seen when running:

  • a365  setup all
    
  • a365 deploy
    
  • a365 publish
    

In some cases, re‑running the command or restarting the machine temporarily resolves the issue, indicating a transient or environmental failure rather than a configuration error.

The issue occurs during the Agent 365 configuration and blueprint setup phase of the Agent 365 development lifecycle.

The following actions sometimes allow the command to succeed temporarily:

  •    az config set core.disable_confirm_prompt=false
    
  •    az config unset core.disable_ssl_verification
    

Expected behavior

  1. a365 setup all should complete successfully and leave the Agent 365 environment in a ready state for the next lifecycle step (deploy / publish).
  2. Transient network or TLS‑related failures should either:
  •       be retried internally by the CLI, or
    
  •       have clearer diagnostics
    

SDK Version

1.1.115-preview+fd1f775761

Language/Runtime

.NET 10.0.104 , Node.js v24.14.0

OS

Microsoft Windows 11 Enterprise

How to Reproduce

  1. Open VS Code with the Agent 365 Toolkit installed
  2. Open a terminal
  3. Run az login
  4. Run a365 setup all

https://learn.microsoft.com/en-us/microsoft-agent-365/developer/a365-dev-lifecycle

Output

The CLI fails with a connection reset error similar to:

        ConnectionResetError (10054): An existing connection was forcibly closed by the remote host

or:

      ERROR: Command failed with exit code 1:
     ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

Screenshots

Image

Code of Conduct

Metadata

Metadata

Labels

P2High prioritybugSomething isn't workingescalatedIssue has breached SLA and been escalated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions