Introduction
Azure App Service is a fully managed Platform-as-a-Service (PaaS) offering from Microsoft Azure, designed to host web applications, APIs, and mobile backends with minimal infrastructure management. It supports multiple programming languages (like .NET, Java, Node.js, Python, and PHP) and frameworks, enabling developers to deploy apps quickly without worrying about servers, scaling, or patching.
Create Azure App Service
- Log into your Azure portal and search for Azure app service. Select App services.
- Click create and choose Webapp
- Choose the following: resource group, name of your webapp, Publish, runtime stack and region.
- Change the pricing tiers to shared for the purpose of testing
- Leave other settings as default, change the tab to Review + create and select create after validation.
- Wait for the deployment to complete and click Go to resource
- Click the default Domain to check that the web app is running.
Deploy your apps to Azure App services
- Open VS Code, create a folder for your app and cd into it
mkdir [folder-name]
cd [folder-name]
- Clone this repo for the purpose of this project by running this command:
git clone https://github.com/Azure-Samples/html-docs-hello-world.git
- Deploy your app in VS code to your App services. To do this, Click view and select command pallete
- Search for and select Deploy to Web App
- Select the folder that contains your app or browse to choose the folder
- Choose your subscription
- Select your App services
- Select Deploy
- Wait for the deployment to finish.
- Once the deployment is completed, refresh the page you used to check if your App services is running.
This shows that you have successfully hosted Static website on Azure App services.
Thanks for staying till the end
Top comments (0)