For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

IBM Cloud post-deployment verification

After you deploy the Terraform authentication template and manually connect the IBM Cloud cloud instance, verify that onboarding succeeded.

After you deploy the Terraform authentication template and manually connect the cloud instance, verify that onboarding succeeded.

Verify the cloud instance

In Cortex XDR, select Settings → Data Sources & Integrations and open the IBM Cloud cloud instances. Verify the following:

  • The cloud instance status is Connected. If the instance is still Pending, you haven't completed the manual connection. See Deploy the Terraform authentication template in IBM Cloud.

  • The permissions status of the cloud instance doesn't show errors.

  • The discovery scan starts automatically.

  • Assets from your IBM Cloud account appear in Asset Inventory as discovery progresses.

Verify the resources in IBM Cloud

In the IBM Cloud console, verify that the Terraform template created the expected resources:

  • Under Manage → Access (IAM) → Service IDs, the service ID cortex-<suffix>-service-id exists and has the managed_by:paloaltonetworks tag.

  • On the service ID's Access tab, the access policies list the Viewer and Reader roles and the Cortex XDR custom roles.

  • On the service ID's API keys tab, the API key cortex-<suffix>-api-key exists.

Troubleshooting IBM Cloud onboarding

Use the following table to resolve common IBM Cloud onboarding issues.

Issue
Cause and resolution

The cloud instance stays in Pending status.

The cloud instance wasn't manually connected. IBM Cloud doesn't connect the instance automatically after you run the template. Retrieve the Terraform outputs and manually connect the cloud instance.

terraform apply fails with an authentication error.

The IC_API_KEY environment variable isn't set, or the API key isn't valid. Set IC_API_KEY to a valid IBM Cloud administrator API key in the same terminal session, and run terraform apply again.

terraform apply fails when it creates the tag on the service ID.

The administrator API key doesn't have the global-search-tagging.tag.attach-user-tag permission. Assign the Administrator or Editor platform role to the user who owns the API key, or remove the custom tags and run terraform apply again.

terraform apply fails when it creates a custom role or an access policy.

The user who runs the template doesn't have the required IAM access, or a custom role with the same name already exists. Verify that you have the access described in Prerequisites for onboarding IBM Cloud. If the role name already exists, it's from an earlier onboarding attempt of the same template. Remove the earlier resources, or run Terraform from the original directory.

The Connect Instance form rejects the values.

One of the values was copied incorrectly, or it belongs to a different run of the template. Run terraform output again in the same directory, and copy the values without extra spaces or quotation marks.

The account_id output isn't the account you want to onboard.

The administrator API key in IC_API_KEY belongs to a different IBM Cloud account. Terraform creates the resources in the account of the key. Don't connect the cloud instance. Run terraform destroy --var-file=template_params.tfvars, set IC_API_KEY to an administrator API key from the correct account, and run the template again.

The cloud instance shows a permissions error after it was connected.

The service ID API key was deleted or disabled in IBM Cloud, or an access policy was removed. Cortex XDR can't exchange the API key for an access token. If the API key was deleted, rotate the API key to create a new one. If an access policy was removed, run terraform apply again from the original directory to restore it.

For more troubleshooting information, see Troubleshoot errors on cloud instances.

Last updated

Was this helpful?