@Anonymous Thank for reaching out to Microsoft Q&A, apologize for the inconvenience caused on this.
To reproduce this behavior, I have created a sample webapp (running with .NET 6 as runtime on windows app service plan) using the cmdlet az webapp update
cmdlet we have set the default document to swagger/index.html
and using the below cmdlet
We can see the current default document is set to swagger/index.html
only as shown below
az webapp show -g <resourcegroupname> -n <webappname> --query siteConfig.defaultDocuments
Also, when we route to the default URL of the web app, we can see the content of index.html in the browser as well.
As mentioned in this documentation if your app uses modules that route based on URL instead of serving static content then there is no need for setting the default documents.
Feel free to reach back to me if you have any further queries on this.