Angular code deployment to Azure failed - Reason - failed, reason: read ECONNRESET

Bhuwan Mittal 26 Reputation points

I am trying to deploy my code from Visual Studio Code (1.66.0) to Azure WebAPP.

Code is getting Build successfully but when I am trying to deploy getting below error.

Error: request to Code failed, reason: read ECONNRESET

If someone face the same issue then please help me out.

Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
399 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
773 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,940 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bhuwan Mittal 26 Reputation points

    Solution - Downgrade my Visual Studio Version to 1.64 from 1.66 and successfully deployed.

    2 people found this answer helpful.

  2. ajkuma 15,036 Reputation points Microsoft Employee

    I understand the inconvenience with this issue. Apologies for any trouble!

    It’s being tracked on VS repo, as mentioned –“until a fix is released in VS Code stable (hopefully the next major release)”.

    4 -options are outlined for the fix (downgrading VS code version, is one of the option).

    (copied the suggested options below to benefit the community)

    1. Wait for the fix to come in VS Code Insiders
    2. Deploy via Azure CLI
    3. Downgrade your Azure Functions extension version to 1.2.1 (Feb 08, 2021), we used a different zip deploy method which seems to be working still. Note: it might not work in environments like WSL or Codespaces, which is why we changed our deploy in 1.3.0 (Mar 15, 2021).
    4. Downgrade to the VS Code February 2022 release, where zip deploy is working as discussed and confirmed above.

    Thanks for your patience!

    0 comments No comments