Validating a Fleet

Validate OCI Compute resources so that they're available in Fleet Application Management.

After you create a fleet, the OCI Compute resources are validated before they're used for lifecycle operations. Depending on the prerequisites for OCI Compute and Oracle Database resources for Fleet Application Management, the validation might be a success or failure. If it's successful, the fleet target discovery process starts. See Target Discovery. If validation fails, ensure you meet the following prerequisites and then retry validation:
  • You have added matching rule in the "fams-customer-dg" dynamic group and have added the OCI Compute instance as member of the group. For example,

    All {instance.id = 'ocid1.instance1.oc1.iad:sampleuniqueid1'}

    Or

    You have added all instances that are part of a compartment. For example,

    All {instance.compartment.id = 'ocid1.compartment.oc1.iad:sampleuniqueid2'}

  • You have enabled OS Management Hub to discover and apply patches for Oracle Linux and Microsoft Windows OS. For more information, see Migrating from OS Management to OS Management Hub.
  • You have enabled the Fleet Application Management plugin on the Oracle Cloud Agent before adding resources to a fleet. See Managing plugins.
    Important

    Failing to enable the plugin might delay the fleet validation process, as Fleet Application Management must automatically enable it during your fleet preparation. Note that on resource addition, Fleet Application Management automatically enables the Fleet Application Management plugin on the Oracle Cloud Agent.
    1. On the Fleets list page, select the fleet that you want to work with. If you need help finding the list page or the fleet, see Listing Fleets.
      The details page for the fleet opens. Fleet Application Management updates the fleet state in real-time, and you can view the fleet state as VALIDATING at the top of the page. The validation can be a success or failure. If the fleet state appears FAILED, verify the prerequisites or select View details to find issues and validate the fleet again.
    2. To validate the fleet, select Retry validation.
  • Use the oci fleet-apps-management fleet request-resource-validation command and required parameters to validate the resources in a fleet:

    oci fleet-apps-management fleet request-resource-validation --fleet-id <fleet_OCID> [OPTIONS]

    For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.

  • Run the RequestResourceValidation operation to validate the resources in a fleet.