Deploying Applications in Azure Cloud Service
The article is as an requirement of course SENG 41283 : Distributed and Cloud Computing and link https://science.kln.ac.lk/tunits/setu/index.php/component/sppagebuilder/90-seng-41283
This article shows you how to deploy an application in azure cloud service step by step. Here I have mentioned below the architecture diagram that I have used to set up the example environment.
Before starting deploying part I would like to briefly explain the components I used in azure.
What is a resource group?
Azure resource manager is the deployment and management service for azure. We can group related resources together and it enables you to create, Update and delete resources in azure account.
Creating a resource group…
01. Log in to the Microsoft Azure portal using your Microsoft account username and password. The Dashboard appears in the Azure portal (see Figure 02). You see a unified dashboard for all your assets in Azure. Verify that the dashboard includes all subscriptions to which you currently have access, and all resource groups and associated resources
02. Click Resource groups from the menu of services to access the Resource Groups blade (see Figure 03). You will see all the resource groups in your subscription listed in the blade.
03. Click Add (+) to create a new resource group. The Create Resource Group blade appears (see Figure 04).
04. Provide the following information for the new resource group.
You can create a resource group by filling fields that I have mentioned above.
After creating resources group you will have a resources group like this.
When creating this kind of resources group, It provides a way to monitor, control access and manage all resources as a group. we can remove all the resources easily by removing resources group.
What is active directory?
Azure active Directory (Azure AD) is Microsoft’s cloud-based identity and access management service. Active directory helps you organize your company’s users, computer and more. Active directory can organize hierarchies from which computers belong on which network.
Creating a Active directory…
Default we have an active directory in azure and we can create active directory if you like.
We can see all the users from users tab.
There is only one user. We can easily add another users by clicking “New guest user”.
After filling above fields you can create a new guest user. Here I have mentioned below how it can be seen after creating another user.
This is the profile of newly created user.
What is an App Service?
Azure application services are a pool of services such as load balancing,application perform monitoring, application acceleration, auto scaling etc.
Creating app services.
Here I have created 3 app services.
Service 01 :
this is locally implemented and it is for retrieving data from MySQL database.
Service 02 :
What is Azure database?
Microsoft azure SQL database is managed cloud database provided as part of Microsoft Azure. The cloud database is a database that runs on a cloud computing platform.
We can create azure database for MySQL server by going to your resources group.
Set up configurations
Add MySQL host name, MySQL user name and MySQL password to the service 2 app service.
Adding firewall rules..
After that I am going to create a service for cache data. Here I am going to save my cache until 3600 seconds after last login. If user login again it shows data from cache.
Creating Azure cache for Redis..
The Azure Redis Cache is a high-performance caching service that provides in-memory data store for faster retrieval of data. It is based on the open-source implementation Redis cache. This ensures low latency and high throughput by reducing the need to perform slow I/O operations.
How to create a Azure function…
Azure Functions is an event driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in Azure or third party service as well as on-premises systems. It is a server less compute service that let you run event-triggered code without having to explicitly provision or manage infrastructure.
How to create a Front Door…
Azure Front Door enables you to define, manage, and monitor the global routing for your web traffic by optimizing for best performance and quick global failover for high availability. With Front Door, you can transform your global (multi-region) consumer and enterprise applications into robust, high-performance personalized modern applications, APIs, and content that reaches a global audience with Azure.
Front Door works at Layer 7 or HTTP/HTTPS layer and uses any cast protocol with split TCP and Microsoft’s global network for improving global connectivity. So, per your routing method selection in the configuration, you can ensure that Front Door is routing your client requests to the fastest and most available application backend. An application backend is any Internet-facing service hosted inside or outside of Azure. Front Door provides a range of traffic-routing methods and backend health monitoring options to suit different application needs and automatic failover models. Similar to Traffic Manager, Front Door is resilient to failures, including the failure of an entire Azure region.