Friday 2 September 2022

Azure app service

1.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. 1.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. 1.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 1.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. 1.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. 1.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 1.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. 1.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. 1.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. Advertisements REPORT THIS AD 1.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. Create ASP.NET MVC Web Application. Now, go to Azure portal and log in with your credentials. Click New on Azure Dashboard. Go to Web + Mobile in marketplace section, click Web App Select an app name for your Web app and select resource group (A resource group is a collection of resources, which shares the same lifecycle, permissions, policies) and click create. Within a few seconds, you will see your Web app is ready. For checking whether our app is ready or not, just visit the URL of the Web app, which we have created in the steps, mentioned above. Now, click app Services, click on the app on which we want to deploy your Application. (I have selected the Web app, which we have created in the steps, mentioned above) Click More link and subequently click on Get publish profile. After clicking, you will get your Publish setting file, which is required for publishing the Application. Now, right click on your project in Visual Studio and click Publish. Now, click Import in Publish Web dialog. Click Validate connection for validating the connection. We haven’t added or used the database in this Application. I will show you how to publish the Applications with the database in my next article. Click Nex Click Publish. If everything goes fine, you will see a message, stating that the Web app was published successfully in the output Window of Visual Studio. Now, visit the URL of your Application. Our application is live on the Web, using Microsoft Azure.

No comments:

Post a Comment