Azure App Service


1. What is App Service?

Azure App Service is a service for hosting the below type of web applications

·       App Service – Web App

·       App Service – API Apps (Web API, WCF etc)

·       App Service – Mobile back ends.

2. What technologies are supported in App Service?

We can develop in our favorite language, be it .NET, .NET Core, Java, Ruby, Node.js, PHP, or Python. 

3. What is the difference between App Service and App Service Plan?

App Service Plan: It’s a managed service that provides the infrastructure (like CPU, RAM etc) for hosting App Services

App Service: It’s a managed service which is used to deploy Web Applications inside the App Service Plan

4. What type of applications can be deployed in App Service?

Below type of web applications are supported in App Service

·       App Service – Web App

·       App Service – API Apps (Web API, WCF etc)

·       App Service – Mobile back ends.

5. Is it possible to create configuration settings in App Service? If yes, what type of configuration settings can be created?

Yes, It’s possible to create the Configuration Setting as Key-Value pairs. App Service supports

·       Application Settings

·       Connection Strings

 

6. In app service. Is it possible to change the runtime stack after the app service is created?

Yes. It’s possible

 

7. What is the significance of always on property in app service?

When Always On is turned on in the configuration, it prevents your app from being idled out due to inactivity

 

8. What is the significance of ARR affinity setting in Azure app service?

ARR affinity – when it’s turned off, the Load Balancer will decides to which server the request should be forwarded. When ARR Affinity is turned on, then the request from a client will always reach the same server for that entire session. For compatibility reasons, ARR Affinity is turned on by default.

 

9. Is it possible to Configure default documents or default page in Azure app service

Yes, It can be done in the Default Documents tab of the Configuration blade of the App Service

 

10. Is it possible to do a remote debugging of applications hosted inside app service

Yes. It’s possible. We need to perform the below steps.

Turn on Remote Debugging in the General Settings tab of the Configuration blade of App Service.

We also need to deploy the application in Debug mode.

 

11. How do you achieve zero downtime deployment in Azure app service.

In Azure app service. Zero downtime deployment can be achieved using a feature called Deployment Slots.

Deployment slots is available in App Service which is hosted in Standard pricing tier or above.

 

12. Is it really possible to do a blue green deployment in Azure app service

Yes. It is possible to implement blue green deployments in azure app service using the feature called deployment slots

 

13. What is deployment slot of Azure app service? Can you please explain the significance of deployment slots?

Deployment slots are live apps with their own host names. Deploying your application to a non-production slot has the following benefits:

You can validate app changes in a staging deployment slot before swapping it with the production slot. Deploying an app to a slot first and swapping it into production makes sure that all instances of the slot are warmed up before being swapped into production. This eliminates downtime when you deploy your app.

 

14. How do you ensure that the connection strings of database are different for different environments within Azure app service

For all Application Settings and Connection Strings, there is a special attribute setting called Deployment Slot Setting . If you turn this on, then that particular App Setting will become specific to that deployment slot.

 

15. Are there any limitations or challenges that you have faced with Deployment slots in App Service?

As all the Deployment slots (including the Production Slots) share the same infrastructure provdied by the App Service Plan, it is not recommended to perform load testing on staging slots.

 

16. What are the different types of IP addresses that are available with Azure app service.

App service supports 2 types of IP addresses.

·       Inbound IP address – It is used to configure A record for DNS configuration.

·       Outbound IP addresses – App Service has multiple Outbound IP Addresses. These are used when app service makes external calls to any other service like databases, web APIs etc. In case if your SQL Database only allows access from IP addresses that are whitelisting in SQL Server, then we need to white list all the outbound IP addresses of app service.

17. What is Azure App Service?

Azure App Service is the service by Azure for hosting the web application, mobile application, REST API, or any backed code base. This service gives you the freedom to choose any programming language for your application like JAVA, python, .net, or any other.

App Service also provides extra features like security, load balancing, autoscaling, and automated management. You can also take advantage of its DevOps capabilities, such as continuous deployment from Azure DevOps, GitHub, Docker Hub, and other sources, package management, staging environments.

 

18. Assume that you are working as the Azure developer in the project team of Azurelib.com. You have been asked to share the reason why you want to deploy the newly developed application on the Azure app service. What would be your argument to support this?

 

I would support Azure app service usage due to the following reasons:

It supports a large of programming languages ranging from JAVA to .NET to python. You can schedule the batch job written in the scripting language as well.

It supports both Windows and Linux based applications.

As Microsoft Azure manages the infrastructure hence you don’t need to worry about infrastructure management.

Scaling up and down is a common feature with most cloud services. Hence you can leverage that as well here.

Dedicated tools in Visual Studio and Visual Studio Code streamline the work of creating, deploying, and debugging.

 

19. What is Azure App Service Plan?

Azure App Service (Web Apps, API Apps, or Mobile Apps), runs inside the App Service plan. It defines how many and what kind of compute resources will be available for a web app to run. One or more apps can be configured to run on the same computing resources i.e. within the same app service plan.

The location of the compute resource will be in line with the region in which you have created an App Service plan. For example, if your app service plan is created in the EastUS region then compute resources will be allocated in that region. Lis of the parameters which you will select in general while creating the app service plan are as follows:

 

·       Operating System (Windows, Linux)

·       Region (West US, East US, etc.)

·       Number of VM instances

·       Size of VM instances (Small, Medium, Large)

·       Pricing tier (Free, Shared, Basic, Standard, Premium, PremiumV2, PremiumV3, Isolated)

 

20. Assume that you have been working as Azure Administrator for Azurelib.com. You have been asked to choose the app service plan tier for the newly developed web app which has a very low number of users and doesn’t contain any critical or confidential information at all. Which Pricing tier you will choose and why?

I will choose the Free or shared pricing tier. The reason is that the application will be going to have very little traffic hence no scaling is needed. Also, it doesn’t contain critical information about the organization hence it would be safe to deploy in the shared environment.

 

21. Assume that you have been working as Azure Administrator for Azurelib.com. You have been asked to choose the app service plan tier for the newly developed web app which has a dynamic number of users (sometimes high, sometimes low) and contains critical and confidential information related to business. Which Pricing tier you will choose and why?

I will choose the Isolated pricing tier. The reason is that this tier runs dedicated Azure VMs on dedicated Azure Virtual Networks. It provides network isolation on top of compute isolation to your apps. It provides the maximum scale-out capabilities.

 

22. Assume that you have been working as Azure Administrator for Azurelib.com. You have been asked to choose the app service plan tier for the newly developed web app which has a very low number of users and doesn’t contain any critical or confidential information at all. Which Pricing tier you will choose and why?

I will choose the Free or shared pricing tier. The reason is that the application will be going to have very little traffic hence no scaling is needed. Also, it doesn’t contain critical information about the organization hence it would be safe to deploy in the shared environment.

 

23. Assume that you have been working as Azure Administrator for Azurelib.com. You have been asked to choose the app service plan tier for the newly developed web app which has a dynamic number of users (sometimes high, sometimes low) and contains critical and confidential information related to business. Which Pricing tier you will choose and why?

I will choose the Isolated pricing tier. The reason is that this tier runs dedicated Azure VMs on dedicated Azure Virtual Networks. It provides network isolation on top of compute isolation to your apps. It provides the maximum scale-out capabilities.

 

24. What do you mean by Azure App Service Environment?

Azure App Service Environment is an Azure App Service feature that provides a fully isolated and dedicated environment for securely running App Service apps at a high scale. Besides these, it also supports Windows web apps, Linux web apps, Docker containers, Mobile apps.

 

25. What are the three different ways to create Azure Service Environment (ASE)?

While creating an App Service plan. This method creates the ASE and the App Service plan in one step.

As a standalone action. This method creates a standalone ASE, which is an ASE with nothing in it. This method is a more advanced process to create an ASE. You use it to create an ASE with an ILB.

From an Azure Resource Manager template. This method is for advanced users. For more information.

 

26. How would you make the automated CI/CD integration for the python or PHP based application deployed as the Azure App service app?

Git integration or repository integration needs to be done for auto CI/CD. You need to go to the Azure portal and then go to the Azure app service. Then on the left-hand side, you will see the deployment center. In the deployment, center click on the setting and select the appropriate repository in the source.

Azure portal->App Service -> Deployment Center->Settings -> Source

 

27. What are the WebJobs in the Azure?

WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app. There is no additional cost to use WebJobs.

You can use the Azure WebJobs SDK with WebJobs to simplify many programming tasks. WebJobs is not yet supported for App Service on Linux.

 

28. What is the Azure WebJobs SDK?

 

The Azure WebJobs SDK is a framework that simplifies the task of writing background processing code that runs in Azure WebJobs. It includes a declarative binding and trigger system that works with Azure Storage Blobs, Queues, and Tables as well as Service Bus. The binding system makes it incredibly easy to write code that reads or writes Azure Storage objects.

 

The trigger system automatically invokes a function in your code whenever any new data is received in a queue or blob. The SDK also provides an integrated Dashboard experience in the Azure management portal, with rich monitoring and diagnostics information for your WebJob runs.

 

29. What is the difference between the Azure App service and Azure web apps?

Azure app service is the managed service provided the Microsoft Azure to deploy your web, mobile, REST-API based application. Azure web app is the web application deployed in the Azure App service.

 

30. How you can add the automatic authentication provided by Azure with App service?

Go to portal-> Go to app service management page-> Authentication-> Add identity provider-> Select Microsoft as the Identity provider -> Click Add.

This will authenticate the user automatically with the Azure Active Directory.

 

31. Why you will use the Azure CDN service with your Azure web app?

Azure CDN stands for the Azure content delivery network. It is designed in such a way that it will deliver text, audio, video images to the customer in a much faster way by delivering the content from the server nearest to the user. It will increase the site speed and availability.

 

32. Assume that you work as Azure Architect with AzureLib.com. You feel that the regular changes in the application could introduce bugs or may break something. Hence to avoid risk you wanted to enable the auto backup of the application. How can you do that?

I would go to the app service manage page. Click on the Backups -> Backup is not configured click on this and configure the backup with location and intervals.

 

33. What would be the Powershell command to create a windows based app service plan?

az appservice plan create -g MyResourceGroup -n MyPlan \ --hyper-v --sku P1V3

 

34. What would be the Powershell command to create a Linux based app service plan?

az appservice plan create -g MyResourceGroup -n MyPlan \

--is-linux --number-of-workers 4 --sku S1

35. What is the difference between the continuous and triggered WebJobs in the Azure App service?

The following table describes the differences between continuous and triggered WebJobs.

 

Continuous

Triggered

Starts immediately when the WebJob is created. To keep the job from ending, the program or script typically does its work inside an endless loop. If the job does end, you can restart it. Typically used with WebJobs SDK.

Starts only when triggered manually or on a schedule.

Runs on all instances that the web app runs on. You can optionally restrict the WebJob to a single instance.

Runs on a single instance that Azure selects for load balancing.

Supports remote debugging.

Doesn’t support remote debugging.

Code is deployed under \site\wwwroot\app_data\Jobs\Continuous.

Code is deployed under \site\wwwroot\app_data\Jobs\Triggered.

                                                     

                                        

No comments:

Post a Comment