Lab 4
Platform as a Service (PaaS)
Introduction:
Platform as a Service (PaaS) is a cloud computing model that provides developers with a
complete platform and environment to build, deploy, and manage applications without
worrying about infrastructure or root systems. PaaS provides a variety of services and tools to
simplify the entire software development lifecycle, including runtime environments,
databases, operating systems, middleware, and development tools. With PaaS, developers can
focus primarily on writing code and building applications, while leaving the complexity of
infrastructure management to the cloud. This cloud model enables faster application
development, increased productivity and scalability while the PaaS provider manages the
underlying infrastructure, autoscaling and load balancing. PaaS also enables collaborative
development by enabling integration and integration with management systems.
Additionally, PaaS products often offer additional features such as security protocols,
monitoring tools, and integration with other cloud services, allowing developers to build
strength and security. Overall, PaaS empowers developers by removing infrastructure
concerns, allowing them to focus on innovation and streamlining the software development
process.
Creating an app in PaaS:
Azure App Service is a powerful Platform-as-a-Service (PaaS) offering from Microsoft that
enables developers to create and deploy applications quickly and efficiently. With Azure App
Service, developers can focus on writing code and building features, while Azure takes care
of the underlying infrastructure and management tasks. This cloud-based service provides a
scalable and flexible environment for developing web, mobile, and API applications.
Leveraging Azure's robust set of tools and services, developers can easily deploy their
applications to the cloud, monitor performance, and scale resources as needed. Azure App
Service supports multiple programming languages and frameworks, making it a versatile
choice for developers of all backgrounds. Whether it's a small-scale application or a large
enterprise solution, Azure App Service empowers developers to bring their ideas to life and
deliver high-quality applications to their users with ease.
Steps to create and deploy a web app in Azure
Step 1: Preparing HTML code
Create HTML, CSS, and JavaScript files along with any other static content required
for your web application. Ensure that the HTML file is named index.html, as most
web servers will serve this file by default when visitors access the root of the website.
Step 2: Create an Azure Web App
Sign in to the Azure portal (https://portal.azure.com/).
Click on "Create a resource" > "Web App."
Fill in the required details for your web app, such as the name, subscription, resource
group, and operating system. Choose the appropriate operating system (Windows or
Linux) based on your application's requirements.
Click "Review + create" and then "Create" to create the web app.
Step 3: Get FTP/FTPS Credentials
Go to your web app's page in the Azure portal.
Under the "Deployment" section, click on "Deployment Credentials."
Note down the FTP/FTPS hostname, username, and password.
Step 4: Upload HTML code to the web app using FileZilla
Download and install FileZilla (https://filezilla-project.org/) on your local machine.
Launch FileZilla and enter the FTP/FTPS hostname, username, password, and port
(default is 21 for FTP or 990 for FTPS).
Click "Quickconnect" to establish a connection with your Azure Web App.
In the Remote Site section (right side), navigate to the appropriate directory where
you want to deploy your web app files (usually /site/wwwroot for Azure Web Apps).
In the Local Site section (left side), navigate to the directory containing your HTML
code files.
Select the HTML code and initiate the file upload. The file will be uploaded to the
Azure Web App.
Step 5: Accessing the Web App
Once the file upload is complete, we can access the web application by visiting the
domain associated with our Azure Web App.
Conclusion
Creating a virtual machine (VM) locally involves managing infrastructure, while cloud-based
VMs remove this burden. Cloud VMs offer scalability, availability, reliability, and cost-
effectiveness advantages. Platform as a Service (PaaS) abstracts infrastructure complexities,
allowing developers to focus on application development and deployment. PaaS provides
scalability, faster time-to-market, and managed services, freeing developers from
infrastructure management tasks. Overall, PaaS offers convenience and efficiency, enabling
developers to concentrate on their applications while benefiting from automatic scalability
and managed services.