How to enable Billing Manager role in Apps Manager UI
search cancel

How to enable Billing Manager role in Apps Manager UI

book

Article ID: 298233

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

In Cloud Foundry (CF) there is an option to create Org Billing Managers to create and manage billing account and payment information.

Note: The Billing Manager role is only relevant for CF environments deployed with a billing engine. For more information about CF roles, refer to Orgs, Spaces, Roles, and Permissions.

Environment

Product Version: 2.10

Resolution

To enable Billing Manager role in cf CLI, use cf set-org-role and choose the role, BillingManager. For more information, refer to Manage Roles.
cf set-org-role [email protected] example-org BillingManager
Assigning role BillingManager to user [email protected] in org example-org as [email protected]...
OK

To enable Billing View in Apps Manager UI, follow steps below:

1. Target your running app manager application, and run this command:

 cf env apps-manager-app.

2. Find the variable AMJS_ENV_VAR_KEYS and make a copy of this variable.

Note: This is a space separated list of configuration keys, so you only want to modify it, not overwrite it.
cf env apps-manager-js-green
Getting env variables for app apps-manager-js-green in org system / space system as admin...
OK

...

User-Provided:
ACCENT_COLOR: #00A79D
ACCOUNT_URL: https://login.run-06.slot-59.pez.vmware.com/profile
AMJS_ENV_VAR_KEYS: ACCENT_COLOR ACCOUNT_URL APP_POLL_INTERVAL APPS_DOMAIN COMPANY_NAME CREATE_UPS_ENABLED CURRENCY_LOOKUP DISPLAY_PLAN_PRICES ENABLE_INVITING_USERS FAVICON_SRC FOOTER_LINKS FOOTER_TEXT FOUNDATIONS GLOBAL_WRAPPER_BG_COLOR GLOBAL_WRAPPER_FOOTER_CONTENT GLOBAL_WRAPPER_HEADER_CONTENT GLOBAL_WRAPPER_TEXT_COLOR HOME_FOUNDATION LOGO_SRC MARKETPLACE_NAME MARKETPLACE_URL METRIC_REGISTRAR_ENABLED NETWORKING_SELF_SERVICE POLL_INTERVAL PRODUCT_NAME SEARCH_SERVICE_URL SECONDARY_NAVIGATION_LINKS SKIP_SSL_VALIDATION UAA_SAML_PROVIDER_NAME


3. Run this command: cf set-env apps-manager-js-green BILLING_ENABLED true.
cf set-env apps-manager-js-green BILLING_ENABLED true
Setting env variable 'BILLING_ENABLED' for app apps-manager-js-green in org system / space system as admin...
OK
TIP: Use 'cf restage apps-manager-js-green' to ensure your env variable changes take effect

4. Run this command: cf set-env apps-manager-js-green .

For example, paste the value for this variable copied from the cf set-env command and add BILLING_ENABLED at the end.
 cf set-env apps-manager-js-green AMJS_ENV_VAR_KEYS "ACCENT_COLOR ACCOUNT_URL APP_POLL_INTERVAL APPS_DOMAIN COMPANY_NAME CREATE_UPS_ENABLED CURRENCY_LOOKUP DISPLAY_PLAN_PRICES ENABLE_INVITING_USERS FAVICON_SRC FOOTER_LINKS FOOTER_TEXT FOUNDATIONS GLOBAL_WRAPPER_BG_COLOR GLOBAL_WRAPPER_FOOTER_CONTENT GLOBAL_WRAPPER_HEADER_CONTENT GLOBAL_WRAPPER_TEXT_COLOR HOME_FOUNDATION LOGO_SRC MARKETPLACE_NAME MARKETPLACE_URL METRIC_REGISTRAR_ENABLED NETWORKING_SELF_SERVICE POLL_INTERVAL PRODUCT_NAME SEARCH_SERVICE_URL SECONDARY_NAVIGATION_LINKS SKIP_SSL_VALIDATION UAA_SAML_PROVIDER_NAME BILLING_ENABLED"

5. Restage the app for the changes to take effect with this command: cf restage apps-manager-js-green

Note: If the app is recreated, you will have to run this step again to enable Billing View in the Apps Manager UI.