Azure App Services or Azure Web App:
- Deploying your web application on azure app service is PAAS
- Azure Web App is a type of Azure app service.
- To customize deployments, you can create a file in the root of the repository that is named .deployment. You can also use the run folder of Webjobs to generate the content. for example: let say you want to run a script file that will generate some static files which will be used in app. so you need to create this static files before your app actually start accepting any traffic. In that case you have to mention this static file creation step in .deployment file or you can use the run folder of webjobs.
- Benefits we get from PAAS(Platform as a service)
- No need to maintain underlying infrastructure like VM etc
- It has features like auto scaling
- Security
- Devops capabilities like continuous deployment.
- App Service plan: When we deploy our application on Azure app service we take use of another resource that is app service plan.
- Free
- Shared
- Basic
- Standard- Auto scale starts from Standard
- Premium
- Isolated - Network isolation is available.
- App service linux
- Connection String: Instead of getting connecting string from web.config file in .net projects we have connection string in web app as well.
- Remote Debugging: You can choose remote debugging and visual studio version to do debugging.
- Authentication: We can enable authentication using multiple ready providers
- AAD (Azure Active directory)
- Microsoft Account
- Twittter
- Backups: you can take backup of your application as well but it is possible in case the app service plan is standard or higher.
- Diagnostic feature: We can get all the application logging.
- Web server logging: Raw HTML request data.
- Application logging: log messages generated by application logging. eg
- System.diagnositc.trace.traceinformatoin("this is logging");
- Failed request Tracking: Detailed traced data on failed requests .
- Deployment logging:
- SSL: We can use SSL (Secure service layer) for more sercurity. We have concepts of Binding here
- CORS: We can enable CORS for application hosted on our web app. eg let say we have api(ApplicationA) hosted on azure web app and we are trying to fetch its data from another app (ApplicationB) hosted on different domain. Then we will see CORS issue but if we give domain address of ApplicationB on CORS section of ApplicationA which is a web app issue will be solved.
- Deployment Slots: production and staging slot. Both prouduction and stagning slot have different URL and thus can work in parallel.
- Area1 - config
- Area2 - --docker-container-logging
- Area3 -> Webapp
- Area4-> tail
- Steps to deploy webapp
- Create a resource group
- Create a service plan
- Create a web App
- Deploy the application from
- Visual studio or
- Github or
- set the docker image which will be deployed as a container.
- Path
- If GITHUB, Give the repository URL for Github
- If docker, give docker container path
- (If required) Create a deployment slot
- (If required) Set the DNS name



No comments:
Post a Comment