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

Migrate and modernize your applications on Azure – Part 2.0 (Proxy Function)

achraf by achraf
April 3, 2021
in Azure, Blog, Cloud
2 min read
0
Migrate and modernize your applications on Azure
0
SHARES
895
VIEWS
Share on FacebookShare on Twitter

What are Azure Function Proxies?

Azure Function Proxy are quite similar to Azure API management but they are not the same ,they allow us to define a single API surface for multiple function apps.

Azure Function Proxy is a unified API layer (façade) on top of Azure functions hosted inside the Application Service container. A proxy exists as a set of additional HTTP endpoints in front of functions based apps. One important note, proxy calls are billed the same way as Azure Functions. Because proxy is essentially another function, that is pre-warmed and always ready to receive requests.
Now any function app can define an endpoint that serves as a Reverse Proxy for another API. The endpoint can be a function app or it can be anything else.

But Why we need proxy Function ?

In a high load enterprise solution we use APi Management but since we are working with very simple projects and for the best practice for medium and low load solution the best choice is to use azure Functions Proxy .
Azure Function Proxies come to the rescue by providing a unified URI (Uniform Resource Identifier) which the client can actually consume. In the meantime, we can abstract all of the different function apps or other APIs and it would also enable us to build our API at a faster rate.

Creating Our proxy

First of all we need to create a new azure function from the portal and after it’s created we need to :

  1. Navigate to the function app in the portal.
  2. Click New proxy.
  3. Provide a Name for your proxy, such as “HiProxy”.
  4. Set the Route template to /api/Task.
  5. In Backend URL, enter the URL for the HttpTrigger you created on the backend app.
    Click Create.
  6. Copy the Proxy URL, and then use Postman or the HTTP client of your choosing, and send a GET request that URL.

In our case this is what the proxy will look like :

{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"/api/Task": {
"matchCondition": {
"route": "/api/Task",
"methods": [
"POST"
]
},
"backendUri": "http://proxyfunction01.azurewebsites.net/api/CreateTodo"
},

"Collection redirect": {
"matchCondition": {
"route": "/api/Task",
"methods": [
"GET",
"OPTIONS"
]
},
"backendUri": "https://to-do-api.azurewebsites.net/api/Task"
},

"Item redirect": {
"matchCondition": {
"route": "/api/Task/{id}",
"methods": [
"GET",
"OPTIONS",
"DELETE",
"PUT"
]
},
"backendUri": "https://to-do-api.azurewebsites.net/api/Task/{id}"
}


}
}

In order to understand all the steps you can enjoy the below video

 

ShareTweet
Previous Post

Migrate and modernize your applications on Azure – Part 2.0 (Azure Functions)

Next Post

Auto Post and Schedule Tweets & Linkedin using Azure Logic Apps

Related Posts

Configuring GitHub Advanced Security for Azure DevOps: A Must-Have in Today’s DevOps Landscape
Azure

Configuring GitHub Advanced Security for Azure DevOps: A Must-Have in Today’s DevOps Landscape

September 28, 2023
28
The Significance of Azure DevSecOps: Best Practices for Securing Your Pipelines
Azure

The Significance of Azure DevSecOps: Best Practices for Securing Your Pipelines

August 17, 2023
131
Navigating the Alphabet Soup: Unraveling Microsoft Acronyms
Azure

Navigating the Alphabet Soup: Unraveling Microsoft Acronyms

July 16, 2023
54
Streamlining Website Editing on My Local Machine with Docker Compose and WordPress
Blog

Streamlining Website Editing on My Local Machine with Docker Compose and WordPress

July 1, 2023
40
Block the default URL assigned to the azure web app using azure application gateway
Azure

Block the default URL assigned to the azure web app using azure application gateway

May 31, 2023
142
Block the default URL assigned to the azure web app
Blog

Block the default URL assigned to the azure web app

May 14, 2023
484
Next Post
Auto Post and Schedule Tweets & Linkedin using Azure Logic Apps

Auto Post and Schedule Tweets & Linkedin using Azure Logic Apps

Leave a Reply Cancel reply

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

Terraform

Certifications

Microsoft certified trainer (MCT)

Recommended

My book collection for 2020-2021

My book collection for 2020-2021

December 28, 2020
399
Animations with Lottie in Xamarin Forms

Animations with Lottie in Xamarin Forms

April 26, 2020
903
Azure Automation :  How to create PowerShell Runbook

Azure Automation : How to create PowerShell Runbook

February 4, 2021
728
Deploy azure function from Docker Hub CI/CD

Deploy azure function from Docker Hub CI/CD

April 27, 2020
263

How To host an Angular app on Azure

September 29, 2020
1.2k
My Trip to Turkey

My Trip to Turkey

February 5, 2022
250
Facebook Twitter LinkedIn Youtube
Configuring GitHub Advanced Security for Azure DevOps: A Must-Have in Today’s DevOps Landscape

Configuring GitHub Advanced Security for Azure DevOps: A Must-Have in Today’s DevOps Landscape

September 28, 2023
The Significance of Azure DevSecOps: Best Practices for Securing Your Pipelines

The Significance of Azure DevSecOps: Best Practices for Securing Your Pipelines

August 17, 2023
Navigating the Alphabet Soup: Unraveling Microsoft Acronyms

Navigating the Alphabet Soup: Unraveling Microsoft Acronyms

July 16, 2023

Categories

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