Setting up a sample environment in azure cloud platform based on the shared cloud architecture

Vijaya Fernando
4 min readAug 16, 2020

--

The article is as an requirement of course SENG 41283 : Distributed and Cloud Computing (https://science.kln.ac.lk/tunits/setu/index.php/component/sppagebuilder/90-seng-41283)

You can find ARM templates for every azure resource that I have created:
https://github.com/VijayaFernando/SENG-41283-arm-templates

All the resources that I have created, can find under this ARM template:

Lets get started with following example,

architecture diagram

In this example we gonna use following components in Azure.

  • Resources group
  • Active Directory
  • App Services
  • Storage Services
  • Azure Function
  • Azure Front Door
  • Application Insights
  • Azure Database for MySQL server
  • Azure Cache for Redis
  • Storage account
  • Static Web App

Lets setup and create above components.

Resource group

A resource group is a container that holds related resources for an Azure solution. The resource group can include all the resources for the solution, or only those resources that you want to manage as a group.

So lets create resource group,(I am gonna name it as webAssignment)

Create Resource Group

Create following components under this resource group.

Active Directory

Azure Active Directory is Microsoft’s multi-tenant, cloud-based directory and identity management service. For an organization, Azure AD helps employees sign up to multiple services and access them anywhere over the cloud with a single set of login credentials.

Active Directory

App Services

Service-01(Web app)

Github repository:
https://github.com/VijayaFernando/service-01-api

You can find source code for service 01 in this repository.

service-01
Server 01 Configuration

After creating service 01 get the public profile and upload it to git repository secret.

Then create a action on that repository. Then change .yml file values.

.yml

Then according to example we have to create MySQL DB

Service-03(Web app)
Github repository:
https://github.com/VijayaFernando/service-01-api

You can find source code for service 03 in this repository.

service-03
Server 03 Configuration

After creating service 03 get the public profile and upload it to git repository secret.

Then create a action on that repository. Then change .yml file values.

Then according to example we have to create Azure Cache

Service-02(Function app)

service-02
Server 02 Configuration

Then setting up functions.

Monitoring & Reporting

Monitoring & Reporting

Create Application Insights(I have name it as Monitor) and add it to every services.

Monitor Dashboard

Front End

Create Static Web App(I have named it as fronend)

Find source code for front end

Git Repository:
https://github.com/VijayaFernando/frontend

Front End Application

Front Door

Create front door for masking the services urls.

Front Door

Update routing rules from there.

Then create Front Door WAF policy. (I have named it as policies)

You can add custom rules from there.

--

--

Vijaya Fernando
Vijaya Fernando

Written by Vijaya Fernando

Software Engineering Undergraduate at University of Kelaniya

No responses yet