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 asp.net 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,450 points
2,041 views

1 answer to this question.

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);
sm.ApplicationPools.Add(“MyAppPool”);
sm.CommitChanges()

Check this out https://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager(v=vs.90).aspx

answered Apr 20, 2018 by ajs3033
• 7,300 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,240 points
555 views
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,980 points
569 views
+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,220 points
5,431 views
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,890 points
693 views
+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
3,924 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
0 votes
4 answers

Is it possible to integrate sonarqube with LDAP

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

answered Apr 29, 2019 in DevOps & Agile by Wazir
5,262 views
+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 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points

edited Oct 16, 2018 by Kalgi 4,818 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP