chsakell / azure-functions-proxies

Azure Functions Proxies in Action

Home Page:https://wp.me/p3mRWu-1wp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Function Proxies

Blob post - Azure Functions Proxies in Action

Azure Functions Proxies

  • 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

  1. Install .NET Core 2.2 SDK
  2. Install Azure Functions Core Tools V2
    • npm i -g azure-functions-core-tools --unsafe-perm true
  3. 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
  4. 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
  5. 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
  6. Right click the solution, select Set Startup Projects and configure as follow:
    • Configure Startup projects

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

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

License

Code released under the MIT license.

About

Azure Functions Proxies in Action

https://wp.me/p3mRWu-1wp

License:MIT License


Languages

Language:C# 100.0%