Deploying Applications in Azure Cloud Service

Prarthanawickramarathne1
6 min readAug 16, 2020

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.

Figure 01

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

Figure 02

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.

Figure 03

03. Click Add (+) to create a new resource group. The Create Resource Group blade appears (see Figure 04).

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.

Figure 05

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.

Figure 06

We can see all the users from users tab.

Figure 07

There is only one user. We can easily add another users by clicking “New guest user”.

Figure 08

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.

Figure 09

This is the profile of newly created user.

Figure 10

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.

Figure 11

Service 02 :

Figure 12

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.

Figure 13

Set up configurations

Add MySQL host name, MySQL user name and MySQL password to the service 2 app service.

Figure 14

Adding firewall rules..

Figure 15

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.

Figure 16

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.

Figure 17
Figure 18

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.

Figure 19
Figure 20
Figure 21
Figure 22
Figure 23
Figure 24

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.

Figure 25
Figure 26
Figure 27

--

--

Prarthanawickramarathne1

Undergratuate Software Engineering Student in university of Kelaniya