1.1 Enter email and check I am a new user. Click “Sign in using our secure server”.
1.2 If you already have Microsoft ID, please sign in else create new Microsoft ID clicking “Sign up now”.
1.3 Fill in your email id and create a password.
1.4 After verifying email id, enter your credit card details and complete SMS verification.
1.5 Go to Azure Portal https://portal.azure.com/signin and log in with your Microsoft credentials.
1.6 Now you can browse Azure Portal.
2.1 Click on
New > Virtual Machines > Windows Server 2012 R2.
Deployment model > Resource Manager.
2.3 Configure Basic settings.
2.4 Choose Virtual Machine size.
2.5 Configure Storage and Network settings.
2.6 Review the summary and click OK.
2.7 Now we will configure Security Group (Network Security Settings).
Go to All Resources and select Network security group which belongs to the new virtual machine.
2.8 Select Inbound Security Rules.
2.9 Add a new security rule. Select TCP protocol and enter Destination port range number 80.
2.10 Add another security rule. Select TCP protocol and enter Destination port range number 8172.
3.1 Go to All Resources and select Virtual Machine.
3.2 Click “Connect” and download the remote desktop connection application file (.rdp).
3.3 Go to the folder where you have saved the .rdp file.
3.4 Right-click on the .rdp file and select Connect.
3.5 Click Connect again to allow remote connection.
3.6 Enter you credentials.
3.7 Check “Don’t ask me again” checkbox and click “Yes”.
4.1 Open Server Manager by clicking on its icon on the taskbar.
4.2 Click “Add roles and features”.
4.3 Roles and Features Wizard opens. Click “Next”.
4.4 Select “Role-based or feature-based installation” and click “Next”.
4.5 Select “Select a server from the server pool”, then choose your server and click “Next”.
4.6 Select “Web Server (IIS)” from “Server Roles” list and click “Next”.
4.7 Select following features:
.NET Framework 3.5 Features,
4.8 Click “Next”.
4.9 Let’s select Role Services: select items highlighted on the screenshots below and click “Next”.
4.10 Click “Install” and wait until the installation is complete.
4.11 Click “Close”.
5.1 Go to http://www.microsoft.com/web/downloads/platform.aspx, download, and run Microsoft Web Platform Installer.
5.2. Using the installer search field, find and select Web Deploy 3.6 and click “Add”
5.3 Then click “Install”.
5.4 Accept the Microsoft license terms, then wait until the end of the installation and click “Finish”.
6.1 Start VS2015 Web Express and create a new project.
6.2 Choose ASP.NET Web Application from
Templates > Web.
6.3 Select MVC template.
6.4 Your ASP.NET application was created! In the next section, we will show how to deploy it.
7.1 Right-click on your project name in the explorer panel (it is highlighted on the screenshot) and select “Publish”.
7.2 Select “Custom” publish targetagain.
7.3 Enter Profile name and click OK.
7.4 Go to Azure panel again. Go to All resources and select your virtual machine. Copy and note down the Virtual Machine Public IP Address.
7.5 Now go to IIS Manager panel again. Check the Connections panel on the left and copy the site name under Sites.
7.6 Return to the VS2015 Web Express and fill in the Connection settings. Here you will need your IP address and site name from previous steps. Then click “Publish”.
7.7 Check the “Save this certificate for future sessions” checkbox, then click “Accept” to accept the security certificate.
7.8 Now a green checkmark should appear near to Validate Connection button. Click “Next”.
7.9 Set Configuration to Release, check all 3 checkboxes in File Publish Options, and click “Next”.
7.10 Here you can preview the app, but we will just click “Publish” to finish the deployment process.
7.11 In Visual Studio output console you can see the “Web App was published successfully” message and the IP address to access the app.
7.12 Congratulations! This is is your newly deployed ASP.NET application. Now you can play with it further, or try our AWS Web Server Setup Tutorial.