Skip to content

Azure Web App: Configuration Details

Hanxiao Liu edited this page Mar 9, 2022 · 16 revisions

<javaVersion>

The supported values for Web App are Java 8,Java 11and Java 17.

Note: Only Java SE and Tomcat 10.0 is supported for Java 17

<webContainer>

The supported Value for web App on Linux

Supported Value Description
Jbosseap 7 Jboss EAP 7
Tomcat 8.5 Tomcat 8.5 (Default)
Tomcat 9.0 Tomcat 9.0
Tomcat 10.0 Tomcat 10.0
Java SE Java SE

The supported Value for web App on Windows

Supported Value Description
Tomcat 7.0 Tomcat 7.0
Tomcat 8.0 Tomcat 8.0
Tomcat 8.5 Tomcat 8.5 (Default)
Tomcat 9.0 Tomcat 9.0
Tomcat 10.0 Tomcat 10.0
Java SE Java SE

Note: If the <webcontainer> is not configured, maven plugin will deploy your project to correspond Java SE runtime

<resource>

Property Description
type Specifies where the resource type of the files to be deployed, valid values are: jar, war, ear, lib, static, startup, zip and script.
directory Specifies where the resources are stored.
targetPath Specifies the target path where the resources will be deployed to.
includes A list of patterns to include, e.g. **/*.war.
excludes A list of patterns to exclude, e.g. **/*.xml.

Note1: If <type> and <targetPath> are not specified, the targetPath is /home/site/wwwroot(or d:\home\site\wwwroot) by default.

Note2: If <type> is not specified and <targetPath> is started with '/', then <targetPath> will be regarded as a absolute path, you could deploy external resources to folders outside wwwroot in this method

Note3: If <type> is specified, the <targetPath> is relative to the default path regard to <type>, for most types the default target path is /home/site/wwwroot/ or d:\home\site\wwwroot, eg: if <type> is lib, the default targetPath is /home/site/libs(or d:\home\site\libs); if <type> is static, the default targetPath is /home/site/wwwroot(or d:\home\site\wwwroot); if <type> is startup, you shall not configure targetPath, as it is hard-coded to /home/site/scripts/startup.sh (or d:\home\site\scripts\startup.cmd)

<region>

Some valid regions are listed as below. All valid regions please refer to Azure Region Availability.

  • West US
  • West US 2
  • East Asia

<pricingTier>

Some valid pricing tiers are listed as below. All valid pricing tiers please refer to Azure App Service Plan Pricing.

  • F1
  • P1V2
  • P2V2
  • P3V2
  • P1V3
  • P2V3
  • P3V3

Note: Pricing tier selected should support the 'AlwaysOn' setting for deployment to succeed.

Clone this wiki locally