Introduction
The CI/CD (Continuous Integration/Continuous Deployment) is a star of the modern DevOps environment. It allows you to automate the building, testing, and deployment of applications. With Continuous Integration (CI), systems will trigger the build source and run test suites on each change or code checked in. If the build is passed at all the stages, it automatically deploys to multiple stages such as staging or production environments using a release pipeline. It is referred to as Continuous Delivery (CD). You can add multiple stages of software package validation.
In my previous articles, I explained about creating a build pipeline and release pipeline for Angular apps. The process of creating the build pipeline and release pipeline are nearly the same for all technologies but the tasks are different. In my last article, I explained how to create a release pipeline and host application on Azure App service. In this article, I will explain how to set up a CD pipeline for the Cloud Foundry application.
The Cloud Foundry is an open-source platform for cloud computing developed by VMWare but now it is owned by Pivotal Software. The Cloud Foundry allows you to deploy, scale, and maintain your application faster and secure and easier. It can be referred to as PaaS (Platform as a Service). Most of the cloud such as Azure, IBM, etc. support Cloud foundry applications. It provides a choice of underlying infrastructure including Kubernetes.
In this article, I will demonstrate how to deploy an application to Cloud Foundry using the Azure continuous delivery pipeline. I am taking an example of the IBM Cloud Foundry application.

Prerequisites
- You must set up the Cloud foundry app on the IBM cloud
- You must have an account for Azure DevOps account
- Repo and required branches must be set
- Build pipeline must be created (Refer to my previous article to create a build pipeline)
Installing Cloud Foundry Extension to Azure DevOps
The Cloud Foundry extension allows you to push our application build to any Cloud Foundry platform.
By default, Could the Foundry extension not be available on the Azure DevOps portal? It can be installed from the Azure DevOps marketplace. To install it, click on the "shopping bag" icon in the right corner of the portal and select “Browse marketplace”.

It redirects you to the market place where you can search and install the Cloud Foundry extension.

Click on “Get it free” to install the Cloud Foundry extension. When click this button it asks you to select the organization and click on download.

It downloads and installs the CF extension for the elected organization and then clicks on “Proceed to the organization”.

Configure Service Endpoint for Cloud Foundry extension
The service endpoint is a connection of external and remote services to exec tasks for for a remote deployment. To create a service endpoint, click on "Project settings" >> "Service connections" and click on "New service connection".

There are many built-in service connections available such as Azure cClassic Azure Service bus, docker host, etc. Select the "Generic" service connection and click on the Next button.

Now, you need to enter the following information related to your Cloud Foundry application
- Service URL: it is the endpoint where you want to push your application.
- Username / Password: optionally provide the user name/password to connect to emote service.
- Service Connection name: name of the connection.
- Description: optionally provide a service description.














Join the conversation! Your thoughts help the community grow.