Adebayo Ebofin
Posted on October 28, 2024
Table of content
- Azure app service a. What is azure app service? b. Step by step in creating library web app
- Deployment slot in azure app service a. What is deployment slot? b. step by step in creating deployment slot
- Monitoring using app service a. What is monitoring? b. step by step in creating monitoring using app service
What is Azure app service?
Azure App Service is a fully managed Platform as a Service (PaaS) offering from Microsoft Azure that allows you to build, deploy, and scale web apps, mobile back ends, and RESTful APIs in the programming language of your choice without managing infrastructure.
- Here are step by step in creating a library web app using azure app service a. In azure portal search for app services
b. At the drop down of + create select web App
c. create a New Resource Group( I named it webapprg)
d. Give your web app a name of your choice (libraryapp) also select code
e. Select your Runtime stack (I choose .NET 6 (LTS) which automatically selected window as operating system also select region
uploads.s3.amazonaws.com/uploads/articles/59vbr2em86aaevnnkqps.png)
f. Give your plan a name and click ok (libraryapplan)
g. Choose your pricing plan from drop down (I choose standard)
h. Add tag by clicking on tag write name and web app name (libraryapp), select review + create.
i. select create
j. Go to chatgpt to generate a code by typing sample HTML, CSS, JavaScript application for library all in one file
k. Go to library app created and select deployment center under deployment slot provided you are picking your code from any continuous deployment or manual deployment
l. In the search bar search for advance tools and select then click on the Go
m. Click on debug console and select CMD
o. Click on wwwroot
p. Click on the pencil icon of hostingstart.html
q. Remove the default code
r. Paste code copy from chatgpt and click save
s. Go back to libraryapp created and click on default domain to view the library created
2a. What is deployment slot?
In Azure App Service, a deployment slot is a feature that allows you to host different versions of your application in separate environments within the same App Service instance. Each slot has its own configuration settings, environment variables, and can be used to test or stage your application without affecting the production version.
Key Benefits:
Staging and Testing: You can deploy your app to a staging slot to test changes before swapping it with the production slot.
Zero-Downtime Deployments: By swapping slots, you can achieve near-instant updates with minimal downtime.
Isolated Environments: Each slot can have different settings, enabling you to test with different configurations.
Easy Rollbacks: If a deployment in production goes wrong, you can quickly swap back to the previous version.
b. Step by step in creating deployment slot
- Having created the new app with different features by following the step by step process in creating the initial app you will click on deployment slot under deployment
- For the new app created type 10% at the traffic slot that is out of 100% of the traffic using the one in production let 10% be viewing this to access it if ok then click save
- Maybe after 3months of testing and everything is ok and you want to replace the one in production with the new one for 100% traffic you will click swap then start swap
3a. What is monitoring using app service?
Monitoring your Azure App Service is crucial for ensuring its optimal performance, availability, and security.
b. Step by step in creating monitoring
- Select Alert under monitoring and click on create alert rule
- Select the signal name from the drop down (Http server Errors) then select review + create
- Select create
Posted on October 28, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.