Launch your own Web Server on the top of Azure Cloud within few steps :
Vaibhav Shah
Associate Consultant at T-Systems ICT India | Red Hat Ansible | OpenShift | DevOps | AWS | Azure | Cloud | Docker | K8s | Terraform | Observability | OpenTelemetry | Istio | Kiali | GitLab | Podman | Connected Vehicles
What is Azure Cloud ?
Azure Cloud is the Cloud Computing service provided by the well known IT company i.e. Microsoft.
Cloud Computing is one of the trending technology by which any tenant can simply use the resources or services of their requirements and pay according to the usage.
As you have also noticed that to initiate any small startup, huge upfront amount is needed for technical resources, but Cloud Service Providers give an opportunity to the tenant to pay for only that particular time for which they used the resources, this is known as pay-as-we-go model.
What is Web Server?
A Web Server is a program or software that helps in hosting our data on the internet which is technically called as website.
Through which any client can connect with you across the globe.
Their are many companies, which provides their own customized web server program, and one of the product from the popular open source community is Apache Web Server.
How to launch our own Web Server on the top of Azure Cloud ?
The very first step is to login into the Azure Portal.
And then click on Create a Resource > Compute > Virtual Machine
Then fill the details according to your preferences or as shown below
Since we know, Web Server works on the Port no 80 that is why we are allowing HTTP.
Now after Networking, Azure gives us area to write any script. So we are going to write here the script for our Apache Web Server installation and all.
#!/bin/bash - This is called Shabang yum install httpd -y - To install Apache Web Server echo "Welcome to My Webserver" > /var/www/html/index.html systemctl enable httpd --now - To enable Apache Web Server
This is the Script which will help us in installation of Apache Web Server and enabling the service
>> Now just create the Virtual Machine <<
After this, our instance will be launched and we just have to login in it through any ssh program and we just have to add one rule in the internal firewall as shown below.
firewall-cmd --add-service=http
>> This will allow any outside client to use its http service.
Now we just have to give a DNS Name
Write your own DNS name which you want, and save it.
Result :
Type the DNS Name or IP in any browser and you will see that you can access the content that you shared or created.
Hence, you can see you have configured your own Website on the top of Azure Cloud in just few minutes.
============ If you are up-till here, Thanks for Reading the article ===========
=================== Please Like it, if you like the work ==================
Senior DevOps Engineer | Empowering Scalable Cloud Solutions | Expert in CI/CD, Microservices, and Serverless Technologies | Driving Innovation in AWS & Azure Cloud Environments
4 年Very well explained Vaibhav Shah ????keep it up ????