Skip to content

Commit db96c44

Browse files
authored
Automatic commit: Move 'private-link-microsoft-azure', 'private-link-onboarding' from QA to Production (#6786)
1 parent 6024816 commit db96c44

9 files changed

Lines changed: 272 additions & 0 deletions
63 KB
Loading
34.9 KB
Loading
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
---
2+
title: Connect SAP Private Link Service to Microsoft Azure Private Link Service
3+
description: Connect SAP Private Link service (Beta) to Microsoft Azure Private Link Service with Cloud Foundry CLI and bind the service instance to your app or create a service key.
4+
auto_validation: validation
5+
time: 10
6+
tags: [tutorial>beginner, software-product-function>sap-btp-cockpit, tutorial>license, software-product-function>sap-private-link-service, software-product-function>sap-btp-command-line-interface]
7+
primary_tag: software-product-function>sap-private-link-service
8+
---
9+
10+
## Prerequisites
11+
- You have a global account and subaccount on SAP Business Technology Platform with SAP Private Link service (Beta) entitlement: [Set Up SAP Private Link Service](private-link-onboarding).
12+
- You have created a Microsoft Azure Private Link Service in the Azure Portal. You only have to create the Load Balancer resources (pool and rules) and the private link service. The section "Create a private endpoint" can be skipped, as SAP Private Link service (Beta) will establish the connection for you. See [Create a Private Link service by using the Azure portal](https://docs.microsoft.com/en-us/azure/private-link/create-private-link-service-portal).
13+
- You have installed Cloud Foundry CLI. See [Install the Cloud Foundry Command Line Interface (CLI)](cp-cf-download-cli).
14+
15+
16+
## Details
17+
### You will learn
18+
- How to create a SAP Private Link Service (Beta) instance to connect to your Microsoft Azure Private Link Service using Cloud Foundry CLI
19+
- How to bind the service instance to your application using Cloud Foundry CLI
20+
21+
SAP Private Link service (Beta) establishes a private connection between applications running on SAP BTP and selected services in your own IaaS provider accounts. By reusing the private link functionality of our partner IaaS providers, you can access your services through private network connections to avoid data transfer via the public internet.
22+
23+
!![Overview of SAP Private Link service functionality](private-endpoint-overview.png)
24+
25+
---
26+
27+
[ACCORDION-BEGIN [Step 1: ](Check offerings of SAP Private Link Service )]
28+
29+
After you've logged in as described in [Install the Cloud Foundry Command Line Interface (CLI)](cp-cf-download-cli), access the **Service Marketplace** of SAP BTP. Open a command prompt on your computer and type in the following:
30+
31+
```Bash
32+
cf marketplace
33+
```
34+
35+
You can now see the offering, the plan, and the description, as is shown in this example:
36+
37+
```Bash
38+
$ cf marketplace
39+
Getting all service offerings from marketplace in org ... / xy… trial as admin...
40+
41+
offering plans description
42+
privatelink standard SAP Private Link service establishes private connectivity between SAP BTP and services hosted on Azure or on-premise, without exposing data to the internet. privatelink-ua-trial-test
43+
```
44+
45+
Make sure you can see ```privatelink``` in the sample output.
46+
47+
[DONE]
48+
[ACCORDION-END]
49+
50+
[ACCORDION-BEGIN [Step 2: ](Get Resource-ID for Azure Private Link Service)]
51+
52+
To create and enable a private link, you need to define the connection to the Microsoft Azure Private Link Service first. To do so, you need the Resource-ID of your Microsoft Azure Private Link Service:
53+
54+
1. Go to the Azure portal and navigate to **Private Link Center** > **Private link services**.
55+
2. Click on the desired Azure Private Link service that you created as part of the prerequisites and select **Properties**.
56+
3. Copy the **Resource ID** and save it for later use.
57+
58+
!![Get Resource-ID](private-endpoint-resource-ID.png)
59+
60+
[DONE]
61+
[ACCORDION-END]
62+
63+
[ACCORDION-BEGIN [Step 3: ](Create private link service)]
64+
65+
Currently, you do not have any service instances enabled. Therefore, you need to create one. To create a new private link, you need the following information:
66+
67+
- offering (```privatelink```)
68+
- plans (```standard```)
69+
- a unique name (for instance, ```privatelink-test```)
70+
- and the Resource-ID from Microsoft Azure (for instance, ```/subscriptions/<subscription>/resourceGroups/<rg>/providers/Microsoft.Network/privateLinkServices/<my-private-link-service>```)
71+
72+
Enter ```cf create-service``` and add that information. Your command should look like this:
73+
74+
```Bash
75+
cf create-service privatelink standard privatelink-test -c '{"resourceId": "Resource-ID"}'
76+
```
77+
> **Example**: ```cf create-service privatelink standard privatelink-test -c '{"resourceId":"/subscriptions/<subscription>/resourceGroups/<rg>/providers/Microsoft.Network/privateLinkServices/<my-private-link-service>"}'```
78+
79+
If the creation of the service instance was accepted, you receive a success message telling you to proceed.
80+
81+
> **Tip**: You can add an optional description to your CF CLI ```cf create service``` command, for example ```"requestMessage": "Please approve ASAP."``` to provide some extra context.
82+
83+
[DONE]
84+
[ACCORDION-END]
85+
86+
[ACCORDION-BEGIN [Step 4: ](Check status of private link)]
87+
88+
To check the current status of the newly created service instance, you need the name of your service instance (in this example ```privatelink-test```). Type in the following:
89+
90+
```Bash
91+
cf service privatelink-test
92+
```
93+
94+
Under "message", you can see the current status. Renew the command after approximately one minute. You should see the following message:
95+
96+
```Bash
97+
Showing status of last operation from service verify-privatelink...
98+
99+
status: create in progress
100+
message: Please approve the connection for Private Endpoint 'endpoint-name' in your Azure portal
101+
```
102+
103+
Copy the *endpoint-name* from the success message. You need it in the next step.
104+
105+
> Execute this command again, in case there's no change in the current status. If you receive an error message, go back to the previous steps.
106+
107+
[DONE]
108+
[ACCORDION-END]
109+
110+
[ACCORDION-BEGIN [Step 5: ](Approve connection in Azure)]
111+
112+
Return to Microsoft Azure portal:
113+
114+
1. Select **Settings > Private endpoint connections**.
115+
2. Search for the name of the private endpoint you received from the success message in the previous step.
116+
3. Select the private end point and click **Approve**.
117+
118+
!![Approve your private endpoint](Private-endpoint-approve-connection-azure.png)
119+
120+
121+
You should now receive a success message that the approval is pending.
122+
123+
124+
[DONE]
125+
[ACCORDION-END]
126+
127+
[ACCORDION-BEGIN [Step 6: ](Check status of private link)]
128+
129+
To check the current status of the newly created service instance, you need the name of your service instance (in this example ```privatelink-test```). Type in the following:
130+
131+
```Bash
132+
cf service privatelink-test
133+
```
134+
135+
You should see the following success message:
136+
137+
```Bash
138+
status: create succeeded
139+
message: Endpoint ready for binding
140+
started: <date>
141+
updated: <date>
142+
```
143+
144+
145+
[DONE]
146+
[ACCORDION-END]
147+
148+
[ACCORDION-BEGIN [Step 7: ](Bind application to service instance)]
149+
150+
Upon the creation of a binding between a CF application and a private link service instance, SAP Private Link service creates a space-scoped [Cloud Foundry application security group](https://docs.cloudfoundry.org/concepts/asg.html) that enables network access to the IP address associated with the Private Endpoint.
151+
152+
To bind the service instance to your application, You need to know the name of your application and your service instance (in this example ```privatelink-test```). Then, execute the following command:
153+
154+
```Bash
155+
cf bind-service "app-name" "service-instance"
156+
```
157+
158+
>If you do not have an app that you'd like to bind to your service instance, you can create a service key by running ```cf create-service-key <service-instance-name> <key-name>```.
159+
After the creation of your service binding, your application receives the information on how to connect via the binding credentials. See the following example for binding credentials:
160+
161+
> ```JSON
162+
{
163+
"privatelink": [
164+
{
165+
"instance_name": "privatelink-test",
166+
"label": "privatelink", // can be used to look up the bound instance programmatically
167+
"credentials": {
168+
"hostname": "<private-link-IP>" // internal IP which needs to be used to connect to the service
169+
}
170+
}
171+
]
172+
}
173+
```
174+
175+
176+
177+
[VALIDATE_1]
178+
[ACCORDION-END]
179+
180+
---
181+
182+
Congratulations! You have successfully completed the tutorial.
183+
184+
---
144 KB
Loading
58 KB
Loading
38.5 KB
Loading
55 KB
Loading
84.7 KB
Loading
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Set Up SAP Private Link Service
3+
description: Get onboarded to use SAP Private Link service in SAP BTP.
4+
auto_validation: true
5+
time: 10
6+
tags: [ tutorial>beginner, software-product-function>sap-private-link-service, products>sap-business-technology-platform, tutorial>license, software-product-function>sap-btp-cockpit]
7+
primary_tag: software-product-function>sap-private-link-service
8+
---
9+
10+
## Prerequisites
11+
- You have a global account and subaccount on SAP Business Technology Platform. See [Getting Started with SAP Business Technology Platform](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/144e1733d0d64d58a7176e817fa6aeb3.html).
12+
- You have enabled beta features for your subaccount. See [Create Subaccount](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/05280a123d3044ae97457a25b3013918.html) or [Change Subaccount Details](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/567d4a84bfdc428f8f3640e07261f73a.html?q=beta%20features).
13+
14+
## Details
15+
### You will learn
16+
- How to start with SAP Private Link service (Beta)
17+
- How to enable SAP Private Link service (Beta) in BTP cockpit
18+
19+
SAP Private Link service (Beta) establishes a private connection between applications running on SAP BTP and selected services in your own IaaS provider accounts. By reusing the private link functionality of our partner IaaS providers, you can access your services through private network connections to avoid data transfer via the public internet.
20+
21+
!![Overview of SAP Private Link service functionality](private-endpoint-overview.png)
22+
---
23+
24+
[ACCORDION-BEGIN [Step 1: ](Set entitlements)]
25+
To be able to use the functionalities of SAP Private Link service, you first need to set the entitlements in your subaccount. For more information, see [Configure Entitlements and Quotas for Subaccounts](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/5ba357b4fa1e4de4b9fcc4ae771609da.html).
26+
27+
1. Navigate to your **global account** of SAP BTP cockpit.
28+
2. Enter the respective **subaccount** for which you would like to enable SAP Private Link service.
29+
3. Navigate to **Entitlements** in the left hand navigation bar. You can now see all the existing service assignments for this respective subaccount.
30+
4. Select **Configure Entitlements**.
31+
32+
!![Configure Entitlements for SAP Private Link service](private-endpoint-configure-entitlements.png)
33+
34+
5. To add a new service assignment, select **Add Service Plans**. You see now all the offerings available to this specific subaccount.
35+
36+
6. Select **SAP Private Link service**, **Standard** (from Available Plans) and then **Add 1 Service Plan**.
37+
38+
!![Add Service Plan for SAP Private Link service](private-endpoint-add-service-plan.png)
39+
40+
[VALIDATE_1]
41+
[ACCORDION-END]
42+
43+
[ACCORDION-BEGIN [Step 2: ](Define quota in your subaccount)]
44+
45+
You can distribute entitlements and quotas across subaccounts within a global account. Under **Remaining Global Quota**, you see how much quota is still available across your global account. See also [Manage Entitlements on SAP BTP](cp-trial-entitlements).
46+
47+
Use **+** and **-** to increase or decrease the quota of the SAP Private Link service plan according to your needs.
48+
49+
!![SAP Private Link service quota overview](private-endpoint-quota-overview.png)
50+
51+
> One unit equals one Private Link endpoint.
52+
53+
54+
[DONE]
55+
[ACCORDION-END]
56+
57+
58+
[ACCORDION-BEGIN [Step 3: ](Enable Cloud Foundry runtime)]
59+
60+
Navigate to the **Overview** tab of your subaccount and check whether you've already enabled **Cloud Foundry runtime**. By default, Cloud Foundry runtime is not enabled.
61+
62+
1. To enable Cloud Foundry runtime, select **Enable Cloud Foundry**.
63+
64+
!![Enable Cloud Foundry runtime](private-endpoint-enable-CF.png)
65+
66+
2. Enter the following details:
67+
68+
- **Plan**: `standard`
69+
- **Instance Name**: Choose a unique name, for example `privatelink-test`.
70+
- **Org Name**: Choose a name relating back to the instance, for example `privatelink-test`
71+
72+
3. Select **Create**.
73+
74+
> Enabling **Cloud Foundry runtime** may take a couple of minutes.
75+
76+
Once Cloud Foundry runtime has been enabled, you get the information on your API endpoint you need to connect to your org in SAP BTP.
77+
78+
!![SAP Private Link service API endpoint](private-endpoint-api-endpoint.png)
79+
80+
> Before you proceed, make sure that **Cloud Foundry runtime** has been assigned adequate quota. If you have not done so already, go back to Step 2 and define the quota accordingly for Cloud Foundry runtime.
81+
82+
Congratulations! You have successfully completed the onboarding of SAP Private Link service. Continue with [Connect SAP Private Link Service to Microsoft Azure Private Link Service with Cloud Foundry CLI](private-link-microsoft-azure).
83+
84+
[DONE]
85+
[ACCORDION-END]
86+
87+
88+
---

0 commit comments

Comments
 (0)