Giter VIP home page Giter VIP logo

azure-apim-on-container-apps's Introduction

Azure API Management's Self-Hosted Gateway on Azure Container Apps

Playground to run Azure API Management's self-hosted gateway on Azure Container Apps.

πŸ“š For official documentation, refer to this Microsoft Learn documentation page.

Scenario πŸ—ΊοΈ

Scenario

See it in action! πŸš€

Deploying the sample

  1. Deploy the Azure API Management with Bicep, for example:
az deployment group create --resource-group <rg-name> --template-file .\deploy\api-gateway.bicep --parameters resourceNamePrefix='apim-container-apps-sandbox'
  1. Generate a gateway token in the "Deployment" blade of your self-hosted gateway
  2. Deploy the application to Azure Container Apps with Bicep, for example:
az deployment group create --resource-group <rg-name> --template-file .\deploy\app.bicep --parameters resourceNamePrefix='apim-container-apps-sandbox' apiManagementName='<apim-name>' selfHostedGatewayToken='<token>'

Behind the scenes, the application is deployed to Azure Container Apps with the following steps: Scenario

Getting bacon through the API Gateway on Azure Container Apps

  1. Create a new subscription in Azure API Management
  2. Copy your subscription key from the Azure portal
  3. Interact with the API Gateway
curl -i http://apim-container-apps-api-gateway.ashystone-8df9d4e5.westeurope.azurecontainerapps.io/bacon/api/v1/bacon -H "X-API-Key: <subscription-key>"
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
date: Fri, 22 Apr 2022 09:14:57 GMT
server: Kestrel
transfer-encoding: chunked

["Honey Barbecue Flavored Bacon","Infamous Black Pepper Bacon","Italian Bacon","Raspberry Chipotle","Pumpkin Pie Spiced"]t

Limitations

  • Workloads are currently exposed with HTTP, instead of HTTPS

azure-apim-on-container-apps's People

Contributors

tomkerkhove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.