Migration not found - D8 Following this I have created a module to migrate d7 users to d8. I have enabled all mandatory modules needed to run migration. But when I do drush migrate-import {mymigrationid} ; it says : Migration not found.
But When I did &quot;drush config-list|grep migrate&quot; , it is showing that particular migration:

migrate.migration.d7vm_users
migrate_plus.migration.custom_user

But when I'm doing drush migrate-status, these migrations are not listing up there.
Can anyone tell what's supposed to get missed?
Here is my mymodule/config/install/vm.yml file
id: d7vm_users
label: User accounts
migration_tags:
  - Drupal 7
dependencies:
  enforced:
    module:
      - mymodule
source:
  plugin: d7vm_users
destination:
  plugin: entity:user
process:
  uid: uid
  name: name
  pass: pass
  mail: mail
  created: created
  access: access
  login: login
  status: status
  timezone: timezone
  langcode: language
  init: init 

and src/Plugin/migrate/source/User.php
&lt;?php
/**
 * @file
 * Contains \Drupal\mymodule\Plugin\migrate\source\User.
 */

namespace Drupal\mymodule\Plugin\migrate\source;

use Drupal\migrate\Plugin\migrate\source\SqlBase;

/**
 * Extract users from Drupal 7 database.
 *
 * @MigrateSource(
 *   id = &quot;d7vm_users&quot;
 * )
 */
class User extends SqlBase {

  /**
   * {@inheritdoc}
   */
  public function query() {
    return $this-&gt;select('users', 'dcf_u')
      -&gt;fields('dcf_u', ['uid', 'status', 'created','access', 'login',    'name',
        'pass', 'mail', 'init', 'language']);
  }

  /**
   * {@inheritdoc}
   */
  public function fields() {
    $fields = [
      'uid' =&gt; $this-&gt;t('Account ID'),
      'status' =&gt; $this-&gt;t('Blocked/Allowed'),
      'created' =&gt; $this-&gt;t('Registered date'),
      'access' =&gt; $this-&gt;t('Time of last access'),
      'login' =&gt; $this-&gt;t('Time of last login'),
      'name' =&gt; $this-&gt;t('Account name (for login)'),
      'pass' =&gt; $this-&gt;t('Account password (raw)'),
      'mail' =&gt; $this-&gt;t('Account email'),
      'init' =&gt; $this-&gt;t('init'),
      'language' =&gt; $this-&gt;t('language'),
    ];

    return $fields;
  }

  /**
   * {@inheritdoc}
   */
  public function getIds() {
    return [
      'uid' =&gt; [
        'type' =&gt; 'integer',
        'alias' =&gt; 'dcf_u',
      ],
    ];
  }

}
?&gt;
If your source plugin extends SqlBase, you need to make sure you have the database configuration set up correctly. Otherwise Migrate will silently ignore the migration.

In your settings.php or settings.local.php, add the following database configuration:

$databases['migrate']['default'] = array(
  'driver' =&gt; 'mysql',
  'database' =&gt; 'NAME OF YOUR SOURCE DB',
  'username' =&gt; 'YOUR DB USER',
  'password' =&gt; 'YOUR DB PASSWORD',
  'host' =&gt; 'localhost',  // change this as necessary
);


By default, Migrate looks for a DB connection named "migrate". If you use any other name, the migrations won't appear when you run drush migrate-status.

Note: The "migrate" connection is in addition to your "default" connection. You should have two connections in your settings if you're migrating from a MySQL database.

In case anyone's curious, the DB connection check occurs in the method SqlBase::getDatabase() in drupal/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php.

This is documented in https://www.drupal.org/node/2830031 and apparently will be fixed in Drupal 8.4.