{"id":4800,"date":"2020-10-30T10:39:36","date_gmt":"2020-10-30T15:09:36","guid":{"rendered":"https:\/\/www.apps4rent.com\/blog\/?p=4800"},"modified":"2023-05-03T13:16:53","modified_gmt":"2023-05-03T17:46:53","slug":"host-website-on-azure-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.apps4rent.com\/blog\/host-website-on-azure-virtual-machine\/","title":{"rendered":"How to Host Website on Azure Virtual Machine?"},"content":{"rendered":"<p>Many organizations are moving their entire business to the cloud, and websites are one of the first assets that make the transition as a part of the digital transformation. Microsoft offers the Azure Web app platform to support the web hosting requirements of most online businesses. However, many businesses need greater control of the web server hosting their sites when they move to Azure. Such businesses can leverage Azure virtual machines (VM) to host their websites and web apps. In this guide, let us explore how to host a website on Azure virtual machine.<\/p>\n<h2 style=\"font-size: 24px;\">What Are the Steps to Host A Website on Azure Virtual Machine?<\/h2>\n<p>Before we elaborate on the steps to host a website on an Azure virtual machine, we will assume that the VMs are provisioned, deployed, and are running Windows Server. You will also require admin access to the Azure subscription that is associated with the virtual machines.<\/p>\n<h3 style=\"font-size: 21px;\">Set Up IIS on Azure Virtual Machine<\/h3>\n<p>You can set up IIS on the virtual desktop from the Server Manager option in the Start menu. The application can be installed from the Roles and Features wizard. If you can open http:\/\/localhost on the port no: 80, you have deployed the application successfully on the Azure virtual machine.<\/p>\n<h3 style=\"font-size: 21px;\">Create the Website to Be Published<\/h3>\n<p>Once IIS is installed, you can add a new website using the Internet Services Manager. Add a description to your website from the Web Site Creation Wizard, choose an IP address, the TCP port to publish the website, the Host Header name, and the folder path to access the website documents.<\/p>\n<h3 style=\"font-size: 21px;\">Configure Azure Firewall<\/h3>\n<p>You will have to open a port or create an endpoint on the virtual machine hosting the website. To do this, you will have to create a network filter on a subnet or a VM network interface. The network security group (NSG) attached to the Azure VM will regulate the inbound and outbound traffic. You can create and configure the NSG from the Azure portal.<\/p>\n<h3 style=\"font-size: 21px;\">Publish the Website<\/h3>\n<p>You can publish a website either by a simple copy action in the remote desktop or using Visual Studio web deployment. With Visual Studio 2019, it is easy to publish an ASP.NET web application using the Microsoft Azure Virtual Machines publishing feature. It must be noted that the virtual machine should be pre-configured for running ASP.NET web applications and must have WebDeploy installed on it.<\/p>\n<h3 style=\"font-size: 21px;\">Test Website Access with Internal and External IP Address<\/h3>\n<p>Once you have published your website, it is time to check if it is accessible. If the site is accessible from internal IP addresses, it implies that your site has been built correctly. If you can access the website from an external IP, it confirms that you have configured your firewall correctly.<\/p>\n<h3 style=\"font-size: 21px;\">Bind A Domain with Public IP Address<\/h3>\n<p>Once you have confirmed that external users can access the website, you can attach a domain name to the public IP address to simplify access to the site for external users. You can add the public IP address of the website to the domain you own by modifying the Domain Name System (DNS) record with the registrar.<\/p>\n<h2 style=\"font-size: 24px;\">Apps4Rent Can Help Host Websites on Azure Virtual Machines<\/h2>\n<p>Configuring Azure virtual machines to host websites can be challenging for most organizations. App4Rent has removed the complexity involved in configuring Azure virtual machines for web hosting. Our ready to use images, such as <span style=\"color: #007fac;\"><a style=\"color: #007fac;\" href=\"https:\/\/www.apps4rent.com\/iis-windows-server-2016\">IIS on Windows Server 2016<\/a><\/span> in the Azure Marketplace, can help businesses deploy the websites effortlessly on Azure. As a provider of <span style=\"color: #007fac;\"><a style=\"color: #007fac;\" href=\"https:\/\/www.apps4rent.com\/managed-azure.html\">fully managed Azure services<\/a><\/span>, Apps4Rent provides 24\/7 phone, chat, and email support for users of our Azure solutions. Contact us today to know more about our Azure plans and migration assistance.<\/p>\n<style>.stick_popup{margin-top: -190px !important;}@media only screen and (min-width:99px) and (max-width:767px){.popup1 {display: none;}.stick_popup{width: 100% !important;margin-left: -188px !important;}}<\/style>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.clouddesktoponline.com\/blog\/wp-content\/themes\/apps4rentoffice\/popup\/stick-to-me.css\"\/><script src=\"https:\/\/www.clouddesktoponline.com\/blog\/wp-content\/themes\/apps4rentoffice\/popup\/stick-to-me.js\"><\/script><script>$(document).ready(function(){$.stickToMe({layer:'#stickLayer'});});<\/script><\/p>\n<div class=\"jquery-script-ads\" align=\"center\"><\/div>\n<div id=\"stickLayer\" style=\"display:none;max-width:1000px;height:605px; width:1000px;background:#fff;\" class=\"stick_popup\">\n<div class=\"stick_close\" onclick=\"$.stick_close()\">X<\/div>\n<div class=\"stick_content\" style=\"padding-left: 0px;padding-top: 0px;padding-bottom: 0px;\">\n<div class=\"col-md-6 popup1\" style=\"background: #0774c6;color: white;height:600px;padding:0px;\"><img decoding=\"async\" src=\"https:\/\/www.apps4rent.com\/blog\/wp-content\/uploads\/2020\/11\/apps4rent-manage-azure-services.png\"\/><\/div>\n<div class=\"col-md-6\">\n<p style=\"padding-top: 7px;color: #30508c;margin-bottom: 10px;text-align: center;line-height: 35px;font-size:27px;font-weight: 500;\">Need help with Azure Virtual Machine?<br \/>\nOur Azure experts can help you.<\/p>\n\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f4891-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"4891\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/blog\/wp-json\/wp\/v2\/posts\/4800#wpcf7-f4891-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"4891\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.5\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f4891-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_group_fields\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_visible_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_repeaters\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_steps\" value=\"{}\" \/><input type=\"hidden\" name=\"_wpcf7cf_options\" value=\"{&quot;form_id&quot;:4891,&quot;conditions&quot;:[],&quot;settings&quot;:{&quot;animation&quot;:&quot;yes&quot;,&quot;animation_intime&quot;:200,&quot;animation_outtime&quot;:200,&quot;conditions_ui&quot;:&quot;normal&quot;,&quot;notice_dismissed&quot;:false,&quot;notice_dismissed_rollback-cf7-5.9.5&quot;:true}}\" \/>\n<\/fieldset>\n<style>.inputf{font: 16px 'Roboto !important';font-weight: normal;font-style: normal;line-height: 25px;color: #2A363F;padding: 5px 20px;font-size: 16px;border: #9d9fa0 1px solid !important;margin-bottom:20px !important;box-sizing: border-box;border-radius: 3px !important;width: 100%;}\n.cf7-style div.wpcf7-response-output{width: fit-content !important;margin: 0px;padding: 5px !important;}\n.button1 {padding: 15px 20px;font-size: 18px !important;background: #375181;font-family: sans-serif;color: #fff;border: #9dbfff 2px solid;box-shadow: none;font-weight: bold;margin-bottom:0px !important;width: 100% !important;}\n<\/style>\n<style>@media only screen and (min-width:99px) and (max-width:767px){#content{margin-left:0px auto;}.sec {width:100% !important;float: none !important;}.html input[type=\"button\"], input[type=\"reset\"], input[type=\"submit\"]{font-size:16px !important;}}\n<\/style>\n<div style=\"padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 0px;\">\n\t<div style=\"float: left;width: 100%;margin-right: 15px;\" class=\"sec\">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"Name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required inputf\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Name*\" value=\"\" type=\"text\" name=\"Name\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div style=\"float: left;width: 100%;margin-right: 15px;\" class=\"sec\">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"contact\"><input size=\"40\" maxlength=\"10\" minlength=\"6\" class=\"wpcf7-form-control wpcf7-tel wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-tel inputf\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Contact Number*\" value=\"\" type=\"tel\" name=\"contact\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div style=\"float: left;width: 100%;\" class=\"sec\">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"email\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email inputf\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Email ID*\" value=\"\" type=\"email\" name=\"email\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div style=\"float: left;width: 100%;margin-bottom:20px;\" class=\"sec\">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"msg\"><textarea cols=\"40\" rows=\"5\" maxlength=\"2000\" class=\"wpcf7-form-control wpcf7-textarea inputf\" aria-invalid=\"false\" placeholder=\"Message\" name=\"msg\"><\/textarea><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div>\n\t\t<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner button1\" type=\"submit\" value=\"SUBMIT REQUEST\" \/>\n\t\t<\/p>\n\t<\/div>\n<\/div><p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"_wpcf7_ak_\"><label>&#916;<textarea name=\"_wpcf7_ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"_wpcf7_ak_js\" value=\"12\"\/><script>document.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );<\/script><\/p><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Many organizations are moving their entire business to the cloud, and websites are one of the first assets that make the transition as a part of the digital transformation. Microsoft offers the Azure Web app platform to support the web hosting requirements of most online businesses. However, many businesses need greater control of the web [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[545],"tags":[],"class_list":["post-4800","post","type-post","status-publish","format-standard","hentry","category-azure"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/posts\/4800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/comments?post=4800"}],"version-history":[{"count":5,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/posts\/4800\/revisions"}],"predecessor-version":[{"id":7572,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/posts\/4800\/revisions\/7572"}],"wp:attachment":[{"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/media?parent=4800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/categories?post=4800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apps4rent.com\/blog\/wp-json\/wp\/v2\/tags?post=4800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}