How to access/download Applicationhost.config file in Azure Web Sites

 

IIS loads all its configuration for websites, application pools, etc from the ApplicationHost.config file. This file has been integral part since IIS 7.0. Also, in the PaaS offering of Azure (Azure Web Sites), IIS is the primary web server on which all the sites are hosted and hence the file is important in Azure Web Sites. More details on ApplicationHost.config file can be found at https://www.iis.net/learn/get-started/planning-your-iis-architecture/introduction-to-applicationhostconfig.

 

The ApplicationHost.config file for your Azure Web Site can be accessed/downloaded following the below steps:

 

  • Login to the KUDU console for your Azure Web Site at https://<sitename>.scm.azurewebsites.net/DebugConsole where <sitename> should be replaced by your Azure Web Site name

     

  • Click on "Site Root" image highlighted in the below screen shot and go to "Config" folder

     

     

  • The ApplicationHost.config file will be listed which can be accessed/downloaded by clicking on the "Down Arror" mark highlighted below. The file can be edited/deleted using the other options.