- NAME
-
- gcloud alpha bq migration validation configure - generate the configuration for validating migrated data
- SYNOPSIS
-
-
gcloud alpha bq migration validation configure--output=DIRECTORY(--metadata=PATH--tables-yaml=[PATH,…]) [--endpoint-mode=ENDPOINT_MODE] [--force] [--schemas=[SCHEMA,…]] [--tables=[TABLE,…]] [--target-dataset=TARGET_DATASET] [GCLOUD_WIDE_FLAG …] [--CLIENT_ARGS…]
-
- DESCRIPTION
-
(ALPHA)Generate the configuration files thatgcloud alpha bq migration validation runuses to validate data migrated to BigQuery against its source. The configuration covers the source tables described by a metadata archive produced bygcloud alpha bq migration metadata extract(--metadata) and/or by thetables.yamlmapping files produced by BigQuery Migration Service SQL translation (--tables-yaml).The output directory contains one YAML file per table under
databases/,index.yamllisting the configured tables,connections.yamlwith templates for the source and target connection profiles, andsettings.yamlwith the Cloud Storage location where source samples are staged and the results settings. Completeconnections.yamlandsettings.yamlbefore running the validation.The configuration is generated on this machine by the BigQuery Migration Validation Client, which requires Java 11 or later on your
PATH; thebqmscomponent of the gcloud CLI, which contains the client, is installed on first use if it is missing. To pass additional options to the Java virtual machine, set theJAVA_OPTSenvironment variable, for exampleexport JAVA_OPTS=-Xmx8G(Linux and macOS) orset JAVA_OPTS=-Xmx8G(Windows Command Prompt).Arguments after
--are forwarded to the validation client unchanged. With--quiet, the client resolves ambiguities with defaults instead of prompting. - EXAMPLES
-
To generate configuration files under
./validation_configfor the tables in the Teradata metadata archivedwh-migration-teradata-metadata.zip, migrated to the BigQuery datasetmy_dataset, run:gcloud alpha bq migration validation configure --metadata=dwh-migration-teradata-metadata.zip --target-dataset=my_dataset --output=validation_configTo generate configuration files for the tables of the
salesschema from thetables.yamlmapping files under./translation_output, overwriting any existing files under./validation_config, run:gcloud alpha bq migration validation configure --tables-yaml=translation_output --schemas=sales --output=validation_config --force - POSITIONAL ARGUMENTS
-
- [--
CLIENT_ARGS…] -
Arguments forwarded to the validation client.
The '--' argument must be specified between gcloud specific args on the left and CLIENT_ARGS on the right.
- [--
- REQUIRED FLAGS
-
--output=DIRECTORY-
Directory to write the configuration files to. Fails if the directory already
contains files, unless
--forceis specified. -
Source table definitions to generate the configuration from. Both can be
combined.
At least one of these must be specified:
--metadata=PATH-
Path to a source metadata archive (a
.zipfile produced bygcloud alpha bq migration metadata extract), or to a directory containing such archives andtables.yamltranslation mapping files. --tables-yaml=[PATH,…]-
Paths to
tables.yamlmapping files produced by BigQuery Migration Service SQL translation, or to directories containing them.
- OPTIONAL FLAGS
-
--endpoint-mode=ENDPOINT_MODE-
Specifies endpoint mode for a given command. Regional endpoints provide enhanced
data residency and reliability by ensuring your request is handled entirely
within the specified Google Cloud region. This differs from global endpoints,
which may process parts of the request outside the target region. Overrides the
default
regional/endpoint_modeproperty value for this command invocation.ENDPOINT_MODEmust be one of:global- (Default) Use global rather than regional endpoints.
regional- Only use regional endpoints. An error will be raised if a regional endpoint is not available for a given command.
regional-preferred- Use regional endpoints when available, otherwise use global endpoints. Recommended for most users.
--force-
Overwrite existing configuration files in
--output. --schemas=[SCHEMA,…]- Only generate configuration for tables in these source schemas.
--tables=[TABLE,…]- Only generate configuration for these source tables.
--target-dataset=TARGET_DATASET- BigQuery dataset that contains the migrated tables. Defaults to a dataset named like the schema of each source table.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - REGIONAL ENDPOINTS
-
This command supports regional endpoints. To use regional endpoints for this
command, use the
--endpoint-mode=regional-preferredflag. To use regional endpoints by default, run$ gcloud config set regional/endpoint_mode regional-preferred. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha bq migration validation configure
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-10 UTC.