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

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
1.2k
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

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
231
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
137
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
502
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

Migrate and modernize your applications on Azure – Part –1 (Migrate Database)

Migrate and modernize your applications on Azure – Part –1 (Migrate Database)

April 3, 2021
319
Xamarin.forms,Blazor and Web API

Xamarin.forms,Blazor and Web API

December 3, 2020
1.2k
Dapr – Service Invocation Part 1/2

Dapr – Service Invocation Part 1/2

August 17, 2021
818
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
376
Auto Post and Schedule Tweets & Linkedin using Azure Logic Apps

Auto Post and Schedule Tweets & Linkedin using Azure Logic Apps

April 14, 2021
613
Block the default URL assigned to the azure web app using azure application gateway

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

May 31, 2023
576
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