def check_policy_profile_exists_on_all_vsm(pprofiles, vsm_hosts):
    """Checks if policy profile is present on all VSM.
    :param pprofiles: all the port profile rows for a particular profile
    :param vsm_hosts: list of configured VSMs
    :returns: boolean
    """
    return (len(pprofiles) == len(vsm_hosts) and
            len(set(pprofile['id'] for pprofile in pprofiles)) == 1)