We are using TeamCity for builds and Octopus for deployment. Octopus uses Deploy.ps1 powershell script for MVC website deployment to IIS.
I am looking for a powershell that can
- check if website exists and if not create one
- check if appPool exists and if not create one
- check if webapplication exists and if not create one with appPool from step2.
Any useful links that show how this deployment can be automated?
Thanks