
{"id":1380,"date":"2015-08-04T23:25:25","date_gmt":"2015-08-04T23:25:25","guid":{"rendered":"http:\/\/tech-no.104.210.61.21.xip.io\/?p=1380"},"modified":"2015-08-04T23:32:43","modified_gmt":"2015-08-04T23:32:43","slug":"building-scalable-web-applications-to-a-windows-iis-farm-here-is-the-solution-to-replicating-the-iis-metabase-ssl-certs-bindings-and-code","status":"publish","type":"post","link":"https:\/\/tech-no.org\/?p=1380","title":{"rendered":"Building scalable web applications to a Windows IIS farm? Here is the solution to replicating the IIS metabase, SSL certs, Bindings, and code."},"content":{"rendered":"<h1 style=\"text-align: left;\"><a href=\"http:\/\/tech-no.104.210.61.21.xip.io\/?attachment_id=1381\" rel=\"attachment wp-att-1381\"><img loading=\"lazy\" class=\" size-full wp-image-1381 alignleft\" src=\"http:\/\/tech-no.104.210.61.21.xip.io\/wp-content\/uploads\/sites\/4\/2015\/08\/msdeploy.png\" alt=\"msdeploy\" width=\"335\" height=\"252\" srcset=\"https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2015\/08\/msdeploy.png 335w, https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2015\/08\/msdeploy-300x226.png 300w, https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2015\/08\/msdeploy-100x75.png 100w, https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2015\/08\/msdeploy-166x125.png 166w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/a><\/h1>\n<h1 style=\"text-align: left;\">Web Deploy 3.5, the answer to scalability with web farms.<\/h1>\n<p><a href=\"http:\/\/www.iis.net\/downloads\/microsoft\/web-deploy\" target=\"_blank\">http:\/\/www.iis.net\/downloads\/microsoft\/web-deploy<\/a><\/p>\n<p>Similar to the use of Chef or Puppet, you can use Web Deploy 3.5 to push web server configuration and content to all you web servers in your farm.\u00a0Previously i\u00a0used IISCnfg to handle this back in the IIS6 days, but haven&#8217;t needed to do this on a windows web server for a bit. Fast forward to Windows server 2012, and you can use Web Deploy 3.5 to replicate the content the configuration etc to servers behind a load balancer.<\/p>\n<p>Step 1: Install the web deploy code on both web servers<\/p>\n<p>Step 2: Setup an account for use to replicate the settings<\/p>\n<p>Step 3: assign permissions on IIS to allow the changes to be deployed<\/p>\n<p>Step 4: create a scheduled task with the script to keep it in sync (I added -whatif to the code so it wont do anything unless you remove that part)<\/p>\n<p>&nbsp;<\/p>\n<p>Here is the code i used:<\/p>\n<blockquote><p>msdeploy -verb:sync -source:webserver,computername=&lt;FQDN of the source servername&gt;,username=&lt;domain\\username&gt;,password=&lt;password&gt;,authtype=ntlm -dest:auto,computername=&lt;FQDN of the destination servername&gt; \u00a0-whatif &gt;c:\\msdeploy.log<\/p><\/blockquote>\n<p>Obviously you will need to install the proper roles on the other web servers, and you can review the msdeploy.log to see which dependencies or roles need to be installed.<\/p>\n<p>Here are some more examples from Microsoft on using msdeploy<\/p>\n<p><a href=\"http:\/\/www.iis.net\/learn\/publish\/using-web-deploy\/synchronize-iis\">http:\/\/www.iis.net\/learn\/publish\/using-web-deploy\/synchronize-iis<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web Deploy 3.5, the answer to scalability with web farms. http:\/\/www.iis.net\/downloads\/microsoft\/web-deploy Similar to the use of Chef or Puppet, you can use Web Deploy 3.5 to push web server configuration and content to all you web servers in your farm.\u00a0Previously i\u00a0used IISCnfg to handle this back in the IIS6 days, but haven&#8217;t needed to do &hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[65,73,72],"_links":{"self":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1380"}],"collection":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1380"}],"version-history":[{"count":2,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1380\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1380\/revisions\/1383"}],"wp:attachment":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}