---
parser: v2
auto_validation: true
primary_tag: software-product>sap-business-technology-platform
tags: [  tutorial>beginner, software-product>sap-business-technology-platform ]
time: 10
slug: cp-cf-dev-03-service-instance
canonical_url: https://developers.sap.com/tutorials/cp-cf-dev-03-service-instance
---

# Create a Service Instance and Bind It to Your App
<!-- description --> Create an instance of the Application Logging service and bind it to your app, as a way to explore how services and apps are connected on the SAP BTP, Cloud Foundry runtime.

## You will learn
- How apps and services are related
- How to bind a service to an app

## Intro
In SAP BTP, Cloud Foundry runtime there are apps and there are services. In many cases, apps are what you write, and services are what are available for your app to make use of.

The [Application Logging](https://help.sap.com/viewer/ee8e8a203e024bbb8c8c2d03fce527dc/Cloud/en-US/68454d44ad41458788959485a24305e2.html) service enables the central capture and analysis of log messages from applications that are bound to it. You can manage the availability of services, and the instances thereof, in the SAP BTP cockpit.

---

### Open service bindings for your app


In the SAP BTP cockpit, navigate to the page for your app, as you learned to do in the [Deploy an App to SAP Cloud BTP, Cloud Foundry runtime](cp-cf-dev-02-deploy-app) tutorial.

Choose **Service Bindings** in the navigation area.

![Screenshot of Service Bindings area](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Service-bindings.PNG)


### Bind an instance of the Application Logging service to your app


 1. Choose **Bind Service**.

    ![Button Bind Service](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Bind-service-button.PNG)

 1. Choose **Service from the catalog** and choose **Next**.

    ![Service wizard ](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Service-from-catalog.PNG)

 1. Choose the **Application Logging** tile and choose **Next**.

    ![Application Logging tile](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/applicationlogging-tile.PNG)

 1. Choose the **Create new instance** option, select a service plan from the **Plan** field, and then choose **Next**.

    ![Service Plan for Application Logging](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Service-plan.PNG)

 1. Skip specifying parameters by choosing **Next**.

    ![Parameters](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Parameters.PNG)

 1. Enter a name for the service instance and choose **Finish**.

    ![Instance name](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Instance-name.PNG)

The binding is created and added to the list of service bindings:

![Screenshot of list of service bindings after creation](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Created-instance.PNG)

In the text area below, enter the name of the service used in the service bindings of your application. **HINT:** The name appears in the **Service** column in the list of service bindings.




### Explore your binding


 1.  In the navigation area of the cockpit, choose **Overview**.

 1.  Choose **Restart** to restart your application.

   ![Restart button](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/Restart.PNG)

 1.  In the **Application Routes** section, choose the URL to open the application.

 A new tab opens that displays the app information.

 ![CF application information](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-cf-dev-03-service-instance/CF-app-with-service.PNG)

In the app, you can see the additional information about the service binding.


---
