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,450 points

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);

Check this out

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
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
+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
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
+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
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
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
+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 2,193 views