Azure Function Proxies
Azure Functions Proxies in Action
Blob post -- Learn how to modify requests and responses
- Use a unified endpoint for your microservice architecture
- Mock your API responses during development
- Quickly switch between versions of your APIs
- Development environment setup
- Production proxy and application settings configuration
Installation instructions
- Install .NET Core 2.2 SDK
- Install Azure Functions Core Tools V2
npm i -g azure-functions-core-tools --unsafe-perm true
- Set the Debug properties of
Catalog.API
:- Launch: Executable
- Executable: dotnet.exe
- Application arguments: %userprofile%\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.dll host start –pause-on-error –port 1072
- Set the Debug properties of
Backet.API
:- Launch: Executable
- Executable: dotnet.exe
- Application arguments: %userprofile%\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.dll host start –pause-on-error –port 1073
- Set the Debug properties of
Ordering.API
:- Launch: Executable
- Executable: dotnet.exe
- Application arguments: %userprofile%\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.dll host start –pause-on-error –port 1074
- Right click the solution, select
Set Startup Projects
and configure as follow:
In case
azure-functions-core-tools
package has installed in different folder, update application arguments accordingly
Testing
Load this Postman-samples collection on Postman and test the Proxy App
Follow chsakell's Blog
Microsoft Web Application Development | |||