This is part of our series: Supercharge your developing experience with Infrastructure assets in Azure. A developer has always sat a couple of layers behind production and we all have memories of “this only happens in production” scenarios. Having the opportunity to play around, deploy, and troubleshoot in real production environments has become a real tool in our arsenals thanks to Azure Infrastructure as a Service (IaaS). The following is a tutorial in how to quickly provision and setup a web server in an Azure Virtual Machine.
This tutorial assumes that you are familiar with the basic functions of provisioning machine in the Azure Management Console.
Under virtual machines click New
provision a virtual machine
Once the virtual machine has been provisioned, go to the endpoints tab in the azure management console.
Click on Add
This will launch the endpoint add wizard, click on the forward button
Select HTTP from the dropdown menu and click the check mark button
repeat the process for HTTPS ( and FTP if you need FTP access)
This is how my list of endpoints looks like once I am done
To test, remote access to the machine by clicking on the Dashboard tab and click Connect.
After logging in -with the credentials specified when the server was provisioned- the dashboard will be shown, click on Add roles and features.
Click next in the prompts that come up until you get the the role selection screen. Select Web Server (IIS)
Click the next button, if you will be using FTP click on the FTP Server, leave the other default checks as they are,
Click next and Install to complete these step.
After the server finishing installing these components, notice the inetpub folder that has been created in the c: drive.
we can now enter our DNS entry in a browser and see the default IIS page
lets make a quick change to this page
Add a simple html heading code:
save and refresh the browser you used to see the IIS default page, the word TEST will now be shown.
you now have a fully public functionally web server running in the cloud.
Using IaaS infrastructure assets in your development process provides a unique window to the hardware potential that the cloud has to offer while providing a venue to see your applications running in scenarios beyond your trusted laptop development machine.
Bill started his career as a developer and quickly became frustrated with the speed at which traditional infrastructure organizations move. With the emergence of cloud, infrastructure as code, and all things DevOps, he’s found a limitless information playground.
Bill specializes in migrating/creating enterprise-level data centers in the cloud, solving/optimizing performance-related problems, streamlining development operation efforts, creating custom applications, and wielding a PowerShell hammer.
Latest posts by Bill Young (see all)
- AWS NAT Monitor - July 21, 2014
- How to Use Highcharts JS with ASP.NET MVC - December 11, 2013
- How to setup a Web Server in an Azure Virtual Machine - November 8, 2013