Azure DevOps new release pipeline is not deploying correctly to App service

Steve Bullington 0 Reputation points
2025-06-30T21:30:15.8233333+00:00

We are creating a new release pipeline for an Angular 18 application. The steps in the pipeline are completing successfully. The code is being delivered to the Web App, but the App Service is not coming up and we don't know why.

Azure DevOps
{count} votes

2 answers

Sort by: Most helpful
  1. Durga Reshma Malthi 5,650 Reputation points Microsoft External Staff Moderator
    2025-07-02T08:27:55.1633333+00:00

    Hi Steve Bullington

    Could you please share the YAML File in private message if possible.

    Since it is a Windows App Service deployment, ensure web.config is present. If web.config is missing or incorrect, the app won’t route correctly.

    After the pipeline completes, connect to the App Service via Kudu (Advanced Tools) or FTP. In the Kudu console (https://<yourapp>.scm.azurewebsites.net/DebugConsole):

    • Navigate to site/wwwroot
    • Check for:
      • index.html
      web.config

    If not present or nested incorrectly (e.g., site/wwwroot/dist/your-app-name/index.html), it won’t work.

    Hope this helps!

    Please Let me know if you have any queries.

    0 comments No comments

  2. Durga Reshma Malthi 5,650 Reputation points Microsoft External Staff Moderator
    2025-07-04T08:07:26.1966667+00:00

    Hi Steve Bullington

    Could you please share the YAML File in private message if possible.

    Meanwhile check if site/wwwroot/webconfig exists. If not, then create it as below:

    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
            <rule name="Angular Routes" stopProcessing="true">
              <match url=".*" />
              <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
              <action type="Rewrite" url="/index.html" />
            </rule>
          </rules>
        </rewrite>
        <staticContent>
          <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
      </system.webServer>
    </configuration>
    

    Check inside your deployed index.html

    If you see something like <base href="/dist/">, the app won’t load correctly on Azure.

    Then Set correct base path during build:

    ng build --configuration production --base-href "/"
    

    Try navigating directly to https://<yourapp>.azurewebsites.net/index.html. If that works, but https://<yourapp>.azurewebsites.net/ doesn’t, it’s definitely a default document or rewrite issue.

    Then Go to your App Service in the Azure Portal -> Configuration -> Default Documents.

    1. Ensure index.html is listed at the top of the default documents list.
    2. If it’s missing or lower in priority, IIS might not serve it automatically.

    Hope this helps!

    Please Let me know if you have any queries.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.