Is it possible to add a Virtual Directory to an Azure Web Apps Website using Azure SDK or Azure REST API?
We have a ASP.NET CMS website (the main site is at www.example.com) which has the ability to create new website instances pointing to the same source code as the main site with a level 1 virtual directory name (e.g. www.example.com/project1). Each virtual directory will have its own users and administration.
I'm able to add a virtual directory manually in the Azure portal. I'm also able to use .NET API to create it programmatically in my local IIS (ServerManager from Microsoft.Web.Administration), but it doesn't work in Azure Web Apps.
Please help.
You can use management rest api to create a virtual directory to azure webapp.
For the access token, you could use following code to get the token.