Code Monkey home page Code Monkey logo

logicapp_containerized's Introduction

PoC: Logic App deployed on Kubernetes

Deploy Logic App Anywhere

Steps to deploy this PoC

  1. GitHub account and repository.
  2. Azure subscription.
  3. A Service Principal with Contributor role at subscription scope. This is the identity that will be used to access the Azure resources from GitHub Action.
    • If you don't have a Service Principal, create one by following these steps.
  4. Deploy Azure Kubernetes Service, your can reuse this project and run GitHub Action called "Depoy AKS Env". Optional, you can also depoy this PoC on:
  5. Create an Azure Storage Account and get Connection String.
az storage account create --name <account-name> --resource-group <storage-resource-group> --location eastus --sku Standard_LRS --kind StorageV2
az storage account show-connection-string --name <account-name> --resource-group <storage-resource-group>
  1. Encode your "Azure Storage Account Connection String" o Create a Secret in Kubernetes called "storage-cs" and key "csc" with your "Azure Storage Account Connection String" .
echo '<<your_azure-storage-account_connectionstring>>' | based64
kubectl create secret generic storage-cs --dry-run=client -o yaml --from-literal=scs='<<your_azure-storage-account_connectionstring>>'
  1. Update YAML files called "logicapp-pod.yaml" with your encoded "Azure Storage Account Connection String" in line 8.
  2. Create Secrets refered in Gihub Actions called "build-push-image.yml"
  3. Build a Push Image to Container Registry (ACR), reuse GitHub Workflow called "build-push-image.yml"
  4. Deploy Logic App on Kubernetes using YAML file called "logicapp-pod.yaml"
  5. Validate deployment, get ip address assignet to deployment and check if logic app is deployed.
kubectl get service -n logicapp
curl -I <<your_ip-address>>
  1. Open Postmand and fetch logic app URL using callback URL

    • Fetch master key from your Azure Blob Storage in container name "azure-webjobs-secrets" and file name "host.json", this key will help in fetching callback URL, Image reference.
    • http://<<your_ip-address>>:80/runtime/webhooks/workflow/api/management/workflows/oapistaless/triggers/manual/listCallbackUrl?api-version=2020-05-01-preview&code=<<your_logicapp-master-key>>
  2. Copy and Paste in your Bowser value from postman results (line 2). This this an example of url value:

    • http://localhost:80/api/{your logic app workflow name}/triggers/manual/invoke?api-version=2020-05-01-preview&sp={value for sp}&sv={value for sv}&sig={value for sig}
    • http://<<your_ip-address>>:80/api/oapistaless/triggers/manual/invoke?api-version=2020-05-01-preview&sp={value for sp}&sv={value for sv}&sig={value for sig}
  3. A random number will be displayed in your browser.

  4. Test and Enjoy PoC

You can learn more about Logic Apps here:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

logicapp_containerized's People

Contributors

oaviles avatar

Watchers

 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.