How To Deploy Software On Azure App Service And Allow Software Logs

First, we have to perceive what Azure App service is and what options it offers.

The Azure App service is a PAAS service of Azure which can be utilized to deploy your utility on the cloud with out caring concerning the infrastructure, upkeep and safety —  it offers all of those options off the shelf.

The Azure App service can be utilized to deploy .Internet, Python, Java, Python, and Node js purposes.

App Service Plan

The app service plan is step one that you want to perceive earlier than deploying your utility on an app service. The app service plan is sort of a webhosting bundle.

The App service plans are divided into three totally different classes,

  • Dev/Testing
  • Manufacturing
  • Remoted


In case your undertaking is in testing or growth section than you should use this app service plan. It has limitations like a most of  60 minutes compute a day and 1 GB reminiscence which won’t be appropriate for manufacturing,  and you’ll host at most 10 purposes on this plan.


This could possibly be used on your production-ready utility. It comes with options like deployement slot.

Deployment slot is used to check your new code earlier than shifting it to manufacturing. We will have a staging slot so each new code is deployed to the staging slot and examined with the stay knowledge. If the appliance works properly it will likely be moved to the manufacturing slot.

An auto scaling function can be utilized on this class to robotically scale your app service on the premise of some scaling guidelines corresponding to  message queues or computes matrix and so forth.

We will have our customized area connected to an app service,  and  atraffic supervisor function can also be accessible on this class. The visitors supervisor is positioned in entrance of your utility to handle all of the visitors coming to your utility and outline guidelines like diverting visitors from particular areas to a distinct occasion of the appliance.


When you have safety/privateness considerations along with your utility you should use this class. It can offer you  remoted {hardware} and networks on your utility.

Internet App

After creating the app service plan you want to create an internet app that can include your utility code.

  1. Choose the useful resource group wherein you need to place your net app.
  2. Enter the identify of the app service; that must be distinctive.
  3. Choose the runtime stack which ought to match the expertise stack on which your utility is developed.
  4. Choose the area; or the geographical location the place your need to deploy your code.
  5. Choose the app service plan you will have created or you possibly can create a brand new one.
How To Deploy Application On Azure App Service And Enable Application Logs

Software Logging

The applying logging is a crucial factor when your utility goes into manufacturing. You may want to observe the appliance logs on a regular basis so if something goes mistaken, you possibly can backtrack it. The App service offers application-level logging in several methods. We will retailer the appliance logs within the storage account or we will ship the logs to log analytics which is a complete log analytics service that gives queries on the logs too.

  1. Click on on the diagnostic logs
  2. Click on on the Add diagnostic setting
  3. Click on on the Archive to avoid wasting your logs within the storage account. Configure the storage account on which you need to retailer the logs. You can even outline the retention interval for a way lengthy you need to retailer the logs within the storage account.
How To Deploy Application On Azure App Service And Enable Application Logs

Deployment via Visual Studio

It is vitally straightforward to deploy your code via Visual Studio.

  1. Proper Click on on the appliance and there’s a publish possibility –  click on on it.
  2. Create a brand new publish profile by clicking on new.
  3. Click on on the App service possibility and click on on “Choose Current”
  4. Log in in case you are not logged in already and choose the Useful resource group that has your net utility.
  5. Choose your net utility.
How To Deploy Application On Azure App Service And Enable Application Logs
Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button