Search code examples
azureweb-configazure-web-app-servicevirtual-directoryazureportal

How to configure multi level virtual directory in azure portal?


The azure portal allows me to add single level virtual directory in its configuration settings.

enter image description here

but I don't know how to add multi level virtual directory in azure?

enter image description here

It throws the below error while saving the settings.

Failed to update web app settings: ["{\"Code\":\"BadRequest\",\"Message\":\"Invalid virtual path '/showcase/test/app' has no parent.\",\"Target\":null,\"Details\":

Solution

  • For the Virtual Directory. It seems that the parent path must already exist if you want to add the multi-level sub virtual directory. You can see this.

    enter image description here

    You can get more references from other SO answers.

    Publish Multiple Projects to Different Locations on Azure Website