Achraf Ben Alaya
No Result
View All Result
  • Home
  • News
  • Blog
    • blazor
    • c#
    • Cloud
      • Azure
    • docker
    • sql
    • xamarin
    • Dapr
    • Tricks, Tips and Fixes
    • General Tips & Fix
  • AI
  • Cloud
  • Motivation
  • Courses
  • About
    • Resume
    • Privacy Policy
SUBSCRIBE
  • Home
  • News
  • Blog
    • blazor
    • c#
    • Cloud
      • Azure
    • docker
    • sql
    • xamarin
    • Dapr
    • Tricks, Tips and Fixes
    • General Tips & Fix
  • AI
  • Cloud
  • Motivation
  • Courses
  • About
    • Resume
    • Privacy Policy
No Result
View All Result
Achraf Ben Alaya
No Result
View All Result
ADVERTISEMENT
Home Blog Cloud Azure

Migrate and modernize your applications on Azure

A Serie about how to modernize your applications on Azure

achraf by achraf
March 26, 2021
in Azure, Blog, Cloud
4 min read
0
Migrate and modernize your applications on Azure
0
SHARES
563
VIEWS
Share on FacebookShare on Twitter

” If you don’t modernize  and migrate today , you may suffer tomorrow “

Having and old application, database or servers means = the risk of losing everything .

When you decide to modernize your web applications or services and move them to the cloud, you don’t necessarily have to fully rearchitect your apps. Rearchitecting an application by using an advanced approach like microservices isn’t always an option because of cost and time restraints. Depending on the type of application, rearchitecting an app also might not be necessary. To optimize the cost-effectiveness of your organization’s cloud migration strategy, it’s important to consider the needs of your business and the requirements of your apps. You’ll need to determine:

  • Which apps require a transformation or rearchitecting.

  • Which apps need to be only partially modernized.

  • Which apps you can “lift and shift” directly to the cloud.



Today you can choose to migrate, modernize, or build cloud native solutions depending on your business goals and how you assess your application portfolio .

In this new Serie of videos that I will be sharing starting from today , we are going to see step by step how to  migrate and modernize a .Net application .

What will we do ?

 

1- Create the application and migrate to azure  .


In this new Serie we are going to build a simple application that contain a backend (API) and frontend (MVC) ( .NET (5.0) connected to sql server as first step , than we are going to migrate the api ,
the mvc application to azure app service ,we are going later to migrate the database to azure sql as a service and we are going to make sure that the application is working fine .

In the below picture , we are going to have a simple .NET application running on our local IIS with also sql server installed in the same machine .

Migrate to azure
Migrate to azure -01

As you can see in the picture below, we  are planning the first step to how  we  are going to migrate our  application to azure.


At this point ,and if you have finished watching the related videos ,you will see how simply in a few steps we have moved our application to the cloud using azure ,next step will be about modernizing this application .

2- Let’s modernize .



In this second part we are going to see how to modernize our application using azure functions .
With its migration to Azure, it’s time to use the power of azure function so we can  follow a serverless approach that can handle the increase number of creating tasks .

For that we need to create Two azure functions and let me explain why !
We are going to build our first azure function using visual studio that will take care of the “create action” .

So what we need now is ,instead of calling the API , we need our application to call the azure function , so the solution is to replace the api url the azure function ? NO , we need to modernize this ,for that we need to make 
sure that we don’t have different URL’s inside our client application , for that we are going to build an azure function that will play the role of a proxy ,each time a call received ,based on the type of call ‘GET,Post,Put’ it will redirect the call to the right api endpoint that we need to call .

With this feature, you can specify endpoints on your function app that are implemented by another resource. You can use these proxies to break a large API into multiple function apps (as in a microservice architecture), while still presenting a single API surface for clients.
With Azure Functions Proxies, you can modify requests to and responses from the back-end.

Sample of proxy azure function :

{
    "$schema": "http://json.schemastore.org/proxies",
    "proxies": {
        "proxy1": {
            "matchCondition": {
                "methods": [ "GET" ],
                "route": "/api/{test}"
            },
            "backendUri": "https://<AnotherApp>.azurewebsites.net/api/<FunctionName>"
        }
    }
}
Migrate to azure -02
Migrate to azure -02


3-How is the performance of my application and how to identify issues ? (Application Insights ) .



After doing all the above work we can say that we have a nice application on cloud ! YES/NO ?
Well ,it’s nice to have such application on cloud but it’s awesome if we understand what’s happening with our application , do we need to enhance something , is our application performing fine and responding to users requests ? is there any failed requests ?

Well to do this usually you have to write  a lot lines of code ,but now with Application Insights activated we can   monitor your live applications. It will automatically detect performance anomalies, and includes powerful analytics tools to help you diagnose issues and to understand what users actually do with your app. It’s designed to help you continuously improve performance and usability. It works for apps on a wide variety of platforms including .NET, Node.js, Java, and Python hosted on-premises, hybrid, or any public cloud.



Migrate to azure -03
Migrate to azure -03


5- DevOps .

Migrate to azure -04
Migrate to azure -04



DevOps is a set of practices that combines software development and IT operations. It aims to shorten the systems development life cycle and provide continuous delivery with high software quality. DevOps is complementary with Agile software development; several DevOps aspects came from the Agile methodology.

Now we have a nice application running on cloud , it’s time to modernize the work for developers by adding devops .

A developer can run the application on his local computer and it works fine but when he push to the repo , the application may crash and we have an argument about “it worked on my machine !”
for this , we need to make sure that the application is built first on cloud ,and then if the build was fine it will be published else it will report to you back and you don’t have a corrupted application live for users .

For this ,we are going to see  Azure CI/CD pipeline simplifies continuous integration and continuous delivery (CI/CD) in the application development process .
for now , this is what I have prepared for our application  ,in case I’m going to see that I can apply other modernization steps , I will update this document .

Link to the YouTube playlist : LINK


 

ShareTweet
Previous Post

Microsoft Ignite Cloud Skills Challenge March 2021

Next Post

Migrate and modernize your applications on Azure – Part – 00 (creating .Net 5.0 application )

Related Posts

AI

Model Context Protocol (MCP): The Future of AI Integration

April 21, 2025
110
Azure

Step-by-Step Guide: Azure Front Door + Storage Account Static Website + Custom Domain with Terraform

March 11, 2025
230
Network Security & Route Tables – Checking NSGs, route tables, and service endpoints for a targeted VNET or Subnet
Azure

Network Security & Route Tables – Checking NSGs, route tables, and service endpoints for a targeted VNET or Subnet

February 3, 2025
136
Understanding Generative AI and RAG Benefits
AI

Understanding Generative AI and RAG Benefits

January 12, 2025
96
Azure Communication Services Email Sending Simplified: From Setup to Execution and Monitoring
Azure

Azure Communication Services Email Sending Simplified: From Setup to Execution and Monitoring

December 8, 2024
1.6k
PowerShell Automation for Azure Networks: Detailed VNET and Subnet Analysis
Azure

PowerShell Automation for Azure Networks: Detailed VNET and Subnet Analysis

November 2, 2024
501
Next Post
Migrate and modernize your applications on Azure

Migrate and modernize your applications on Azure - Part - 00 (creating .Net 5.0 application )

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Terraform

Certifications

Microsoft certified trainer (MCT)

Recommended

PowerShell Automation for Azure Networks: Detailed VNET and Subnet Analysis

PowerShell Automation for Azure Networks: Detailed VNET and Subnet Analysis

November 2, 2024
501
Azure Static Web App Service

Azure Static Web App Service

September 27, 2020
1.1k
Part 5-A : Using Azure DevOps, Automate Your CI/CD Pipeline and Your Deployments

Part 5-B : Using Azure DevOps, Automate Your CI/CD Pipeline and Your Deployments

April 20, 2023
532
Font Awesome ,Bootstrap and Material Font Icons For Xamarin.Forms

Font Awesome ,Bootstrap and Material Font Icons For Xamarin.Forms

April 26, 2020
895
Finally a stable version of Xamarin.Forms 4.1.0 and announcing Xamarin.Essentials 1.2

Finally a stable version of Xamarin.Forms 4.1.0 and announcing Xamarin.Essentials 1.2

April 21, 2020
685
How to make the most of each day

How to make the most of each day

February 2, 2021
317
Facebook Twitter LinkedIn Youtube

Model Context Protocol (MCP): The Future of AI Integration

April 21, 2025

Step-by-Step Guide: Azure Front Door + Storage Account Static Website + Custom Domain with Terraform

March 11, 2025
Network Security & Route Tables – Checking NSGs, route tables, and service endpoints for a targeted VNET or Subnet

Network Security & Route Tables – Checking NSGs, route tables, and service endpoints for a targeted VNET or Subnet

February 3, 2025

Categories

  • AI (2)
  • Apps (1)
  • Azure (63)
  • blazor (2)
  • Blog (91)
  • c# (7)
  • Cloud (65)
  • Courses (3)
  • Dapr (4)
  • docker (4)
  • Games (1)
  • General Tips & Fix (1)
  • Home (1)
  • Kubernetes Service (AKS) (1)
  • motivation (2)
  • Motivation (3)
  • News (9)
  • Resume (1)
  • sql (4)
  • Terrafrom (1)
  • Tricks, Tips and Fixes (4)
  • xamarin (5)
No Result
View All Result
  • Home
  • News
  • Blog
    • blazor
    • c#
    • Cloud
      • Azure
    • docker
    • sql
    • xamarin
    • Dapr
    • Tricks, Tips and Fixes
    • General Tips & Fix
  • AI
  • Cloud
  • Motivation
  • Courses
  • About
    • Resume
    • Privacy Policy