[ ########-####-####-####-########0521 ] Error while importing content hub App Bitnami Virtual Appliance for Apache Tomcat(com.vmware.vcloud.entity.appTemplate:########-####-####-####-########ab49)/opt/vmware/vcloud-director/logs/vcloud-container-debug.log in VCD cell you can see the below error:400 Bad Request: "{"response":{"message":"Failed to subscribe products: User is not authorized to perform this action","statuscode":400}}<EOL>" at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:101) at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:168) at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:122) ...Caused by: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Error while importing content hub App Bitnami Virtual Appliance for Apache Airflow(com.vmware.vcloud.entity.appTemplate:########-####-####-####-########ab49) at com.vmware.cl.activities.CreateAppTemplateActivity$CreateAppTemplateBackingsPhase.invoke(CreateAppTemplateActivity.java:131) at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175) at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)VMware Cloud Director 10.6.1.1
The issue occurs because the user that generated the API token does not have access or permission for Marketplace. If you want to see for access or permission in Marketplace please go the link:
https://console.cloud.broadcom.com/services
To resolve the issue please contact your Broadcom, account teams for granting of access to the marketplace to achieve this feature.
After getting the adequate permissions in Marketplace please generate the API token using the Marketplace User scope for using Marketplace to import VMs. To generate API Token use the below steps: