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.
- Ensure
index.html
is listed at the top of the default documents list.
- 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.