Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Web Deploy on IIS 7+ with Shared Configuration enabled

We have a web farm environment running IIS 7.5 on Windows 2008R2. We use shared configuration and web storage replication.

We tried to install Web Deploy (v3.5) on one of the servers but receive an error message saying that Web Deploy is not supported with Shared Configuration.

Is it possible to run Web Deploy in a shared configuration environment? If so how?

NOTE: We have figured this out so I am posting the answer here. There is little to no documentation that we could find on this topic so I thought it best to host the info here so the rest of the world can easily find it.

like image 824
Kelsey Avatar asked Feb 07 '14 16:02

Kelsey


People also ask

How do I publish a website using IIS in Windows 7?

In IIS, right-click the Default Web Site, choose Deploy > Configure Web Deploy Publishing.

Can't connect to remote server web Deploy?

This error indicates that you cannot connect to the server. Make sure the service URL is correct,firewall and network settings on this computer and on the server computer are configured properly,and the appropriate services have been started on the server.


1 Answers

Yes Web Deploy can be installed on an IIS server using Shared Configuration. Here are the step we used to get it to work. Any comments, improvements or considerations are welcome.

  1. Open IIS and select the server node in the tree.
  2. Open the Shared Configuration in the Management section.
  3. Uncheck Shared Configuration select Yes to copy the configuration to the local storage.
    • Do this to ALL servers that have been sharing configuration as you need to rebuild the configuration once Web Deploy is installed and reattach each server.
  4. Install Web Deploy 3.5 (or newer) via the Web Platform Installer found here:
    • http://www.microsoft.com/web/gallery/install.aspx?appid=WDeploy
    • Installing Web Deploy will modify the authentication rules which will cause issues in a Shared Configuration environment so these rules need to be manually updated.
  5. Open IIS and select the server node in the tree.
  6. Open the Management Service Delegation module in the Management section (this module appears once Web Deploy is installed). enter image description here
  7. Edit the following rules and set the credentials to the a user that has access to the Shared Configuration. Typically a new account can be made that can be granted access to the Shared Configuration storage or use IIS service account. This will enable the web deployment agent to access the shared configuration with a domain account instead of the default local account. enter image description here
    • createApp
    • recycleAPP
    • appPoolPipeline,appPoolNetFx
    • backupSettings
  8. Restart the Web Deployment Agent service.
  9. Restart the Web Management service.
  10. Restart the IIS service.
  11. Make sure you have disabled shared configuration on all servers.
  12. Now to re-enable shared configuration, open IIS and select the server node in the tree.
  13. Open the Shared Configuration in the Management section.
  14. If this is the first server you need to export the configuration using the following steps (if not skip to next step):
    • Click Export Configuration...
    • Set the Physical Path to the shared configuration location and enter the appropriate encryption key.
    • You should see a success dialog if the export was successful.
  15. Check Enable shared configuration.
  16. Set the Physical Path to the shared configuration location and click Apply.
  17. Enter the appropriate encryption key and click Ok.
  18. Restart the IIS service.

You will then need to perform these steps again for each server using the shared configuration except you can skip step #14.

like image 53
Kelsey Avatar answered Oct 14 '22 18:10

Kelsey