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,380 points
281 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,280 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
29 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,510 points
42 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,110 points
840 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,810 points
38 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
1,051 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
216 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 in DevOps & Agile by Wazir
1,123 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 26, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 16, 2018 by Kalgi 720 views