Azure DevOps invoked from an API to lauch a Terraform file

Based on the following design I want to launch a Terraform file and an application code on Azure DevOps when an Azure Functions trigger the Pipeline.

  • Do you know any example to do a normal API REST Call to A. Dev Ops? (using Python or JS)
  • Do you think it is a good strategy to generate an orchestration pipeline to make the workflow of the infrastructure and later on the application code?
  • In order to deploy the application code, how can I modify it using the arguments coming from the API?

architecture design

Know someone who can answer?