Create the credential and service account that will access your VMware data

To securely access data on your provider account, the Discovery process must present appropriate credentials. To make the credentials available to Discovery, you first create an account in the VMware Console. You then securely store the credentials in a service account in your instance.

Before you begin

Roles required:
  • VMware Console administrator
  • Cloud Provisioning and Governance: admin or sn_cmp.cloud_admin

About this task

Cloud providers often use different names for accounts, regions, and credential settings. Because the ServiceNow application supports several cloud providers, the app uses general-purpose names for the settings.

Procedure

  1. In the Cloud Admin Portal, navigate to Manage > Credentials.
  2. On the Credentials tab, click New, select VMware Credentials, fill in the form, and then click Submit.
  3. Navigate to Cloud Admin Portal > Manage > Service Accounts, click New, enter a unique and meaningful Name (for example, Cloud Provisioning Service Account), and then fill in the form.
  4. Click the Discover Datacenters related link.
    Using the credential, Discovery accesses the vCenter at the specified URL to discover VMware datacenters.
  5. If you used the instance UUID value in the Account ID field, click Submit and skip the remaining steps in this procedure.
    The system creates the service account and displays the list of all service accounts.
  6. On the Cloud Admin Portal, navigate to Operate > Trails.
  7. On the Cloud API Trail tab, find the entry with the Method name value of ListDatacenters and Provider name value of vmware-compute (typically the most-recent entry).
    Open the entry.
  8. On the CAPI Trail Logs related list, open the route_result entry.
  9. In the Log value text box, copy the locationId value.
    This value is the Account ID that you will paste into the form in the next step.
    Copy the locationId so you can paste it into the form
  10. On the instance, navigate to Cloud Admin Portal > Manage > Service Accounts and then click the service account that you created earlier (Cloud Provisioning Service Account in the example).
  11. Paste the locationId value (that you copied from the CAPI Trail Log form) in the Account ID field on the form and then click Update.
  12. Click Submit.
    The system creates the service account and displays the list of all discovered datacenters.