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 this platform.
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 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.
Written by Washington Leon-Jordan, Vice President of Technology, Nimbo