You can check whether virtual machines and virtual disks use datastores that are compliant with the VM storage policy.

If you check the compliance of a virtual machine whose host or cluster have storage policies disabled, the result of the check is Noncompliant.

Prerequisites

To perform a compliance check for a storage policy, associate the policy with at least one virtual machine or virtual disk.

Procedure

  1. From the vSphere Web Client Home, click Policies and Profiles > VM Storage Policies.
  2. Double-click a storage policy.
  3. Click the Monitor tab, and click VMs and Virtual Disks.
  4. Click Trigger VM storage policy compliance check () icon.

    The Compliance Status column shows the storage compliance status for virtual machines and their policies.

    Compliance Status Description
    Compliant The datastore that the virtual machine or virtual disk uses has the required storage capabilities.
    Noncompliant The datastore supports specified storage requirements, but cannot currently satisfy the virtual machine storage policy. For example, the status might become Not Compliant when physical resources for the datastore are unavailable or exhausted. You can bring the datastore into compliance by making changes in the physical configuration, for example, by adding hosts or disks to the cluster. If additional resources satisfy the virtual machine storage policy, the status changes to Compliant.
    Out of Date The status indicates that the policy has been edited, but the new requirements have not been communicated to the datastore where the virtual machine objects reside. To communicate the changes, reapply the policy to the objects that are out of date.
    Not Applicable This storage policy references datastore capabilities that are not supported by the datastore where the virtual machine resides.

What to do next

When you cannot bring the noncompliant datastore into compliance, migrate the files or virtual disks to a compatible datastore. See Find Compatible Storage Resource for Noncompliant Virtual Machine.

If the status is Out of Date, reapply the policy to the objects. See Reapply Virtual Machine Storage Policy.