Azure App Service is a cloud service that allows you to rapidly and easily construct enterprise-ready mobile and web apps for any device or platform, as well as deploy them on a reliable and scalable cloud infrastructure. With the help of our blog, you can learn how to use the Azure App Service.
Azure app services are Platform as a Service (Paas) model in the Azure cloud platform that enables you to focus on your business logic while Azure takes care of the infrastructure to run and scale your apps. It is a fully managed to compute platform that is optimized for hosting websites and web applications.
Azure’s most of the PaaS front end is handled by Azure App Service, a bundle of tools and services that support mobile, web, and API integrations. Azure App Service is an integrated service that enables you to create web and mobile apps for any platform or device. It integrates easily with SaaS solutions (Office 365, Dynamics CRM, Salesforce, Twilio, etc), Easily connect with on-premises applications (SAP, Oracle, Siebel, etc), and easily automate businesses processes while meeting stringent security, reliability, and scalability needs.
If you would like to Enrich your career with a Microsoft Azure certified professional, then visit Mindmajix - A Global online training platform: “Azure Training” Course. This course will help you to achieve excellence in this domain.
Azure app service includes 4 application development and hosting environment.
1. Web App
2. Mobile App
3. Logic Apps
4. API Apps
The web app was previously known as azure websites. Mobile apps were previously known as azure mobile services. Azure combines them and the introduced app serves as a single platform for building multi-device multi-platform apps. The new Logic App introduces a serverless architecture for various services to be integrated into an app without writing codes and The API App has built-in connectors .that makes it easy to build logic workflows. It integrates with popular SaaS and on-premises applications like Office 365, SalesForce, Dynamics, OneDrive, Box, DropBox, Twilio, Twitter, Facebook, Marketo, and more. Microsoft has connectors for these services or if you wish you can build your own connectors.
Related Article: Overview of Azure Logic Apps
Azure’s primary motive behind the inclusion of all these into app service is to introduce a flexible pay-as-you-go model and enhanced workflow support.
Apps are automatically managed by app services and run in isolated VMs. App Service has an auto-scaling feature so when your app usage increases app service will automatically add resources so that there will be no downtime or latency.
Azure App service runs on the top of Microsoft’s PaaS offering. Applications can be containerized and packaged to be scalable and platform-independent.
Microsoft provides built-in connectors, Code integrations, CDN, and default azurewebsites.net domain for all app service applications. App service applications and all resource manager objects for your apps like database, application insights can be grouped into a resource manager and deployed into an azure region near to your customer base.
App service provides CDN for cross geographic delivery of your application and automatic backup, application firewall, and health and performance monitoring tool. It accepts SSL for security.
Depending on plan and pricing app service supports automatic or manual scaling, container isolation for high security.
Microsoft Azure Interview Questions
App service features no upfront cost and you only billed for a whole minute (Extra seconds are free). The app service has six billing plans.
1. Free
2. Shared
3. Basic
4.Standard
5. Premium
6. Isolated
Free, Shared (preview) and Basic plans provide different options to test your apps within your budget. Standard and Premium plans are for production workloads and run on dedicated Virtual Machine instances. Each instance can support multiple applications and domains. The Isolated plan hosts your apps in a private, dedicated Azure environment and is ideal for apps that require secure connections with your on-premises network or additional performance and scale.
There are two types of SSL connections supported by the Azure app service.
1. Server Name Indication (SNI) SSL Connections
2. IP Address SSL Connections.
SNI-based SSL works on modern browsers while IP-based SSL works on all browsers.
SNI-based SSL connection is free.
Standard and Premium service plans include the right to use one IP SSL at no additional charge.
Free and shared service plans do not support SSL.
Customers can purchase custom domains and assign them to their Azure services like Web Apps or Azure Virtual machines. Custom domains can be managed within the Azure portal. The top-level domains that will be available are com, net, co.uk, org, nl, in, biz, org.uk and co.in.
If your web app communicates to a database that is located in a different region or your app resource group dependent on another DB server in another Azure region you may face below problems.
1. Latency in communication between database and application.
2. More data charge for outbound traffic.
To avoid such things it is recommended to use a resource group comprising your app and database in the same region unless you have no specific business need.
If your app uses client libraries, which have not implemented the reuse of TCP connection then you might face outbound TCP socket exhaust. In such a case, you must use HTTP-keep-alive.
With node js apps you must use http-keep-alive by using npm module specific for this in your code.
It is important to set up an automatic backup of your application in the cloud. Using the right configuration in storage and database, you can enable automatic scheduled backup for your application.
Although Azure provides default security and policies, you should use a web app firewall to protect user data and application data. In-app service, setting you should configure inbound and outbound IP for access control.
Previously known as azure websites, App service for Web Apps now supported all features with new features like application insights and auto-scaling, auto back up and new programming languages.
* Code support: ASP.Net, Java, Python, Node.JS, PHP
* Built-in auto-scaling (scale up and scale down)
* Deployment slots: Local git, GitHub, Visual Studio team services, one drive, FTP, bitbucket
* Hybrid setup with VPN support to on-premises servers.
* Orchestrate staged deployment and supports in a test environment.
* Web Job support for running tasks in the background.
Web apps come with default azurewebsites.net domain but you can configure your own domain in the portal.
Web apps can use Azure storage and database. Web apps support both static and dynamic sites.
App service for mobile apps features mobile app, notification hub, mobile engagement, application insights and a 3rd party vendor provided AI Mobile acceleration service.
With mobile apps, you can create a highly scalable backend for your mobile app and maintain high user transactions. Notification Hub allows you to create smart and engaging push notifications tailored for different customers and mobile engagement. It is a SaaS-based, data-driven user engagement platform. It enables real-time fine-grain user segmentation, app user analytics, and contextually-aware smart push notifications and in-app messaging across all connected devices.
Process big data and events collected from app users and behaviors. generate analytics to drive more usage and application improvements.
Works with native push notification and sends a valuable and interesting notification to increase app engagement.
Open API integration lets you combine data from CRM and CMS.
Azure takes customer data seriously and does not sell to any third party.
Mobile app in azure app service has the following features:
Logic Apps allow developers to design workflows that articulate intent via a trigger and series of steps, each invoking an App Service API app whilst securely taking care of authentication and best practices like a durable execution.
Logic Apps can be designed end-to-end in the browser. Start with a trigger - from a simple schedule to whenever a tweet appears about your company. Then orchestrate any number of actions using the rich gallery of connectors. Logic Apps are part of the App Service suite and designed to work with API apps; you can easily create your own API app to use as a connector.
Microsoft Azure App Service API Apps offers secure and flexible development, deployment, and scaling options for any sized RESTful API application.
Easily create and consume API and build custom API for your data and application.
PHP is a popular server-side web scripting language and can be used to build a dynamic web application. Azure supports PHP and you can create a web app in PHP in-app service. In this tutorial, we are going to build a web app using PHP and deploy it to the Azure app service using Git.
1. Install PHP
2. Install Git
Create a git folder and initialize it with README.
Create a PHP file in notepad and save it as index.php
Then run the PHP built-in server to run the file locally: php -S localhost:8080
Go to your Azure portal and go to Web+Mobile then create a web app.
In the next step, create your app.
1. Enter application name
2. Choose an existing subscription. If you do not have any subscription, you have to sign up for one.
3. Create a resource group for your app or you can choose an existing resource group.
4. Choose the OS you want to use.
5. Select your app service plan
6. Option to use application insights.
Then click the create button. It will start the deployment.
In this way, you can use the graphical user interface and configure the run time and deployment model.
1. open cloud shell.
2. create a myAppservicePlan with az web app create command.
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name --runtime "PHP|7.0" --deployment-local-git
Create a user for web app
az webapp deployment user set --user-name --password
Local git is configured with url of 'https://@.scm.azurewebsites.net/.git'
{
"availabilityState": "Normal",
"clientAffinityEnabled": true,
"clientCertEnabled": false,
"cloningInfo": null,
"containerSize": 0,
"dailyMemoryTimeQuota": 0,
"defaultHostName": ".azurewebsites.net",
"deploymentLocalGitUrl": "https://@.scm.azurewebsites.net/.git",
"enabled": true,
< JSON data removed for brevity. >
}
It will give a JSON result that now your web app has been created and set to PHP runtime with deployment method is local Git.
Now add azure remote to git so you can push your source to app source code.
git remote add azure
Push your master branch to an azure app. Use the following command
git push azure master
You will get a result like this
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 352 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id '25f18051e9'.
remote: Generating deployment script.
remote: Running deployment command...
remote: Handling Basic Web Site deployment.
remote: Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'
remote: Copying file: '.gitignore'
remote: Copying file: 'LICENSE'
remote: Copying file: 'README.md'
remote: Copying file: 'index.php'
remote: Ignoring: .git
remote: Finished successfully.
remote: Running post deployment command(s)...
remote: Deployment successful.
To https://.scm.azurewebsites.net/.git
cc39b1e..25f1805 master -> master
After you see deployment successful, you can browse your app with the URL.
You can change the local copy of your source code and redeploy it to Azure using git. However, before you redeploy it is suggested that you run your app locally and check for issues.
Change the index.php and save it.
echo "Hello Azure!";
Open terminal and run git commit and git push command to Azure.
git commit -am "updated output"
git push azure master
Again, you will see the result and after successful deployment, you can browse your app in a browser.
Azure Related Course |
Azure Solutions Architect Certification Training |
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
Azure Training | Dec 14 to Dec 29 | View Details |
Azure Training | Dec 17 to Jan 01 | View Details |
Azure Training | Dec 21 to Jan 05 | View Details |
Azure Training | Dec 24 to Jan 08 | View Details |
Anji Velagana is working as a Digital Marketing Analyst and Content Contributor for Mindmajix. He writes about various platforms like Servicenow, Business analysis, Performance testing, Mulesoft, Oracle Exadata, Azure, and few other courses. Contact him via anjivelagana@gmail.com and LinkedIn.