{"id":32255,"date":"2019-01-24T21:42:00","date_gmt":"2019-01-24T21:42:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=32255"},"modified":"2019-02-14T20:17:33","modified_gmt":"2019-02-15T03:17:33","slug":"set-up-iis-on-windows-virtual-machine","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/set-up-iis-on-windows-virtual-machine\/","title":{"rendered":"Set up IIS on Windows Virtual Machine"},"content":{"rendered":"<p>App Dev Manager <a href=\"https:\/\/www.linkedin.com\/in\/vijethamallappa\/\">Vijetha Marinagammanavar<\/a> provides a walk-through of setting up IIS on a Windows Virtual machine hosted in Azure.<\/p>\n<hr \/>\n<p>Let\u2019s see How to set up IIS on Windows Virtual Machine hosted on Azure.<\/p>\n<p>Login to <a href=\"https:\/\/portal.azure.com\">https:\/\/portal.azure.com<\/a> and select Microsoft Azure Subscription (MSDN subscribers or sign up for a one-month free trial).<\/p>\n<p>Follow steps mentioned in this article <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/quick-create-portal\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/quick-create-portal<\/a> to create Virtual Machines in Azure using Azure portal. And then to configure IIS on your Azure virtual machine, follow the steps below. In this demo I have chosen a Windows Server 2012 R2 Datacenter image. To setup IIS on Windows VM using PowerShell follow the steps mentioned in this article <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/tutorial-iis-sql\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/tutorial-iis-sql<\/a><\/p>\n<p>1) Go to Azure Portal and navigate to Virtual Machine pane. Hit \u201cConnect\u201d to login to you Virtual Machine. Make sure you have configured the VM for RDP access.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis1.png\"><img decoding=\"async\" title=\"setupiis1\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis1_thumb.png\" alt=\"setupiis1\" width=\"1028\" height=\"407\" border=\"0\" \/><\/a><\/p>\n<p>2) Go to your Virtual machine and on the Start menu search for \u201cServer Manager\u201d as shown in below screen.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis2.png\"><img decoding=\"async\" title=\"setupiis2\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis2_thumb.png\" alt=\"setupiis2\" width=\"1028\" height=\"580\" border=\"0\" \/><\/a><\/p>\n<p>3) Open Server Manager and Select \u201cDashboard\u201d on the left navigation bar. Then select \u201cAdd roles and features\u201d option from the welcome screen.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis3.png\"><img decoding=\"async\" title=\"setupiis3\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis3_thumb.png\" alt=\"setupiis3\" width=\"1028\" height=\"701\" border=\"0\" \/><\/a><\/p>\n<p>4) Click on \u201cNext\u201d from the Add roles and features Wizard.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis4.png\"><img decoding=\"async\" title=\"setupiis4\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis4_thumb.png\" alt=\"setupiis4\" width=\"1028\" height=\"706\" border=\"0\" \/><\/a><\/p>\n<p>5) Choose \u201cRole-based or feature-based installation\u201d to configure a single server and click on \u201cNext\u201d.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis5.png\"><img decoding=\"async\" title=\"setupiis5\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis5_thumb.png\" alt=\"setupiis5\" width=\"1028\" height=\"718\" border=\"0\" \/><\/a><\/p>\n<p>6) From Server Selection option, click on Select a server from the server pool and click on Next.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis6.png\"><img decoding=\"async\" title=\"setupiis6\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis6_thumb.png\" alt=\"setupiis6\" width=\"1028\" height=\"585\" border=\"0\" \/><\/a><\/p>\n<p>7) In server roles please choose \u201cWeb Server(IIS)\u201d and click on \u201cNext\u201d.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis7.png\"><img decoding=\"async\" title=\"setupiis7\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis7_thumb.png\" alt=\"setupiis7\" width=\"1028\" height=\"576\" border=\"0\" \/><\/a><\/p>\n<p>8) From the Add roles and features wizard pop up, check Include Management tools and click on \u201cAdd Features\u201d.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis8.png\"><img decoding=\"async\" title=\"setupiis8\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis8_thumb.png\" alt=\"setupiis8\" width=\"1028\" height=\"591\" border=\"0\" \/><\/a><\/p>\n<p>9)From the Features option for now just click on \u201cNext\u201d.\nNote: If you have any Prerequisites to install you can select from the Features list.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis9.png\"><img decoding=\"async\" title=\"setupiis9\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis9_thumb.png\" alt=\"setupiis9\" width=\"1028\" height=\"583\" border=\"0\" \/><\/a><\/p>\n<p>10)From the Web Server role (IIS) just click on Next.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis13.png\"><img decoding=\"async\" title=\"setupiis13\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis13_thumb.png\" alt=\"setupiis13\" width=\"1028\" height=\"583\" border=\"0\" \/><\/a><\/p>\n<p>11)From Role Services choose \u201cIIS 6 management compatibility\u201d and click on \u201cNext\u201d.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis11.png\"><img decoding=\"async\" title=\"setupiis11\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis11_thumb.png\" alt=\"setupiis11\" width=\"1028\" height=\"581\" border=\"0\" \/><\/a><\/p>\n<p>12) Click on \u201cInstall\u201d and wait for the Installation and setup to complete.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis12.png\"><img decoding=\"async\" title=\"setupiis12\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis12_thumb.png\" alt=\"setupiis12\" width=\"1028\" height=\"591\" border=\"0\" \/><\/a>\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis131.png\"><img decoding=\"async\" title=\"setupiis13\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis13_thumb1.png\" alt=\"setupiis13\" width=\"1028\" height=\"583\" border=\"0\" \/><\/a><\/p>\n<p>13) Once you received the Installation Succeeded message, click on \u201cClose\u201d.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis14.png\"><img decoding=\"async\" title=\"setupiis14\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis14_thumb.png\" alt=\"setupiis14\" width=\"1028\" height=\"583\" border=\"0\" \/><\/a><\/p>\n<p>14) To test the IIS installation, go to Server Manager, right click on Server name and open IIS manager or you can directly search for IIS in the Start menu.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis15.png\"><img decoding=\"async\" title=\"setupiis15\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis15_thumb.png\" alt=\"setupiis15\" width=\"1028\" height=\"635\" border=\"0\" \/><\/a>\nOR\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis16.png\"><img decoding=\"async\" title=\"setupiis16\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis16_thumb.png\" alt=\"setupiis16\" width=\"1028\" height=\"548\" border=\"0\" \/><\/a><\/p>\n<p>15) On the IIS Manager, Select Default Web Site and click on Browse, it will open the http:\/\/localhost on the port no: 80. This confirms the IIS configuration on the Virtual machine.\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis17.png\"><img decoding=\"async\" title=\"setupiis17\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis17_thumb.png\" alt=\"setupiis17\" width=\"1028\" height=\"624\" border=\"0\" \/><\/a>\n<a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis18.png\"><img decoding=\"async\" title=\"setupiis18\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/setupiis18_thumb.png\" alt=\"setupiis18\" width=\"1028\" height=\"586\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>App Dev Manager Vijetha Marinagammanavar provides a walk-through of setting up IIS on a Windows Virtual machine hosted in Azure.<\/p>\n","protected":false},"author":582,"featured_media":33042,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25,55],"tags":[24,242,3],"class_list":["post-32255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-web","tag-azure","tag-iis","tag-team"],"acf":[],"blog_post_summary":"<p>App Dev Manager Vijetha Marinagammanavar provides a walk-through of setting up IIS on a Windows Virtual machine hosted in Azure.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/32255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=32255"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/32255\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/33042"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=32255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=32255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=32255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}