Is it possible to to create IIS Site and application Pool using Web Deploy

0 votes

I'm trying to automate the deployment process and so far am being able to build and deploy web site.

Now, I'd like to create IIS site and Application pool for any new IIS if it doesn't exist.

Can I do it with web deploy or is there any other way to do it?

Apr 20, 2018 in DevOps & Agile by DragonLord999
• 8,360 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can try and use the ServerManager class. It's in the Microsoft.Web.Administration namespace.  You can use the ApplicationPools and Sites properties to you benefit like this

ServerManager sm = new ServerManager();
Site site = serverMgr.Sites.Add(“MySiteName”, “C:\\inetpub\\wwwroot”, 8080);

Check this out

answered Apr 20, 2018 by ajs3033
• 7,000 points

Related Questions In DevOps & Agile

0 votes
1 answer

Is it possible to preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 19, 2018 in DevOps & Agile by Atul
• 10,190 points
0 votes
1 answer

Is it possible to create cloudshell shell without driver?

Yes definitely, it is possible to create ...READ MORE

answered Jul 26, 2018 in DevOps & Agile by Damon Salvatore
• 5,250 points
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,100 points
0 votes
1 answer

is it possible to use swagger with vs2017

Yes, you can use swagger in a ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,520 points
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
+13 votes
2 answers
0 votes
4 answers

Is it possible to integrate sonarqube with LDAP

Add the following lines in your config ...READ MORE

answered Apr 29 in DevOps & Agile by Wazir
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by ajs3033
• 7,000 points

edited Oct 16, 2018 by Kalgi 395 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.