Publish Apps under different subdomains.

Adrian N 81 Reputation points
2021-06-18T00:45:30.1+00:00

Hi All

Just wondering if this is possible. I want to publish different web apps under a different subdomain. For example:

www.mybusiness.com (My Website)

For web apps I make, I would like them to be directly published to a subdomain. So it will look like:

myapp1.mybusiness.com (commerce app)
myapp2.mybusiness.com (booking app)
myapp3.mybusiness.com (sales app)

I usually just select the publish option under VS and set up the details within the setup wizard. What steps can I take in order to set up my domain and subdomains properly so azure treats the subdomains as a separate directory for me to directly upload my app files into it. Thanks in advanced!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,158 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,869 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,401 Reputation points Microsoft Employee
    2021-06-24T09:57:44.597+00:00

    @Adrian N , Apologies for the delayed response here.

    1/2:

    You can have multiple sites as sub-directories. Something like, site/app1, site/app2, site/app3.

    Please see Virtual applications and directories

    You can change the 'Type' to 'Application' in the Path mappings for /folder.

    On the Publish dialog, you need to choose the appropriate virtual App. Then you need to include the virtual directory path in the “Site Name” and “Destination URL” sections on the Connection tab.

    Please see this old blog on deploying multiple virtual directories to a single Azure Website
    https://learn.microsoft.com/archive/blogs/tomholl/deploying-multiple-virtual-directories-to-a-single-azure-website