I am using VSTS to build a Solution containing multiple Web Applications. The web applications are being zipped up and exist in the deploy folder and I can use the Deploy Website task to deploy a website by specifying the Package or Folder like this:
$(System.DefaultWorkingDirectory)\**\*Website.zip
The task deploys a single website, however I would like to deploy all the zipped websites, and any others that get added in the future without modifying the release process. Reducing the pattern restraints to match multiple websites doesn't work with the Deploy Website task. Is there task that supports the functionality of deploying multiple websites and if not what is the most idiomatic way of accomplishing this?
I solved the problem by having a task group with multiple IIS Web App Deploy steps, taking a convention over configuration based approach. The approach is easily understandable for anyone maintaining the deployment pipeline but for a more configuration based approach having a custom script as mentioned in Daniel Mann's answer is more suitable.