Deploy nodejs project to a virtual application using Visual Studio Code

Jeroen H 40 Reputation points
2024-09-03T14:36:44.8433333+00:00

Hi,

I'm trying to deploy a nodejs express app to a virtual application of an Azure web app I own.

I wrote the application with Visual Studio Code, but from there I'm only able to deploy it directly to the service itself, with no option for subdomains/virtual applications. The subdirectory (nor any other file except for 'hostingstart.html') also does not show up when inspecting the service's folders in Visual Studio Code's Azure extension.

Deploying to virtual projects is possible using Visual Studio, but doing this for nodejs has proven very troublesome and not something that is intented/well documented in recent years?

I'd expect Visual Studio Code's Azure Extension to have this feature built in, am I missing something?

Side note: it appears that no question tags exist for Visual Studio Code, how come?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,663 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jeroen H 40 Reputation points
    2024-09-04T12:04:15.4766667+00:00

    Thank you @Lex Li (Microsoft) ,

    Looking at Azure-VsCode's feature request and issue list, this is not currently supported, and has been deemed as out-of-scope and not planned, unfortunately.

    A recommended workaround of using Kudu deployement is advised. Here, a custom deployment directory can be specified in a .deployment file. I wasn't able to get it to work, but maybe others reading this will have more success.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.