title: Azure Web Deployment Fails - Website with given name already exists
body: <p>When deploying my application I receive the following error:  <strong>Website with given name azuredemo already exists</strong>.</p>
  <p>I am attempting to deploy a Java Spring Boot web application to Azure.  I created a Spring Boot application that works on my local machine against port 80.</p>
  <p>I then ran <code>mvn azure-webapp:config</code> and configured the Application and then ran config a second time to configure the Runtime.</p>
  <p>I get the following output from maven:</p>
  <pre><code>AppName : azuredemo
  ResourceGroup : azuredemo-rg
  Region : eastus
  PricingTier : Basic_B1
  OS : Linux
  Java : Java 11
  Web server stack: Tomcat 9.0
  Deploy to slot : false
  </code></pre>
  <p>Then I ran the command <code>mvn azure-webapp:deploy</code> to deploy the application to Azure.</p>
  <pre><code>[INFO] Scanning for projects...
  [INFO]
  [INFO] -----------------&lt; demo:azuredemo &gt;------------------
  [INFO] Building azuredemo 0.0.1-SNAPSHOT
  [INFO] --------------------------------[ jar ]---------------------------------
  [INFO]
  [INFO] --- azure-webapp-maven-plugin:1.12.0:deploy (default-cli) @ azuredemo ---
  [WARNING] The POM for com.microsoft.azure.applicationinsights.v2015_05_01:azure-mgmt-insights:jar:1.0.0-beta is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields (file:/C:/xxxxx/.m2/repository/com/microsoft/azure/applicationinsights-core/2.6.1/applicationinsights-core-2.6.1.jar) to field java.util.TreeMap.comparator
  WARNING: Please consider reporting this to the maintainers of com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  [INFO] Auth Type : AZURE_CLI, Auth Files : [C:\xxxxx\.azure\azureProfile.json, C:\xxxxx\.azure\accessTokens.json]
  [INFO] Subscription : Pay-As-You-Go(yyyyyyyy)
  [INFO] Target Web App doesn't exist. Creating a new one...
  [INFO] Creating App Service Plan 'ServicePlandaaaa-aaa'...
  [INFO] Successfully created App Service Plan.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  30.596 s
  [INFO] Finished at: 2021-02-03T15:02:13-05:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:deploy (default-cli) on project azuredemo: Website with given name azuredemo already exists.: OnError while emitting onNext value: retrofit2.Response.class -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  <p>So to troubleshoot the issue, I delete all of the Application Services.  I deleted all of the Resource Groups.  And attempted the deployment again to the same error.</p>
  <p>I understand I am probably missing something, but going through the portal and dashboards, I cannot find what the conflict is.</p>
  <p><strong>My Environment</strong></p>
  <ul>
  <li>Maven 3.6.3</li>
  <li>Java 11</li>
  <li>Spring Boot 2.3.8</li>
  <li>az cli 2.18.0</li>
  <li>Pay-As-You-Go subscription</li>
  </ul>
  <p><strong>My Maven POM</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.3.8.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt;
          &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;demo&lt;/groupId&gt;
      &lt;artifactId&gt;azuredemo&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;azuredemo&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
      &lt;properties&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
          &lt;azure.version&gt;3.1.0&lt;/azure.version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.azure.spring&lt;/groupId&gt;
              &lt;artifactId&gt;azure-spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.azure.spring&lt;/groupId&gt;
              &lt;artifactId&gt;azure-spring-boot-starter-active-directory&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.azure.spring&lt;/groupId&gt;
                  &lt;artifactId&gt;azure-spring-boot-bom&lt;/artifactId&gt;
                  &lt;version&gt;${azure.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;excludes&gt;
                          &lt;exclude&gt;
                              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                              &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
                          &lt;/exclude&gt;
                          &lt;exclude&gt;
                              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
                              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
                          &lt;/exclude&gt;
                      &lt;/excludes&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.microsoft.azure&lt;/groupId&gt;
                  &lt;artifactId&gt;azure-webapp-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.12.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;authType&gt;azure_cli&lt;/authType&gt;
                      &lt;resourceGroup&gt;azuredemo-rg&lt;/resourceGroup&gt;
                      &lt;appName&gt;azuredemo&lt;/appName&gt;
                      &lt;pricingTier&gt;B1&lt;/pricingTier&gt;
                      &lt;region&gt;eastus&lt;/region&gt;
                      &lt;deployment&gt;
                          &lt;resources&gt;
                              &lt;resource&gt;
                                  &lt;directory&gt;${project.basedir}/target&lt;/directory&gt;
                                  &lt;includes&gt;
                                      &lt;include&gt;*.jar&lt;/include&gt;
                                  &lt;/includes&gt;
                              &lt;/resource&gt;
                          &lt;/resources&gt;
                      &lt;/deployment&gt;
                      &lt;runtime&gt;
                          &lt;os&gt;Linux&lt;/os&gt;
                          &lt;javaVersion&gt;Java 11&lt;/javaVersion&gt;
                          &lt;webContainer&gt;Tomcat 9.0&lt;/webContainer&gt;
                      &lt;/runtime&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>