How to publish two .net websites on one Azure WebApp?

397 Views Asked by At

I have two web apps hosted on Windows Azure VM -> IIS with the following names

  • MyWeb.com (Front end for Users- Javascript)
  • api.MyWeb.com (backend for Admins  - .net core app)

Question:

  1. Can I publish these two apps into one Azure WebApp? OR do I need to provision two separate Azure WebApps and publish them separately?

  2. Where to manage connection string etc?

Note: Both are tied up with the one Public IP e.g (1.2.3.4).

Thanks in advance.

1

There are 1 best solutions below

1
On BEST ANSWER

Normally, your Front end webapp don't need connection string. So you can set your backend web app as main site. And you can manage

enter image description here

enter image description here

So you can deploy your front end in virtual application. You can check my answer in link which NebulaBC's comment for you.

Related Post:

1. How to deploy a Flask+React application to Azure Web Service

2. React.js - How to deploy client and server independently or together?