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.
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.
- Open IIS and select the server node in the tree.
- Open the Shared Configuration in the Management section.
- 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.
- 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.
- Open IIS and select the server node in the tree.
- Open the Management Service Delegation module in the Management section (this module appears once Web Deploy is installed).
- 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.
- createApp
- recycleAPP
- appPoolPipeline,appPoolNetFx
- backupSettings
- Restart the Web Deployment Agent service.
- Restart the Web Management service.
- Restart the IIS service.
- Make sure you have disabled shared configuration on all servers.
- Now to re-enable shared configuration, open IIS and select the server node in the tree.
- Open the Shared Configuration in the Management section.
- 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.
- Check Enable shared configuration.
- Set the Physical Path to the shared configuration location and click Apply.
- Enter the appropriate encryption key and click Ok.
- 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.