<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234207#M4580120</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;did you solve this challenge? We are also trying to use a user-provided service to connect CAP to a PostgreSQL database, but it looks like there is no way to set tags on user-provided services.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 15:10:43 GMT</pubDate>
    <dc:creator>SebastianEsch</dc:creator>
    <dc:date>2021-12-03T15:10:43Z</dc:date>
    <item>
      <title>Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaq-p/12234205</link>
      <description>&lt;P&gt;Hello SAP CP Cloud Foundry Experts,&lt;/P&gt;
  &lt;P&gt;as there is an &lt;A href="https://answers.sap.com/questions/13182819/cant-connect-to-postgresql-on-sap-cp-trial-hypersc.html" target="_blank"&gt;issue with connecting to PostgreSQL on SAP CP Trial, Hyperscaler Option&lt;/A&gt; I want to use a User Provided Service to provide the credentials of my PostgreSQL Database running on Azure or AWS. I've defined this User Provided Service in the &lt;A href="https://github.com/gregorwolf/pg-beershop/blob/master/mta.yaml#L101" target="_blank"&gt;mta.yaml&lt;/A&gt; of my &lt;A href="https://github.com/gregorwolf/pg-beershop"&gt;pg-beershop&lt;/A&gt; project:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  - name: pg-beershop-external-database
    type: org.cloudfoundry.user-provided-service
    parameters:
      path: ./pg-azure-env.json
      service-tags: ["relational", "database"]
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Unfortunately the defined service-tags do not appear in VCAP_SERVICES:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1860798-screenshot-2020-11-15-at-010657.png" /&gt;&lt;/P&gt;
  &lt;P&gt;You see the tags array is empty. But the tags are used by SAP Cloud Application Programming Model (CAP) to determine the database credentials using the &lt;A href="https://www.npmjs.com/package/@sap/xsenv" target="_blank"&gt;@sap/xsenv&lt;/A&gt; module to search for the tag defined in &lt;A href="https://github.com/gregorwolf/pg-beershop/blob/master/package.json#L70" target="_blank"&gt;kind parameter of package.json&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;Looking forward for your help.&lt;/P&gt;
  &lt;P&gt;Best regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 00:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaq-p/12234205</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-11-15T00:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234206#M4580119</link>
      <description>&lt;P&gt;Please refer this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876489-temp.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 15:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234206#M4580119</guid>
      <dc:creator>former_member208436</dc:creator>
      <dc:date>2021-01-14T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234207#M4580120</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;did you solve this challenge? We are also trying to use a user-provided service to connect CAP to a PostgreSQL database, but it looks like there is no way to set tags on user-provided services.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 15:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234207#M4580120</guid>
      <dc:creator>SebastianEsch</dc:creator>
      <dc:date>2021-12-03T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234208#M4580121</link>
      <description>&lt;P&gt;I figured out that I was running a quite old Cloud Foundry CLI version. Recent versions support setting tags for user-defined services via &lt;EM&gt;cf create-user-provided-service my-db-mine -t "list, of, tags"&lt;/EM&gt;. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 16:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234208#M4580121</guid>
      <dc:creator>SebastianEsch</dc:creator>
      <dc:date>2021-12-06T16:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234209#M4580122</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;sebastian.esch&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;but you haven't found a way to set it via mta.yaml?&lt;/P&gt;&lt;P&gt;CU&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 20:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234209#M4580122</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2021-12-06T20:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234210#M4580123</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;no, I did not try to create the user-provided service via mta.yaml yet. I'm still struggling to get my CAP application to read PostgreSQL credentials from the user-defined service... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 07:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234210#M4580123</guid>
      <dc:creator>SebastianEsch</dc:creator>
      <dc:date>2021-12-07T07:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234211#M4580124</link>
      <description>&lt;P&gt;I confirm the problem.&lt;BR /&gt;I'm trying to create user-provided-service which should be a proxy to the event-mesh service from another subaccount.&lt;/P&gt;&lt;P&gt;My application can't pick this user-provided-service as event-mesh service based on service-name only.&lt;BR /&gt;It needs that user-provided-service has tags: ["enterprise-messaging"] set on it.&lt;/P&gt;&lt;P&gt;I know that I can add tags on command line by using "cf" command. But to do it automatically I should write some script.&lt;/P&gt;&lt;P&gt;Another way is to define custom tags in mta.yaml file.&lt;BR /&gt;&lt;A href="https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.01/en-US/33548a721e6548688605049792d55295.html" target="test_blank"&gt;https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.01/en-US/33548a721e6548688605049792d55295.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But, as Mr. Wolf already wrote, it doesn't work on user-provided-service's.&lt;BR /&gt;For ex: setting tags on 'normal' service works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- name: connectivity-srvc
  type: org.cloudfoundry.managed-service
  parameters:
    service: connectivity
    service-plan: lite
    service-name: connectivity-srvc
    service-tags: ["custom-tag-B"]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But for user-defined doesn't:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resources:
  - name: event-mesh-srvc
    type: org.cloudfoundry.user-provided-service
    parameters:
      service-tags: ["enterprise-messaging"]

#or

resources:
  - name: event-mesh-srvc
    type: org.cloudfoundry.user-provided-service
    parameters:
      service-tags:&lt;BR /&gt;        - enterprise-messaging&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Dec 2021 11:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234211#M4580124</guid>
      <dc:creator>purplehaze</dc:creator>
      <dc:date>2021-12-10T11:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234212#M4580125</link>
      <description>&lt;P&gt;Seems that this has been fixed in the meanwhile - tested with mbt@1.2.21. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  - name: shop-external-database
    type: org.cloudfoundry.user-provided-service
    parameters:
      service-tags: ["relational", "database"]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The tags are correctly returned when reading VCAP_SERVICES.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;VCAP_SERVICES: {
  "user-provided": [
    {
      "binding_guid": "c9fcb0dd-2228-4837-a950-bfa010d4adf9",
      "instance_name": "shop-external-database",
      "label": "user-provided",
      "name": "shop-external-database",
      . . .
      "tags": [
        "relational",
        "database"
      ]
    },
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2023 11:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234212#M4580125</guid>
      <dc:creator>lothar_bender</dc:creator>
      <dc:date>2023-02-13T11:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Service Tags defined for  User Provided Service do not appear in VCAP_SERVICES</title>
      <link>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234213#M4580126</link>
      <description>&lt;P&gt;BTW, binding user-provided services using the &lt;STRONG&gt;cds bind&lt;/STRONG&gt; command is supported with @sap/cds-dk@6.5.0.&lt;/P&gt;&lt;P&gt;See &lt;A rel="nofollow" href="https://cap.cloud.sap/docs/releases/jan23?q=user-pr#tools"&gt;January 2023 release notes&lt;/A&gt;. For more details see &lt;A rel="nofollow" href="https://cap.cloud.sap/docs/advanced/hybrid-testing?q=user-pr#cloud-foundry-user-provided-services-in-hybrid-testing"&gt;user-provided services in hybrid testing&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 22:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/service-tags-defined-for-user-provided-service-do-not-appear-in-vcap/qaa-p/12234213#M4580126</guid>
      <dc:creator>lothar_bender</dc:creator>
      <dc:date>2023-02-13T22:53:57Z</dc:date>
    </item>
  </channel>
</rss>

