How to deploy mountebank in Azure? - azure

just worked through the basic mountebank tutorial. worked great!! next step is to deploy mountebank in Azure.
i am wondering if anyone has successfully deployed mountebank into azure? which PAAS/SAAS did you use?

For calling your mountebank external API or for Integration testing you can make use of Azure functions or Azure APIM Mock API policies.
There’s no inbuilt Azure service or Azure marketplace image that supports Mountebank as that is a third-party package. But you can make use of Azure Functions to trigger the Mountebank endpoint or make use of Mock API in Azure API management and create different Inbound and Outbound policies for your mock test.
Azure Functions :- I referred this blog for Integrating Mouneblank with Azure functions:-
https://devkimchi.com/2019/08/07/azure-functions-integration-testing-with-mountebank/
Git-hub repo of same blog - https://github.com/devkimchi/Mountebank-Integration-Testing
I cloned the repo in my Azure Repo and updated the code runtime to .Net 6.0 and updated all the dependencies to their latest supported nuget versions as the github repo is using deprecated version.
I ran this repo via a pipeline in Azure Devops to deploy this project to the Function app.
After running the pipeline, the Build and Deployment to Azure function was successful:
Now, this function app is integrated with your Mounteblank API
You can make use of Function app proxies to configure your Mounteblank API according to your requirements.
You can make use of Azure API management Service.
I deployed one Azure APIM service and created one API to initiate HTTP request to Mounteblank API running on port 2525 locally.
References:
https://devkimchi.com/2019/08/07/azure-functions-integration-testing-with-mountebank/ by [Justin Yoo]
https://learn.microsoft.com/en-us/azure/api-management/mock-api-responses?tabs=azure-portal

Related

Develop on Azure DevOps and deploy to another cloud service

We have been developing an Angular application on Azure DevOps. My company wants to have the app running on another cloud service. Can anyone tell me: Can we create a pipeline that will deploy the production version of our application from build in Azure to this other cloud service? What are the pitfalls or potential obstacles? Is anyone doing it already that could speak to it from your experience? Thanks in advance.
If you want to deploy Angular application on Azure DevOps to Azure App Service via Azure Pipelines, you could follow below steps.
Create a build pipeline, add a npm task to install the npm packages required by the Angular application
use npm task to build the application and produce the assets to be published on the web server
Add a Publish Build Artifact task that generates the artifacts which will be provided later on as an input to release definition
The last step is to add a CD pipeline which will deploy the artifacts created by the build to the Azure Web App by using this Azure App Service Deploy task. See this tutorial for details.
If want to deploy to other cloud service, this doc provides the system-defined tasks, you could review it to find if there are existing available tasks. If not, you may need to develop a custom pipelines task extension or find if there are existing extensions in the Azure DevOps Marketplace.

How to Deploy a React App(code present on github) to Azure WebApp using jenkins and TerraForm

I basically want to deploy(CICD) a React App(simple create-react-app) present in GitHub to Azure Webapp using Jenkins and TerraForm. I am in search of step by step process to do this.
I can't use the Azure DevOps platform since it is restricted in the organization I work.
Here is a tutorial for Deploy to Azure App Service with Jenkins and the Azure CLI might help.
But considering your React App already present in GitHub, there is a easier choice to deploy, which is using Git Action.
Create an App Service on portal.
Navigate to Deployment Center, better to use the Preview version.
Configure the CI/CD:
Go to your GitHub and see the Action logs, which is more clear than portal:

Azure App Services, DevOps and Web API deployment

I am learning Azure. If I developed a Web API project. How exactly is deployed in real-time to Azure App Service? I do saw lot of video where APIs are deployed to Azure App Services. is the way we do in real development? or We use ARM templates? usually,the portal login details are not shared to developer? Once deploy to Azure App Service, How we use Azure DevOps to make CI/CD for the same. Please help/guide with any article/video/tutorial.
or Simply guide how we plan any web app or API from development to Production deployment using Azure App Services and Azure DevOps?
Thanks in Advance for any help.
First thing you need to do is maintain GitHub repository.Push all your code inside it !
Now create a web app in Azure under App service !
Once it is deployed you have to deploy the code to it from GitHub.
There are 2 ways to do it from GitHub to maintain CI Cd pipelines.
One way is you use GitHub actions under deployment center to deploy it or other way is create azure DevOps free account and Import GitHub repository there and then push it in Web App.
Both have some end results.
Now about ci cd pipelines anytime you will make changes to code on respective chosen way the code can be seen working in live app.
This all is concept of ci cd pipelines.

Deploying a Java Azure Function to Azure Functions Runtime (On Premises)

So I am using Azure Functions at work and thought I would have a play and install them on my own server. I have successfully installed Azure Functions Runtime 2 (preview).
I have then followed the Java tutorial to create an Azure Function :
https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven
How do I then deploy this function to my own Azure functions server?
In the guide it says about using :
az login
mvn azure-functions:deploy
Unfortunately, mvn azure-functions:deploy is to deploy functions to Azure site as az login is required before deployment, which doesn't support deployment to on-premises Runtime portal.
But the key point is, the on-premises Runtime is obsolete(one year behind the latest bits), new project probably can't work with it even if we find how to publish.
Since v2 becomes GA, it is recommended to leverage custom image for usages out of Azure box.
Update
Missed one point. As AF Team answered in the issue you post, no Java Image for now so the usage of Azure Java Function outside Azure is blocked unless we could figure out creating the image on our own.

How to deploy Custom Azure Api App using PowerShell?

We have developed a custom API App connector and have created Logic App using this. We are able to deploy the Custom Api App using Visual Studio but unable to find a way to deploy it using PowerShell.
We have created a deployable zip package for the Api App (similar to Web Apps) but not sure how to publish/deploy it.
Any help is appreciated.
Api Apps also need to be deployed with an App Service Plan, Gateway Host, Gateway, and an API App Host.
See this example template.
For more information read here:
https://azure.microsoft.com/en-us/documentation/articles/app-service-logic-arm-with-api-app-provision/

Resources